Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Response.write("")<br />
Response.write("")<br />
Response.write("")<br />
Response.write("")<br />
set objCon = server.createobject("ADODB.Connection")<br />
IF(strDSN = "") THEN<br />
IF(strCon = "") THEN<br />
IF(strDbsource = "Microsoft Access Driver (*.mdb)") THEN<br />
strServerName +<br />
ELSE<br />
strServerName +<br />
strDatabaseName<br />
ELSE<br />
objCon.ConnectionString= "Driver=" + strDbsource + ";server=" +<br />
";uid=" + strUserName + ";pwd=" + strPassword + ";DBQ=" + strDatabaseName<br />
objCon.ConnectionString= "Driver=" + strDbsource + ";server=" +<br />
";uid=" + strUserName + ";pwd=" + strPassword + ";database=" +<br />
END IF<br />
objCon.ConnectionString= strCon<br />
END IF<br />
ELSE<br />
IF(strCon = "") THEN<br />
objCon.ConnectionString= "Driver=" + strDbsource + ";DSN=" + strDSN + ";uid=" +<br />
strUserName + ";pwd=" + strPassword<br />
ELSE<br />
objCon.ConnectionString= "DSN=" + strDSN + ";" + strCon<br />
END IF<br />
END IF