Using ODBC Data Sources in Connection String 
Author Message
 Using ODBC Data Sources in Connection String

How can I make VB.Net recognize the ODBC Data Source Name
I have created for my SQL 2000 databases?  I need to have
a user db on each machine and a master DB on the server.  
Crystal Reports allows me to refer to the Data Source naem
in design, and it finds the data OK.  Now, as a final step
before deployment, I need to be able to do the same for
the VB code.  I've searched counless books and MS
documents, but now luck.  Anya nd all suggestions are
appreciated.  Thanks in advance. Doug


Fri, 29 Jul 2005 02:26:24 GMT  
 Using ODBC Data Sources in Connection String
MyCn = "DSN=NAMEOFDSN;UID=;PWD=;"
or
MyCn = "Provider=MSDASQL;Driver=SQL
Server;Server=nameofyourserver;Database=nameofyourdatabsae;UID=;pwd=;"

hth


Quote:
> How can I make VB.Net recognize the ODBC Data Source Name
> I have created for my SQL 2000 databases?  I need to have
> a user db on each machine and a master DB on the server.
> Crystal Reports allows me to refer to the Data Source naem
> in design, and it finds the data OK.  Now, as a final step
> before deployment, I need to be able to do the same for
> the VB code.  I've searched counless books and MS
> documents, but now luck.  Anya nd all suggestions are
> appreciated.  Thanks in advance. Doug



Fri, 29 Jul 2005 05:57:34 GMT  
 Using ODBC Data Sources in Connection String

Thanks alot -- I'll give it a try tomorrow

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Sat, 30 Jul 2005 09:51:50 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Connection string: Data Source=(local)????

2. Connection string: Data Source=(local)????

3. Data Source in connection string

4. Using an ODBC Data SOurce with VB 6

5. Using Seek method with ODBC data sources.....

6. ODBC Connection Strings for LDAP<->ODBC in Visual Basic for MS Access

7. ODBC.ini - How can I get all ODBC Data Sources

8. Problems with data control in VB 4.0 and ODBC data sources

9. error 3265 when accessing odbc data source through data control

10. ODBC connections using ODBC

11. Data Form Wizard and ODBC Data Source

12. Syntax for importing data into an Access table from an ODBC data source

 

 
Powered by phpBB® Forum Software