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
Local works but remote doesn't
Old 04-25-2006, 07:20 PM Local works but remote doesn't
Average Talker

Posts: 19
Trades: 0
Hello all. I have a section of code that someone was kind enough to help me out with, and it worked great on the localhost. The problem started when I uploaded the application the my remote server. The rest of the application is working fine, it is just failing on the following section. This is the error:



Microsoft OLE DB Provider for ODBC Driverserror '80004005'
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified /PickDateLast1.asp, line 38


... and this is the code: (line 38 happens to be the section in red)


Code:
 
<%
'Delete any records form the Temp_Date table with current Session(MM_Username)
Dim oConn, oRS, sQry
Dim sConn
set oConn = Server.CreateObject("ADODB.Connection")
'Relpace Xxxxx with the name of your dsn
sConn = "Data Source=Timesheet;"
oConn.Open sConn
Set oRS = Server.CreateObject("ADODB.Recordset")
Set oRS.ActiveConnection = oConn
'SQL RecordSet 
'Change tablename to the name of the table in your database
sQry = "DELETE * FROM Temp_Date WHERE UserName =  '" & SesUserName & "' "
oRS.Open sQry
%>

I would appreciate any suggestions.

Thanks in advance,

Parallon
parallon is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-25-2006, 07:35 PM Re: Local works but remote doesn't
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
The dsn doesn't exist on the server
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Local works but remote doesn't
 

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.35588 seconds with 12 queries