开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜