I’d like to check a connection string on a SQL 2008 server. Problem is, I have to write the whole thing using C++ (WIN32). Is there any simple way to do this? I’ve googled it, but it’s quite hard, since I don’t have much experience with C++.
Any help would be appreciated!
The connection string should be the same regardless of what language you implement with. To simply test the connection string you could do it a .NET language of your choice or whatever else you’re familiar with.
Here’s a link to a 2-page tutorial that you can use to quickly put a C++ prototype app together that will connect to a db via ADO.
But with .NET, testing a connection can be done in just a few lines of code:
Or you can use a ready-made app like this one to test a connection string.