Beruflich Dokumente
Kultur Dokumente
and
x64 applications. The "Data Sources (ODBC)" tool in the Administrative Tools list takes you to the
x64 version. To view/edit the x86 ODBC settings, you'll need to run that version of the tool manually:
#include <windows.h>
#include <stdio.h>
#include <odbcinst.h>
void ShowErrors ()
{
WORD iError = 1;
DWORD pfErrorCode;
char lpszErrorMsg[301];
WORD cbErrorMsgMax = 300;
RETCODE rc;
printf ("\n");
}
void main ()
{
char * szDriver = "SQL
Server\0Driver=sqlsrv32.dll\0Setup=sqlsrv32.dll\0\0";
char * szPathIn = "c:\\winnt\\system32";
char szPathOut[301];
WORD cbPathOutMax = 300;
WORD cbPathOut;
DWORD dwUsageCount;
Add This Thread Del.icio.us Digg Google Spurl Blink Furl Simpy Y!
To: MyWeb
« Previous Thread | Next Thread » Thread Tools Search this Thread Display Modes
#1
May 21st, 2004, 04:20 PM
Help!!
I can connect fine to my Db from my test server at home but when I move it to my server
(my web server and SQL server are on the same machine) I get the following error:
Microsoft OLE DB Provider for Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver
specified
#2
May 22nd, 2004, 03:23 AM
How are you connecting to the DB on the production server? DSN, DSN-less? If DSN, is the
DSN setup correctly on the live server? If DSN-less, is the driver present? Does the live DB
server have the same name, db??
#3
May 22nd, 2004, 01:44 PM
#4
August 18th, 2004, 08:00 AM
fix:
Delete the USER data source name and define it as a SYSTEM data source name.
In Windows 2000:
-> Start -> Settings -> Control Panel -> Administrative Tools ->
Data Sources (ODBC):
- User DSN : delete the specified User DSN
- System DSN : create a new System DSN
#5
September 21st, 2005, 01:23 PM
Hi there.
What's the fix when using a non-DSN connection?
Thanks in advance,
another Newbie
#6
October 9th, 2005, 07:38 PM
Sounds like you have a bad connection string - show us what you've got and we should be
able to help you.
Alternatively, this resource should be able to get you going:
http://www.carlprothman.net/Default.aspx?tabid=81
#7
June 17th, 2008, 09:05 AM
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver spe
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver
specified
I had this error and want to let you know how it was resolved.
First, this was an ASP web application using a vb 6.0 dll to get data from a sql server 2005
database on a 64 bit windows server 2008 enterprise (vista like) server. I could only get
the dll to work in component services as opposed to simply registering it.
It all worked fine upon setup, but after four windows updates one night, the error above
was posted in the event viewer, and the web app crashed.
In a 64 bit windows server operating system, there are TWO odbc managers. When you
pull up the usual menu for the odbc / dsn system, it is for the 64 bit odbc manager, and 32
bit applications (vb 6.0) will not work using these dsn's.
This is where the 32 bit odbc manager is:
C:\Windows\SysWOW64\odbcad32.exe
I hope you do not have to go through what I and three Microsoft Support engineers had to
to figure this out.
Jonathan
#8
March 11th, 2009, 03:47 PM
Hi,
What exactly you did to solve this problem? I am facing the same problem on Windows
Server 2008 64-bit and SQL Server 2008.
Quote:
I had this error and want to let you know how it was resolved.
First, this was an ASP web application using a vb 6.0 dll to get data from a sql server
2005 database on a 64 bit windows server 2008 enterprise (vista like) server. I could
only get the dll to work in component services as opposed to simply registering it.
It all worked fine upon setup, but after four windows updates one night, the error above
was posted in the event viewer, and the web app crashed.
In a 64 bit windows server operating system, there are TWO odbc managers. When you
pull up the usual menu for the odbc / dsn system, it is for the 64 bit odbc manager, and
32 bit applications (vb 6.0) will not work using these dsn's.
I hope you do not have to go through what I and three Microsoft Support engineers had
to to figure this out.
Jonathan
#9
April 9th, 2009, 08:00 AM
There are 2 versions of ODBC to worry about on 64-bit machines: the 32-bit version and
the 64-bit version. So you have to Add or Change in 2 places to cover both types. Start -
Admin Tools - Data Sources gets you to the 64-bit version; Start - Run -
C:\Windows\SysWOW64\odbcad32.exe gets you to the 32-bit version. Do all your
adds/deletes/changes in both.
Quote:
What exactly you did to solve this problem? I am facing the same problem on Windows
Server 2008 64-bit and SQL Server 2008.
#10
July 28th, 2009, 10:36 PM
This same problem happened to me with VS2005 and a third party ODBC database.
Essentially the same symptoms. I could preview data, but when I tried to run the app, it
failed to access the data. The reason is that Vs2005 is a 32 bit app, but my app was being
compiled as a 64bit app. So they used different ODBC managers and DSN's. When I
changed the target CPU in the compile options to x86 (32bit), voila, problem gone!
Comments on this post
StingRayYellow agrees: great call
#11
January 12th, 2010, 01:34 AM
My application is in asp.net 2.0 and connect with sql server 2005. my connection string is
DSN=DsnName;Uid=sa;Pwd=pwd;
my development server is 32bit windows 2000 and my production server is 64bit windows
2008. my application running fine in development server but when execute it in production
server, I got the following error.
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver
specified
2) execute
C:\Windows\SysWOW64\odbcad32.exe
create a dsn as "DsnName" in System Dsn.
Now when execute the application in production server Im getting the following error :
ERROR [HYT00] [Microsoft][ODBC SQL Server Driver]Timeout expired
#12
April 2nd, 2010, 04:10 AM
Check this link EMBEDDING SQL IN C#.NET for details on how to connect to SQL server
database from C#.NET database applications as well as Java database applications. It also
describes how to pass embedded SQL queries, calling stored procedures, pass parameter
etc.
#13
April 2nd, 2010, 01:26 PM
Software Faqs
#14
April 21st, 2010, 09:37 AM
Thank You!
Quote:
#15
January 12th, 2011, 10:56 AM
Quote:
Guys my first post but hopefully it will help someone. I migrated from 2k3 Server to 2k8
Server and IIS 6 to IIS 7 running a couple of access databases with classic asp. I ran into
the "Data Source name not found and no default driver specified" error.
What worked for us was to change the advanced settings for the application pool in IIS7 to
enable 32bit apps to true.
#16
March 23rd, 2011, 10:44 PM
Thanks Jonathan
change the advanced settings for the application pool in IIS7 to enable 32bit apps
Thanks so much for your post, ullevi83! I had exactly the same problem!!
Cheers!
Quote:
What worked for us was to change the advanced settings for the application pool in IIS7
to enable 32bit apps to true.
#18
October 17th, 2011, 06:22 AM
Thanks so much for your post, ullevi83! I had exactly the same problem!!
Cheers!
#19
November 10th, 2011, 09:39 PM
David465 Join Date: Nov 2011
Posts: 1
Registered User Time spent in forums: 4 m 30 sec
Reputation Power: 0
Hi there.
Thanks in advance,
another Newbie