sql server 这里面该怎么填?

我新手菜鸟,不懂怎么搞,
sqlCmd.CommandText = @"select count(*) from Users where UserName=" + "'"
+ txtUserName.Text.Trim() + "'" +
"and PassWord=" + "'" +
txtPassWord.Text.Trim() + "'";
这段代码在 上面图片里的sqlCmd属性里 的CommandText 怎么写?
------解决方案--------------------就是你要执行的SQL语句呀。
------解决方案--------------------SqlCommand

还有控件了啊
------解决方案--------------------SqlCommand就是个类,CommandText是SqlCommand个属性就像你上面那样赋值就行了
------解决方案--------------------你要干嘛,不知道
------解决方案--------------------直接写进代码即可
------解决方案--------------------在代码里面设置CommandText就可以的