|
| ||||||||||
| Tags: asp code, odbc drivers, sql connection, sql server |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| ||||
| ||||
| Error Microsoft OLE DB Provider for ODBC Drivers
I have developed a code in ASP and I get an error when I run that file. Here below i have mentioned that problem if anybody tell me what wrong with it then i will be thankful to him Microsoft OLE DB Provider for ODBC Drivers (0x80040E4D) / Appli_AVK / connection_SQL.asp, line 5 Here is the code of my ASP file connection to a database SQL Server 2005 Code: <% set conn_SQL = Server. CreateObject ( "ADODB.Connection") connstring_SQL = "driver = (SQL SERVER); server = S53DNVMV171; uid = cli_prev_planif_avk; pwd = pass; cli_articles database =" conn_SQL. connstring_SQL open %> |
|
#2
| ||||
| ||||
| Re: Error Microsoft OLE DB Provider for ODBC Drivers
Have you set up DSN for your OLE DB, When you set up the DSN, you need to change the default database to the database that contains all of the Commerce Server tables. If the "Change the default database to:" option is left unchecked or points to a database other than the one that contains the Commerce Server tables, the above error will occur. To change the default database for the Commerce Server DSN to the correct database, do the following:
|
|
#3
| |||
| |||
| Re: Error Microsoft OLE DB Provider for ODBC Drivers
This may arise when the assigns permission are not correctly enabled, and to avoid this kind of problem you need to make sure permissions set to update/add files in the directory where you have stored the Access mdb file are granted. and to check that you need to ask your webhost If there would be problem related to the connection string then you might be require to change it. Strip all but the DRIVER= and DBQ= part. your default configuration may be set on ad2000.mdb if that doesn't work then try ad97.mdb. As the one host I installed AdMentor they claimed to support Access 2000 this may be their setting but you may get an error. But when i changed to ad97.mdb and it worked... |
|
#4
| ||||
| ||||
| Re: Error Microsoft OLE DB Provider for ODBC Drivers
DSNs make code harder to maintain. Well, unless you can log into the ISP's machine with remote software, and to avoid this define your ODBC connection not with "Microsoft Access Driver" but with "Jet OLEDB Provider 4.0". So your connection string would look like this: "Provider=Microsoft.Jet.OLEDB.4.0;Data source="C":\Backup\OBS\Development\Db\obs2k.mdb;Persist Security info="False"" If you use a DSN-Less connection. Otherwise its in the ODBC Settings. |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "Error Microsoft OLE DB Provider for ODBC Drivers" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ODBC drivers are missing in win 7 home premium | Kanesteyn | Windows Software | 3 | 28-11-2011 03:01 PM |
| Where to get ODBC drivers in unix | Xylina | Software Development | 5 | 16-01-2010 02:12 AM |
| ODBC Drivers 64-Bit | NMahmoud | Windows Server Help | 4 | 13-10-2009 01:51 PM |
| Microsoft office install odbc error | Drogbaa | Windows Software | 3 | 03-08-2009 05:23 PM |
| How do I reinstall ODBC Drivers? | longevity | Windows XP Support | 1 | 31-12-2006 10:00 PM |