Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need "dsn-less" connection

Status
Not open for further replies.

schwankieog

Programmer
Jul 25, 2001
43
US
i am writing a asp file for a outside company which i do not have acces to the server. i need to connect to a database without using a dsn connection. the company wants everything to be running then they will transfer it to their server. i plan on using general variables but if some one could please give me the syntax for a dsn-less connection i would appreciate it. thanx
 
Can you supply more details?

If these guys can't make a DSN on their server then I assume they can't administer a database. So it sounds like you're providing a Access .mdb or something.

Do you plan to use a simple Access database that will sit in the same directory as the ASP pages? This would be bad. At least put it into another directory that doesn't allow Read or Write access via the web.
 
I usually use this very basic version to connect to SQL Server:

strconn="driver={SQL Server};server=server_name;uid=user_id;
pwd=password;database=db_name;"

 
I am getting ----
The Microsoft Jet database engine cannot open the file '(unknown)'. It is already opened exclusively by another user, or you need permission to view its data.
--- This error message when trying to connect to Acess database , which is not on my local drive. If I connect to the database , which is on my local drive , the program works fine....but not on network drive...
Please help
 
in response, yes they have adminstrating database privileges on the server. they just choose not give me any information and refuse to use a dsn although they can (their 'all-knowing' tech doesnt like them) any way if there is a way to write a generic connection to a database please respond. the database they are using is going to be a access database
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top