06-17-2009, 07:05 PM
Code:
DBType="sqlserver" Then
UID = GetLocalParameter("sqlserver.user")
PWD = GetLocalParameter("sqlserver.password")
SERVER= GetLocalParameter("sqlserver.servername")
DATABASE= GetLocalParameter("sqlserver.servername")
DATASOURCE=GetLocalParameter("sqlserver.host")
PORTNUM=GetLocalParameter("sqlserver.port")
set conn=Createobject("ADODB.Connection")
Srvname= "PROVIDER=SQLOLEDB;DATA SOURCE="&DATASOURCE&","&PORTNUM&";UID="&UID & ";PWD="&PWD&";DATABASE="
conn.open Srvname