Category Database Connection Strings

  • Connecting to MSSQL in ASP without a DSN

    This script demonstrates connecting to a MSSQL database in ASP without a DSN. The script will make the connection and then output all the rows of a specified table. Dim objConn, rsRecord, strSQL, tableName, address, username, password, database Define the variables we will use in this script. Set objConn = Server.CreateObject("ADODB.Connection") Create the connection object. We will use ADO for the connection. address...

    Read more...
    1/5/2008 1:51:54 AM Category Database Connection Strings Comments 0
  • Connecting to MySQL in ASP with a DSN

    This script demonstrates connecting to a MySQL database in ASP with a DSN. The script will make the connection and then output all the rows of a specified table. Dim objConn, rsRecord, strSQL, tableName, dsnName, dsnUser, dsnPass, database Define the variables we will use in this script. Set objConn = Server.CreateObject("ADODB.Connection") Create the connection object. We will use ADO for the connection. dsnName...

    Read more...
    1/5/2008 1:50:52 AM Category Database Connection Strings Comments 0
  • Connecting to MySQL in ASP without a DSN

    This script demonstrates connecting to a MySQL database in ASP without a DSN. The script will make the connection and then output all the rows of a specified table. Dim objConn, rsRecord, strSQL, tableName, address, username, password, database Define the variables we will use in this script. Set objConn = Server.CreateObject("ADODB.Connection") Create the connection object. We will use ADO for the connection. address...

    Read more...
    1/5/2008 1:50:08 AM Category Database Connection Strings Comments 0
  • Connecting to MS Access in ASP with a DSN

    This script demonstrates connecting to a MS Access database in ASP with a DSN. The script will make the connection and then output all the rows of a specified table.

    Dim objConn, rsRecord, strSQL, tableName, dsnName, dsnUser, dsnPass
    Define the variables we will use in this script....

    Read more...
    1/5/2008 1:49:01 AM Category Database Connection Strings Comments 0
  • Connecting to MS Access in ASP without a DSN

    This script demonstrates connecting to a MS Access database in ASP without a DSN. The script will make the connection and then output all the rows of a specified table. Dim objConn, dbPath, rsRecord, strSQL, tableName Define the variables we will use in this script. Set objConn = Server.CreateObject("ADODB.Connection") Create the connection object. We will use ADO for the connection. dbPath = "/db/test.mdb"     'The...

    Read more...
    1/5/2008 1:47:08 AM Category Database Connection Strings Comments 0
Archive