标题:求助sql语句问题
取消只看楼主
running
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2007-4-6
 问题点数:0 回复次数:0 
求助sql语句问题

SqlConnection MyConnection;
SqlCommand MyCommand;
String ConnStr;
MyConnection = new SqlConnection("serve(local);database=ss;Trusted_Connection=SSPI");
MyConnection.Open();
ConnStr = "Select address From user Where username='" + Session["id"].ToString() +"'";
MyCommand = new SqlCommand(ConnStr, MyConnection);
SqlDataReader reader = MyCommand.ExecuteReader();
其中user是一个表,总是报错说user附近有错误,
麻烦给看看
搜索更多相关主题的帖子: sql 语句 
2007-05-12 14:43



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-138801-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.541613 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved