|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello!
Part of the website is in asp. We had to change the Host. After uploading the files to the new webspace the asp-part didn't work any more although it worked on the old webserver. I hope y added enouth information to find the error. The website is (URL address blocked: See forum rules) THE ERROR: (clicking on: home->dach->referenzen) on opening asp file "dach_referenzen.asp" apears this: ------------------------------------------- Code:
Microsoft OLE DB Provider for ODBC Drivers error '80004005' [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified /dach_referenzen.asp, line 15 ---------------------------------------- the first part of "dach_referenzen.asp": --------------------------------- Code:
1 <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
2 <!--#include file="Connections/uttenthaler.asp" -->
3 <%
4 Dim abf_referenzen__MMColParam
5 abf_referenzen__MMColParam = "Dach"
6 If (Request("MM_EmptyValue") <> "") Then
7 abf_referenzen__MMColParam = Request("MM_EmptyValue")
8 End If
9 %>
10 <%
11 Dim abf_referenzen
12 Dim abf_referenzen_numRows
13
14 Set abf_referenzen = Server.CreateObject("ADODB.Recordset")
15 abf_referenzen.ActiveConnection = MM_uttenthaler_STRING
16 abf_referenzen.Source = "SELECT * FROM tbl_referenzen WHERE Kathegorie 17 = '" + Replace(abf_referenzen__MMColParam, "'", "''") + "'"
18 abf_referenzen.CursorType = 0
19 abf_referenzen.CursorLocation = 2
20 abf_referenzen.LockType = 1
21 abf_referenzen.Open()
--------------------------------- file "Connections/uttenthaler.asp" --------------------------------- Code:
1 <% 2 ' FileName="Connection_odbc_conn_dsn.htm" 3 ' Type="ADO" 4 ' DesigntimeType="ADO" 5 ' HTTP="false" 6 ' Catalog="" 7 ' Schema="" 8 Dim MM_uttenthaler_STRING 9 MM_uttenthaler_STRING = "dsn=w08244460_uttenthaler;" 10 %> 11 --------------------------------- I would be very geratful for any advice. Thank you very much. Hannes |
|
#2
|
||||
|
||||
|
--> Moved to ASP Forum
Hi, and welcome to the forums. In your code you are referring to a DSN called w08244460_uttenthaler: Code:
1 <% 2 ' FileName="Connection_odbc_conn_dsn.htm" 3 ' Type="ADO" 4 ' DesigntimeType="ADO" 5 ' HTTP="false" 6 ' Catalog="" 7 ' Schema="" 8 Dim MM_uttenthaler_STRING 9 MM_uttenthaler_STRING = "dsn=w08244460_uttenthaler;" 10 %> 11 It looks as if you do not have a DSN with this name on the new server. I always use a DSN-less connection to combat this, I suppose it is personal preference. Where is the database located and what type of database is it? SQLServer, Oracle, MySQL, Access? You can find the correct connection string at connection strings.com |
|
#3
|
|||
|
|||
|
The database is with Access and located on the same server under /Dbase/uttenthaler81204.mdb. The DB has no passwordprotection.
Thank you for your hint to change the DNS-Connection to a DNS-less connetcion. On your indicated website I found this: (I aded the proper dbase name and location) Provider=Microsoft.Jet.OLEDB.4.0;Data Source=/DBASE/uttenthaler81204.mdb;User Id=admin;Password=; And I wanted to ask where to place this code and which existing code I have to deleate? For your help I wold be very greateful. Hannes |
|
#4
|
||||
|
||||
|
The connection string would need to replace your reference to your DSN. I believe that you can omit the password attribute if you are not specifying one, your code would then look like:
Code:
<% Dim MM_uttenthaler_STRING MM_uttenthaler_STRING = "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=/DBASE/uttenthaler81204.mdb;User Id=admin;" %> |
![]() |
| Viewing: ASP Free Forums > Programming > ASP Development > Newbie-problem: After changig webhoster: -->error '80004005' |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|