How to test SQL database connection in simple steps

I saw many questions regarding how to check connection string in asp.net, i hope below steps will help programmers to check database connectivity.

1. Open a notepad file and save the file with the extension "test.udl".
2. DOuble click test.udl to open DataLink properties.
3. From the provider tab select the OLEDB provider for SQL database.
4. From the connection tab select/Type the servername and Provide User id and password if you have and select the database you want to use.
5. Click on test connection to test the connectivity and click OK
6. Right click test.udl and open it in notepad.

You can copy the connection string from here....

You can use this technique for any database.


Article by Asheej T K
Thanks and Regards Asheej T K Dotnet Galaxy

Follow Asheej T K or read 33 articles authored by Asheej T K

Comments

No responses found. Be the first to comment...


  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: