Accessing a SQL DB

Results 1 to 2 of 2

Thread: Accessing a SQL DB

  1. #1
    Join Date
    Dec 1969

    Default Accessing a SQL DB

    I&#039;m a novice at this, so this is probably a simple question. <BR><BR>I&#039;m trying to access a SQL DB and using JScript, and I receive an error message back that says "Server is undefined".. <BR><BR>My code reads as follows:<BR><BR>var adoConnection = Server.CreateObject("ADODB.Connection");<BR>adoCon nection.Open("DSN=test");<BR><BR>var adoRecordSet;<BR>adoRecordSet = adoConnection.Execute("Select * from pubs");<BR><BR>var author = adoRecordSet("author").Value;<BR><BR>alert(author) ;<BR><BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default can't do this client-side

    do it server-side.<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts