Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
ODBc DSN/DSN-less connection
Old 05-09-2006, 04:54 PM ODBc DSN/DSN-less connection
Super Talker

Posts: 129
Trades: 0
Hi all, just got my hosting sorted out with Well Thought Out Hosting and everything seems okay so far. However, I can't get my ASP pages to work. They are tied to a MS Acccess database with navigation keys on the page to scroll between records, or in this case pictures. My host supports an ODBC DSN which, forgive the noob question, is different to an OLEDB one? I'm using the connection string as follows in my connections asp document:

<%
' FileName="Connection_odbc_conn_dsn.htm"
' Type="ADO"
' DesigntimeType="ADO"
' HTTP="false"
' Catalog=""
' Schema=""
Dim MM_con17minutes_STRING
MM_con17minutes_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("Source.mdb")
%>

is this what's causing the errors? My database is located in a db folder on the host server, and is called "Source" (don't tell me that's a reserved name). The other pages and images are located in the root folder.

Thanks, Lol
Lol999 is offline
Reply With Quote
View Public Profile Visit Lol999's homepage!
 
 
Register now for full access!
Old 05-09-2006, 06:54 PM Re: ODBc DSN/DSN-less connection
ExpressoDan's Avatar
Ultra Talker

Posts: 317
Name: This Space for Rent
Location: Georgia
Trades: 0
What is the error message you're receiving?

In the mean time, check the permissions on the folder where your access db is. you need to allow write permissions to that folder.
__________________

Please login or register to view this content. Registration is FREE

"I think therefore I am, I think." <!-- George Carlin
ExpressoDan is offline
Reply With Quote
View Public Profile Visit ExpressoDan's homepage!
 
Old 05-09-2006, 06:59 PM Re: ODBc DSN/DSN-less connection
Super Talker

Posts: 129
Trades: 0
Hi Dan, got it sorted out by using a simple DSN ODBC. I created one through Control Panel and used it in dreamweaver to create recordsets. i then created one called exactly the same through my user panel at my webhost. I think I just belt and braces everythign and it seems to work!

Cheers, Lol
Lol999 is offline
Reply With Quote
View Public Profile Visit Lol999's homepage!
 
Old 05-10-2006, 10:28 AM Re: ODBc DSN/DSN-less connection
ExpressoDan's Avatar
Ultra Talker

Posts: 317
Name: This Space for Rent
Location: Georgia
Trades: 0
That's cool, I'm glad to hear you got it sorted. I know some hosting companies are weary of letting users set up DSN's and wasn't sure if they would let you, but that's good.
__________________

Please login or register to view this content. Registration is FREE

"I think therefore I am, I think." <!-- George Carlin
ExpressoDan is offline
Reply With Quote
View Public Profile Visit ExpressoDan's homepage!
 
Old 05-10-2006, 11:43 AM Re: ODBc DSN/DSN-less connection
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
Be careful with DSNs. They are pretty resource-heavy and shouldn't be used on a site that generates an even half-decent amount of traffic.

Your DSNless connection string looks correct in and of itself, but as Dan said it's hard to tell without the error message.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 05-10-2006, 05:24 PM Re: ODBc DSN/DSN-less connection
Super Talker

Posts: 129
Trades: 0
Yeah, I'm just going to mail the host about trying to set up a DSN-less connection. I don't see it being a problem but best to ask first.

Cheers, Lol
__________________

Please login or register to view this content. Registration is FREE
- Street Photography
Lol999 is offline
Reply With Quote
View Public Profile Visit Lol999's homepage!
 
Old 05-12-2006, 01:33 AM Re: ODBc DSN/DSN-less connection
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
It's actually the opposite of what you think.

All hosts "allow" DSNless connections since nothing has to be done on the server end for it. It's just a line of code.

It's a DSN connection that usually causes problems, since not all hosts allow this. I remember back in March/April 2000 when I was trying desperately to figure this stuff out and needed the DSN connection. The only host that could support a DSN connection was Interland.

Mind you, that was over 6 years ago.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Reply     « Reply to ODBc DSN/DSN-less connection
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.30503 seconds with 12 queries