How do I connect to my database via .NET? Print

  • 47

A website built using .NET can be connected to databases of different types: MSSQL, and Access databases.

You need to use a specific connection string to connect to each database type:

MSSQL

  • Server=myServerAddress;Database=myDataBase;User Id=myUsername;Password=myPassword;

 

As long as the placeholders in the above are replaced with your actual database connection details, it should allow a connection to the database.


Was this answer helpful?

« Back