c#中连接sql2000数据库问题 http://blog.csdn.net/net_lover/archive/2003/01/10/6917.aspx 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 看看我的"Server=localhost; DataBase=Northwind; User Id=sa; Password=123456789" "server=localhost;database=northwind;uid=sa;pwd=" Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Password=sa;Initial Catalog=Northwind;Data Source=DBServer SqlConnection conn =new SqlConnection("server=localhost;UID=sa;PWD=;database=数据库名"); 我晕,看你写的多麻烦"server=localhost;database=northwind;uid=***;pwd=***"就可以拉顶多加个超时的参数就满足了.写那么多干什么,还写的不对.你要操作 库中的某个表,要T-SQL命令里指定 Persist Security Info=False;User ID= ;Password=****;Initial Catalog= ;Data Source= 怀疑楼主有没有看过ADO.NET的书 string strProvider = "Server=(local);DataBase=material;UID=sa;PWD="; 数据库就放在“DataBase”中 "Integrated Security=SSPI;Server=(local);Database=northwind" Provider=SQLOLEDB; 去掉! 是这样的,你的UserID和password要和数据库里的核实,ID用sa,如果你没设过password,那默认为空。 关于VAR的问题,十分感谢 C#中有没有记忆Form窗口大小和位置的方法 关于POST的问题:您的请求来路不正确,无法提交。 奇怪的问题?不知有没有遇到过 在web页面上无法打开excel~~~~~~~ 能不能在经过判断之后再让当前类继承其它类? 使用VC#制作可伸缩个性化窗体 WPF中ListBox中的问题,希望大家帮忙解决! 关于modem 的简单问题(进者有分) C#的winform中,一panel加载万能播放器,支持对flv等的播放 關於SystemInformation.Network 调试时,提示"无法开始调试,无法找到Microsoft Internet Explorer"
"server=localhost;database=northwind;uid=***;pwd=***"就可以拉
顶多加个超时的参数就满足了.
写那么多干什么,还写的不对.你要操作 库中的某个表,要T-SQL命令里指定
数据库就放在“DataBase”中
去掉!