通过局域网连接数据

 收藏
Dear All !
    I have developed a Software for a Hospital using vb.net 2005 & Sql Express.  Now i want to connect this data through lan. What connection string should i give. Please suggest. Below is my current connection string which i have used for it.

Dim conn As New SqlConnection()
conn.ConnectionString = "Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|Data\Sadar_Hospital.mdf;Integrated Security=True;User Instance=True"
回复
  • Mered 回复

    您只需将“。\ SQLEXPRESS”替换为新服务器的名称。根据安全设置,您可能必须更改为用户名/密码身份验证。如果身份验证将基于Windows域用户名,则可以使用现有的Integrated Security。