Results 1 to 3 of 3

Thread: Using a DSN

  1. #1
    Join Date
    Jan 2004
    Posts
    9

    Unanswered: Using a DSN

    Currently I am using the following method to connect to my DB in ASP. I want to now use a DSN that has been created on my server called "MyWeb" how would my string look using this DSN?

    cn.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Inetpub\wwwroot\Final.mdb;Persist Security Info=False"
    Last edited by Jasonmr2; 01-28-04 at 12:32.

  2. #2
    Join Date
    Mar 2003
    Location
    Atlanta, GA
    Posts
    191

    Re: Using a DSN

    Originally posted by Jasonmr2
    Currently I am using the following method to connect to my DB in ASP. I want to now use a DSN that has been created on my server called "MyWeb" how would my string look using this DSN?

    cn.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Inetpub\wwwroot\Final.mdb;Persist Security Info=False"
    cn.open "DSN=MyWeb"

    Tim
    Tim

  3. #3
    Join Date
    Jun 2003
    Location
    USA
    Posts
    1,032
    Or I believe even this would work:

    cn.open "MyWeb"
    J. Paul Schmidt, Freelance Web and Database Developer
    www.Bullschmidt.com
    Access Database Sample, Web Database Sample, ASP Design Tips

Posting Permissions

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