Having trouble with a simple database command I keep getting the error invalid column name and I cant seem to figure it out. Please help me figure out some possible problems Thanks.
Dim ConnString As String
ConnString = "Data Source=.\SQLEXPRESS;AttachDbFilename=
C:\inetpub\wwwroot\KiKoGraphics\App_Data\aspnetdb.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True"
Dim sqlConn As New SqlConnection(ConnString)
Dim sqlCom As New SqlCommand()
sqlCom.CommandText = "INSERT INTO ImageTable ('DatabaseImage') VALUES ('@Photo')"
sqlCom.Connection = sqlConn
sqlCom.Parameters.Add("@Photo", Data.SqlDbType.Image)
sqlCom.Parameters("@Photo").Value = Content
sqlConn.Open()
sqlCom.ExecuteNonQuery()
sqlConn.Close()