开发者

ExecuteScalar missing Assembly Reference

开发者 https://www.devze.com 2023-01-28 19:45 出处:网络
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 Syst

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消