I have a System DSN configured and test ok :
Microsoft SQL Server Native Client Version 10.00.2531
Data Source Name: xxx Data Source
Description: xxx Server: SERVER\SHARE
Use Integrated Security: Yes Database:
yyy Language: (Default) Data
Encryption: No Trust Server
Certificate: No Multiple Active Result
Sets(MARS): No Mirror Server:
Translate Character Data: Yes Log Long
Running Queries: No Log Driver
Statistics: No Use Regional Settings:
No Use ANSI Quoted Identifiers: Yes
Use ANSI Null, Paddings and Warnings:
Yes
I work on a windows 7 64 bits. The code in running in x86 mode.
In Excel, I can connect only to User DSN, the System DSN does not appear. I tried also a use DSN, It works in excel but not in c#
I changed the permissions for the ODBC to everyone in regedit.
I use this connectionstring in the c# code : Data Source=xxx;Initial Catalog=yyy;Integrated Security=SSPI;
I have this error : ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
Any idea ?
Thanks in advance