Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# SQL-Server Access ODBC
I am making a program in which I established connection with sql server using DSN. I am using ODBCConnection class. I want to check that, DSN which is created is for access or sql server. I did google but not getting helpful information. I am using c# and visual studio 2008.
 
Thanks.
Posted 21-Feb-12 23:24pm
Comments
Teju MB at 23-Feb-12 0:46am
   
whsich DSN have u created?? User or System or File??

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Go to control pannel-->Administrative tools-->Data Source(ODBC)-->select any 1( user/System/file)   -->here u can see the number of DSN that already exists-->click on configure button--> here u can see either ur DSN is created for access or SQL or Excel or any other..
 

u can also change the configuration considered u have enough authentications.
Good LuckSmile | :)
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 480
1 Bhavik_Patel 190
2 Richard MacCutchan 155
3 PhilLenoir 155
4 Gihan Liyanage 155
0 Sergey Alexandrovich Kryukov 8,688
1 OriginalGriff 7,237
2 CPallini 2,598
3 Richard MacCutchan 2,080
4 Abhinav S 1,888


Advertise | Privacy | Mobile
Web03 | 2.8.140827.1 | Last Updated 23 Feb 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100