Hi. I am having the fillowing code
m_cmdSqlCommand = New SqlCommand("INSERT INTO Comments(userId) VALUES('" + m_userId + "')", m_conSqlConnection)
m_drDataReader = m_cmdSqlCommand.ExecuteReader
m_drDataReader.Close()
The strange thing is that I get an error saying
"Convertion from string "INSERT INTO Comments(userId)..." to type double is not vallid.
Now, userId is a key comming from the User table, and it is Int not Double. The Cascade option is not enabled. The value which I am trying to save is int, from variable
m_userId = m_dtBuilding.Rows(m_rowPosition)("userId")
Does anyone know why I get this error? Thank you!