I am having the following trouble:
"System.Data.SqlClient.SqlException: Incorrect syntax near '11'.
Unclosed quotation mark after the character string ' )'.
I tried the solution of using double quote right there, but it give me another problem.
The more strange thing is that the data is begin copy to the new table until it stop...
while (myRead.Read())
{
myRead.Read();
cmd = new SqlCommand("INSERT INTO Properties VALUES " +
"( '" + Read2["Parameter1"].ToString() +
"', '" + Read2["Parameter2"].ToString() +
"', '" + Read2["Parameter3"].ToString() +
"', '" + Read2["Parameter4"].ToString() +
"', '" + Read2["Parameter5"].ToString() + "' )", connection);
cmd.ExecuteNonQuery();
}
myRead.Close();