Infolink

 

Search This Blog

Showing posts with label external SQL server database. Show all posts
Showing posts with label external SQL server database. Show all posts

Dec 19, 2012

How to connect to an external SQL server database in ASP.NET / VB.NET / .NET

Connecting to databases in .NET is different if you are coming from other languages such as PHP. To connect to a database in ASP.NET / .NET in general, you use "Connection Strings" that essentially is the connection information to the database.

First and foremost, in your code behind file within an ASP.NET application (or simply the .vb or .cs file of your .NET desktop application), you will need to first import the namespace that has the relevant database-related classes and methods, etc.
Related Posts Plugin for WordPress, Blogger...