Database Connection Strings For Sql, Oracle and Excel
'For Oracle Db
strOracleConnection = "provider=oraoledb.1;server=localhost;uid=scott;pwd=tiger;database=testdata"
'For Sql DB
strSqlConnection= "provider=sqloledb.1;server=localhost;uid=sa;pwd=;database=testdata"
'For Excel
strExcelConnection = "DRIVER={Microsoft Excel Driver (*.xls)};DBQ=C:\Jay.xls;Readonly=True"
'For Oracle Db
strOracleConnection = "provider=oraoledb.1;server=localhost;uid=scott;pwd=tiger;database=testdata"
'For Sql DB
strSqlConnection= "provider=sqloledb.1;server=localhost;uid=sa;pwd=;database=testdata"
'For Excel
strExcelConnection = "DRIVER={Microsoft Excel Driver (*.xls)};DBQ=C:\Jay.xls;Readonly=True"
Comments