sql server2005数据库连接问题
String Database = System.IO.Directory.GetCurrentDirectory() + "\\userr.mdf";string s="Data Source=.\\SQLExpress;Integrated Security=SSPI;AttachDBFil... 展开
其他答案
数据库连接: 第一行:定义字符串 Database,System.IO.Diectory.GetCurrentDirectory()意思就是调用系统输入输出接口的目录类中的GetCurrentDirectory方法并且获得本目录名称结果Database就是数据库文件的文件路径第二行:Data Source为远程数据库SQLExpress的数据库,integrated Security集成安全策略为 展开
2010-11-05 14:18
来自北京市
赞(0)点赞赞(0)举报
免责声明:问答内容均来源于互联网用户,房天下对其内容不负责任,如有版权或其他问题可以联系房天下进行删除。




