Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDatabase Management

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old April 27th, 2003, 01:31 PM
dragonsteve dragonsteve is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 2 dragonsteve User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Data source name not found error

Hi,

I have a problem with my ASP page.
Everything works fine on my PC using IIS.
When I upload everything to the webserver and check it, I get the following error:

ADODB.Connection.1 error '80004005'

SQLState: IM002
Native Error Code: 0
[INTERSOLV][ODBC lib] Data source name not found and no default driver specified


/newsite/loadpage.asp, line 61


My code is as follows.
PHP Code:
 Dim oRS
         Dim collects
        dim returnString
        
                
        
if request.querystring("nbr") = "" then
            Session
("nbr") = 1
        
else
            
Session("nbr") = request.querystring("nbr")
        
end if
        
        
returnString "<div name=""moveBack"" style=""background-color: transparent; border: Black; width: 164; height: 32; background-image: url(images/linkbutton.gif);color:white;  text-align: center; vertical-align: baseline; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-style: normal; font-size: xx-small; padding-top: 8;"" onClick=""moveBack();"">Back</div>"
         
Set oRS Server.CreateObject("ADODB.Recordset")
        
         if 
oConn.State adStateClosed then
             oConn
.Open sConn
         end 
if
         
oRS.Open "SELECT * FROM [" sTableName "] WHERE filter = '" Session("filter") & "' AND seqnbr >= " Session("nbr") & " AND seqnbr <= " Session("nbr") + 10 " ORDER BY Name" oConn23
        
If not oRS.EOF Then
            Session
("Count") = oRS("filterCount")
           
             Do While 
Not oRS.EOF
                returnString 
returnString "<div name=" oRS("id") & " style='background-color: transparent; border: Black; width: 164; height: 32; background-image: url(images/linkbutton.gif);color:white; text-align: center; vertical-align: baseline; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-style: normal; font-size: xx-small; padding-top: 8;' onClick=openLink(this.childNodes) onMouseOver=setComment(this.childNodes) onMouseOut=unsetComment()>"
                ' *** Index = 0
                returnString = returnString & "<input type=hidden name=""" & oRS("id") & "comment"" value=""" & oRS("Comment") & """>"
                ' 
*** Index 1
                returnString 
returnString "<input type=hidden name=""" oRS("id") & "link"" value=""" oRS("Url") & """>"
                ' *** Index = 2
                returnString = returnString & "<input type=hidden name=""" & oRS("id") & "title"" value=""" & oRS("Title") & vbcrlf & """>"
                ' 
*** Index 3
                returnString 
returnString "<input type=hidden name=""" oRS("id") & "label"" value=""" oRS("Label") & vbcrlf """>"
                
returnString returnString oRS("Name")
                
returnString returnString "</DIV>"
                
oRS.MoveNext
           Loop
         End 
If
        
oRS.Close
        Set oRS 
Nothing
        oConn
.Close
        Set oConn 
Nothing
        returnString 
returnString "<div name=""moveForward"" style=""background-color: transparent; border: Black; width: 164; height: 32; background-image: url(images/linkbutton.gif);color:white;  text-align: center; vertical-align: baseline; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-style: normal; font-size: xx-small; padding-top: 8;"" onClick=""moveForward();"">Next</div>"
        
        
loadLinks returnString 


Is there anybody who has encountered this problem before.

THX

Reply With Quote
  #2  
Old August 20th, 2003, 04:28 PM
mmormann mmormann is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 2 mmormann User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
You are asking to open the connection string called sConn, but I don't see it defined.

It would go something like...
sConn = "DBQ=" & Server.Mappath("scram.MDB") & ";Driver={Microsoft Access Driver (*.MDB)};" if using Microsoft Access database connection on your webserver.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > Data source name not found error


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway