| | |
Can anyone tell me, Connection to Access Data Using ASP
![]() |
•
•
Join Date: Jul 2008
Posts: 44
Reputation:
Solved Threads: 3
Hi, I am trying to Write web type application and connect my database (Access) with DNSLess Connection like this
Set conn = server.createobject("adodb.connection")
DSNtemp="DRIVER={Microsoft Access Driver (*.mdb)}; "
DSNtemp=dsntemp & "DBQ=" & server.mappath("Record.mdb")
conn.Open DSNtemp
This is very much like to Connection to Database from VB6, but, I do not know how to include the User name and Password for the above Connection. The above code is correct only for with no Passoword. Can any one tell me.
Also, if any one know whether Connection can be created or not for MySql from VB (This is not MS SQL). I simply know MySql is convenient for php, etc. and not for ASP and VB6. Is this Correct?
kvl
Set conn = server.createobject("adodb.connection")
DSNtemp="DRIVER={Microsoft Access Driver (*.mdb)}; "
DSNtemp=dsntemp & "DBQ=" & server.mappath("Record.mdb")
conn.Open DSNtemp
This is very much like to Connection to Database from VB6, but, I do not know how to include the User name and Password for the above Connection. The above code is correct only for with no Passoword. Can any one tell me.
Also, if any one know whether Connection can be created or not for MySql from VB (This is not MS SQL). I simply know MySql is convenient for php, etc. and not for ASP and VB6. Is this Correct?
kvl
If I remember right, the connection string is following:
One way to use MySQL in VB6 is to get MySQL ODBC driver (from MySQL site). The connection string is following:
You may find a never ODBC driver than version 3.51
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
"Driver= {MicrosoftAccessDriver(*.mdb)}; DBQ=" & server.mappath("Record.mdb") & "; Uid=Username; Pwd=Password;"
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
"DRIVER={MySQL ODBC 3.51 Driver}; SERVER=127.0.0.1; DATABASE=MySample; UID=UserName; PWD=Password"
Teme64 @ Windows Developer Blog
![]() |
Similar Threads
- Simple ASP.Net Login Page using C# (C#)
- Updated : Simple ASP.Net Login Page (ASP.NET)
- how to connect ms access with asp vbscript (ASP)
- my insert.asp cannot connect to access data (Troubleshooting Dead Machines)
- PHP, ASP, ColdFusion, what's your fav? (IT Professionals' Lounge)
- ASP .NET Display Random records from the database (ASP.NET)
- Simple ASP.Net Login Page (Using VB.Net) (ASP.NET)
- Using Visual Fox Pro data tables in asp.net application (ASP.NET)
- IIS connection will not write data (ASP)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: How to set Database Applicaion path to crystal Reports
- Next Thread: End of statment expected??.....
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





