我爱Aspx >> Asp.Net >> .NET中各种数据库连接的方法SQL Server
ODBC
Standard Security:
"Driver={SQL Server};Server=Aron1;Database=pubs;Uid=sa;Pwd=asdasd;"
Trusted connection:
"Driver={SQL Server};Server=Aron1;Database=pubs;Trusted_Connection=yes;"
Prompt for username and password:
oConn.Properties("Prompt") = adPromptAlways
oConn.Open "Driver={SQL Server};Server=Aron1;DataBase=pubs;"
OLEDB, OleDbConnection (.NET)
Standard Security:
"Provider=sqloledb;Data Source=Aron1;Initial Catalog=pubs;User Id=sa;Password=asdasd;"
Trusted Connection:
"Provider=sqloledb;Data Source=Aron1;Initial Catalog=pubs;Integrated Security=SSPI;"
(use serverName\instanceName as Data Source to use an specifik SQLServer instance, only SQLServer2000)
Prompt for username and password:
Ҷƪл˵?
ASP.NET中的随机密码生成[05-20]
.Net中的MD5加密-16位32位[05-20]
FIX:ASP.NET 在域控制器上使用默..[05-20]
ASP.net的URL重写[05-20]
ASP.NET 2.0 Tips(1):跨页提交[05-20]
ASP.NET远程建立IIS虚拟主机并指..[05-20]
ASP.NET远程建立IIS虚拟主机并指..[05-20]
用ASP.NET对IIS中的虚拟目录进行..[05-20]
用ASP.NET对IIS中的虚拟目录进行..[05-20]
.Net中的MD5加密-16位32位[05-20]
得到真实IP[05-20]
ASP.NET中的随机密码生成[05-20]
C#实现WEB服务器[05-20]
调用winrar压缩文件夹[05-20]
.Net中的MD5加密-16位32位[05-20]
如何用CSS制作横向菜单?[05-20]
网页设计师-循序渐进[05-20]
_blank开新窗口不符合标准?[05-20]
如何制作浮动广告[05-20]
初学Javascript之cookie篇[05-20]