CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 DSNless connection to a password protected Access db????

Print topic Send  topic

Author Message
Don_S
Posted: 05/04/2005, 10:36 AM

I am tying to connect to my Access db on my website and am having no luck :( My host gave me the following string to use as my connection but i am not sure how to use it.
Any help would be great.
Don

Set oConn=Server.CreateObject("ADODB.Connection")

dbpath = Server.MapPath(Your Access DB File)
PWD = "Your Password"

ConnString = "Provider=MSDASQL;" & _
"DRIVER={Microsoft Access Driver (*.mdb)};"& _
"DBQ=" & dbpath & ";" & _
"password=" & PWD & ";"

oConn.Open(ConnString)
Nicole

Posts: 586
Posted: 05/05/2005, 4:32 AM

Don,
You can include real path, database name, password into connection string and put it into database Connection dialog - > Use Connection String option.

_________________
Regards,
Nicole
View profile  Send private message
peterr


Posts: 5971
Posted: 05/05/2005, 12:56 PM

Based on the ConnString that you provided above, you should enter such Connection String in CCS:
Provider=MSDASQL;DRIVER={Microsoft Access Driver (*.mdb)};DBQ=Server.MapPath(Your Access DB File);

You will only need to replace "Your Access DB File" with the .mdb filename. I'm assuming that you don't need a password.

Please also see: http://support.yessoftware.com/kb_article.asp?article_id=54
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
sagar
Posted: 05/20/2005, 1:52 AM

Plz send me complete code for accessing the table from mysql database from java programming with DSNless connection.


Regard's
SAGAR
peterr


Posts: 5971
Posted: 05/20/2005, 9:32 AM

JDBC Driver: org.gjt.mm.mysql.Driver
Database URL: jdbc:mysql://localhost/...

_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.