好玩的SQL 好笨的我 Server連線字串

发表于:2007-06-07来源:作者:点击数: 标签:

<%
Dim sConn
sConn = "Provider=SQLOLEDB; Data Source=172.16.200.81; Initial Catalog=Leader;User ID=sa;Password=;"

Dim adoConn
Set adoConn = Server.CreateObject("ADODB.Connection")
   adoConn.ConnectionString = sConn
adoConn.Open

set rs=Server.CreateObject("ADODB.Recordset")
rs.Open "Select * From PALMK", adoConn, adOpenStatic


%>

原文转自:http://www.ltesting.net