Results 1 to 6 of 6

Thread: How to connect ASP to different database

  1. #1
    Join Date
    Feb 2010
    Posts
    184

    How to connect ASP to different database

    Hi all,

    I am a programmer and building a project on the medical system. I need to help in my project that problem in connecting with database. I want to test the program will different database. Please suggest me how to connect the ASP with different database. Thanks in advance.

  2. #2
    Join Date
    Jan 2008
    Posts
    1,521

    Re: How to connect ASP to different database

    I have connect the ASP to access database with below connectivity coding.

    Code:
    set adocon = Server.Createobject ( "adodb.connection123")
    adoconn.Open "Driver = (Microsoft Access Driver (*. mdb)); DBQ =" & _
    Server.MapPath ( "database, where the path")
    It is Access database DSN ess connection methods. Check and reply.

  3. #3
    Join Date
    Feb 2008
    Posts
    1,852

    How to connect ASP to different database

    I have connect the ASP to SQL by below coding. It is helpful to you for connecting the ASP to SQL.

    Code:
    set adocon = Server.Createobject ( "adodb.connection123")
    adocon.open "provider = SQLOLEDB.1; Data Source = my data 123;" & _
    "user ID =*****; Password =******;"& _
    "inital Catalog = database name123"
    Check and reply.

  4. #4
    Join Date
    May 2008
    Posts
    2,389

    How to connect ASP to different database

    If you want to connecting your database by Oracle 9i. The connection method is below:

    Code:
    set adocon = Server.Createobject ( "adodb.connection123")
    adocon.open "Driver = (microsoft odbc for oracle); server = oraclesever.world123; 
    uid = admin; pwd = pass;"
    Best of luck.

  5. #5
    Join Date
    Oct 2005
    Posts
    2,393

    How to connect ASP to different database

    If you are using MYSQL as a database, this connection code are followed :

    Code:
    set adocon = Server.Createobject ( "adodb.connection")
    adocon.open "Driver = (mysql); database = yourdatabase;
    uid = id; pwd = password; option = 16386; "
    Check and reply.

  6. #6
    Join Date
    May 2008
    Posts
    2,297

    How to connect ASP to different database

    If you want to use MS text OLE DB connection methods. Check the below :

    Code:
    set adocon123 = Server.Createobject ( "adodb.connection123")
    adocon123.open "Provider = microsof.jet.oledb.4.0; data source = C:/myname/myfile.xls;" & _
    "Extended Properties'text; FMT = Delimited '"
    Check and reply.

Similar Threads

  1. How can i connect ā€˜Cā€™ language to a database
    By Mustafa k in forum Software Development
    Replies: 5
    Last Post: 05-01-2011, 10:55 AM
  2. How to use Python to connect DB2 database
    By Radames in forum Software Development
    Replies: 5
    Last Post: 04-03-2010, 01:40 AM
  3. Connect Database to ASP.NET application
    By Ainsley in forum Software Development
    Replies: 4
    Last Post: 12-01-2010, 09:28 AM
  4. how to connect VB6 to database
    By WILTON in forum Software Development
    Replies: 3
    Last Post: 08-12-2009, 04:26 AM
  5. How to Connect Database and Retrieve it with the use of C#?
    By CheckMeNot in forum Software Development
    Replies: 3
    Last Post: 19-11-2009, 09:56 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,050,635.85185 seconds with 17 queries