I'm using Microsoft SQL Server Database File (SqlClient), name UHMS.mdf and I'm not able to connect to it. can someone help please.
thanks.
I'm using Microsoft SQL Server Database File (SqlClient), name UHMS.mdf and I'm not able to connect to it. can someone help please.
thanks.
With SQL Server, you don't connect directly to a file. You connect to a SQL Server instance, which has a set of databases mounted. Each database consists of two (one data, one log) or more data files. The UHMS.mdf data file will be associated with a database. Also, you can connect using either SQL Server Authenticated or Windows Authenticated logins. So what you need to know is:
See www.connectionstrings.com for examples of connection strings to use.