Hi,
Need to know an easy way to connect to the SQL server via ASP. I code in VB6 all the time, but I can't seem to get over this hurdle.
VB6 code is:
Public cn As New ADODB.Connection
Public rs As ADODB.Recordset
With cn
.ConnectionTimeout = 25
.Provider = "sqloledb"
.Properties("Data Source".Value = "selectpdc"
.Properties("Initial Catalog".Value = "Plant5Milk"
.Properties("User ID".Value = "sa"
.Properties("Password".Value = "select"
.Open
End With
I was hoping ASP VBScript code would be similar.
Thanks a mill,
Rougy
-----
The death of dogma is the birth of reason.
Need to know an easy way to connect to the SQL server via ASP. I code in VB6 all the time, but I can't seem to get over this hurdle.
VB6 code is:
Public cn As New ADODB.Connection
Public rs As ADODB.Recordset
With cn
.ConnectionTimeout = 25
.Provider = "sqloledb"
.Properties("Data Source".Value = "selectpdc"
.Properties("Initial Catalog".Value = "Plant5Milk"
.Properties("User ID".Value = "sa"
.Properties("Password".Value = "select"
.Open
End With
I was hoping ASP VBScript code would be similar.
Thanks a mill,
Rougy
-----
The death of dogma is the birth of reason.