Last post Mar 01, 2012 07:51 PM by mbanavige
Mar 01, 2012 07:07 PM|cschaefer84|LINK
Apologies if this is a dumb question. I'm very new to .net
I'm using C# to try to send a query to SQL Server, and I'm using the following code:
System.Data.SqlClient.SqlConnection sqlconnection1 =
new System.Data.SqlClient.SqlConnection("Data Source=;Initial Catalog=;User Id=;Password=;");
System.Data.SqlClient.SqlCommand cmd = new System.Data.SqlClient.SqlCommand();
command.CommandType = System.Data.CommandType.Text
command.CommandText = "INSERT STATEMENT">;
I get "BC30188: Declaration expected."
I'm not sure what this error means. Can anyone advise?
Mar 01, 2012 07:51 PM|mbanavige|LINK
I think the issue would be with whatever your actual sql insert statement was. So you'd needed to share that insert so we can see what it looked like.