连接SQL 2005 的SqlConnection连接字符串改了吗? SqlConnection conn = new SqlConnection(@"Data Source=.\WaltzPC;Initial Catalog=test;UserID=sa;Password=123");SqlConnection conn = new SqlConnection("Data Source=localhost;Initial Catalog=test;UserID=sa;Password=123"); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在语句中加上这个条件Provider = SQLOLEDB.1; SQL 2000:static string StrConn = "workstation id=202.134.127.77;data source=202.134.127.77;initial catalog=Yellowpage;user id=sa;password=grt2006";SQL2005: con = new SqlConnection(@"Server=.\SQLExpress;Database=db_CMS;Persist Security Info=True;User ID=sa;Password=Masslong");ACCESS:string StrConn = "provider=Microsoft.Jet.OLEDB.4.0;" + "data source="+AppPath+"\\Combination.mdb"; Server=机器名\实例名;Database=数据库;ID=实据库用户名;PWD=密码(因该是不小于4位的) 请教sql 日期格式 按月查询 怎么写 Web Service服务 C#如何禁止使用鼠标拖拽窗体的边框改变大小 ``C#网页程序的文本限制输入``` 如何打包成cab包,并实现在线自动下载? 求高人指点 如何学习数据库操作方面!! c#中如何设置启动窗口 如何自定义一个分割线控件? 国产GIS软件Supermap相关问题 关于.net中DataTable的问题,得到关于数据库中的属性 dateTime為DBNull時如何綁定到gridview win2003系统里的1.1和2.0的程序能同时用吗?
Provider = SQLOLEDB.1;
static string StrConn = "workstation id=202.134.127.77;data source=202.134.127.77;initial catalog=Yellowpage;user id=sa;password=grt2006";SQL2005:
con = new SqlConnection(@"Server=.\SQLExpress;Database=db_CMS;Persist Security Info=True;User ID=sa;Password=Masslong");ACCESS:
string StrConn = "provider=Microsoft.Jet.OLEDB.4.0;" + "data source="+AppPath+"\\Combination.mdb";