ExecuteScalar missing Assembly Reference
I posted a question about how to save the result of an SQL command to a variable and was told that the execute scalar method should be used, however I can't use it, I开发者_开发问答'm using the System.Data.SQLClient reference but still not finding it :S
Any ideas???
Are you really doing:
using System.Data.SqlClient;
....
var command = new SqlCommand();
command.ExecuteScalar();
If so. What framework version of .NET are you using?
SqlClient
has a lowercase ql
.
精彩评论