Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All,
I develop C# windows application whaere I have to connect with SQL2000 but when I try to run the program then it shows error "ERROR [IM002] [Microsoft ODBC Driver Manager] Data source name not found and no default Deriver specified". What should I do, if it is possible please advice me

Thanks & Regards
Indrajit Dasgupta
Posted
Comments
Uday P.Singh 27-Oct-11 11:36am    
are you using system DSN?
IndrajitDasgupat 28-Oct-11 0:32am    
Yes I am using System DSN
Bala Selvanayagam 27-Oct-11 12:11pm    
What is your connection string ? please post.


If using DSN, is it System or User ?
IndrajitDasgupat 28-Oct-11 0:45am    
DSN=BillingCtl;UID=sa;PWD=sa

It is System DSN

Use the SqlConnection, SqlCommand native connectors instead of the ODBC drivers.

See : http://msdn.microsoft.com/en-us/library/8t72t3k4.aspx[^]
 
Share this answer
 
your DSN looking okay

Still,this can happen, if your operating system is server version.

In a server operating system there are two dsn/odbc managers

1. 64 bit dsn/odbc managers - Default one opened by the menu navigations
2. 32 bit dsn/odbc managers

If you are on the server operating system, you would have used the deafult dsn/odbc manager (64 bit) to create the DSN and where as you application might be expecting a 32 bit DSN/ ODBC settings

If you are on the server versin, create the same DSN under 32 bit as well and it should resolve the problem.

You can launch the 32 bit dsn/odbc by the followings

C:\Windows\SysWOW64\odbcad32.exe


Let me know how it goes ?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900