如何在另一台机器上运行具有SQL数据库的C#应用​​程序?

0 c#

我使用SQL Express来管理用C#编程的Windows应用程序中的数据库.我正在使用连接字符串,Data Source=.\\SQLEXPRESS;Initial Catalog=caf;Integrated Security=True但它不能在另一台机器上工作.我能做些什么才能让它发挥作用?

MeT*_*tus 6

您缺少:Server = myServerAddress;

连接字符串

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