Create DSN file.

Results 1 to 2 of 2

Thread: Create DSN file.

  1. #1
    Nha Le Guest

    Default Create DSN file.

    How can I create a DSN file when I am using SQL Server, and then open it in ASP page? Where can I write an ASP page? Microsoft Visual Interdev or IIS?

  2. #2
    KillerPuppy Guest

    Default RE: Create DSN file.

    To create the DSN file you need to goto ODBC 32 on the Server in Control Panel. Create the file DSN specifying all the connection information. Then move that file to your HTML scripts directory.<BR><BR>Now your asp code will need to be:<BR>&#060;!--#include file=""--&#062;<BR><BR>Set Conn = Server.CreateObject("ADODB.Connection")<BR>Conn.Op en = "dsnfilename", "username", "password"<BR><BR>Then you can query your sql from here, which is a whole other conversation.

Posting Permissions

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