Click here to Skip to main content
16,004,564 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to connect SQL server to visual studio using c++ language and no wizards?
I need a fuul code please?
I tried to but there is an error in the connection string.
Posted

1 solution

Depending on what SQL server you are trying to connect to. If it is mysql, then there is MySQL++[^]. If you want a generic solution that will work with all databases, then you will need to use ODBC. Every SQL implementation that I know of has a ODBC driver with a mostly standard interface.

The only OBCD code I have was written under contract, so cant be shared, but googleing something like ODBC Sample[^] would be a good place to start
 
Share this answer
 
Comments
Sandeep Mewara 24-Jan-11 7:11am    
Comment from OP:
I need to connect it to microsoft SQL server 2005

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