开发者

i cannot connect to Microsoft SQL Server Database File (SqlClient)

I'm using Microsoft SQL Server Database File (SqlClient),开发者_如何学Python 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:

  1. The name of the SQL Server server and instance to use;
  2. The database name to initially connect to that has the UHMS.mdf data file mounted -- maybe it's named UHMS ?
  3. Which authentication mode to use. If SQL Server Authentication, you'll need the username and password. If Windows, your account will need to be set up by the sysadmin to allow your connection to the SQL Server instance.

See www.connectionstrings.com for examples of connection strings to use.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜