请问连接另外一台主机上SQL2008语句怎么写,我只会写2000和2005
一品梅 2013-07-06 06:17:35 private bool OpenCnn()
{
//打开之前,先关闭
this.CloseCnn();
this.m_cnn = new SqlConnection();
this.m_cmd = new SqlCommand();
string connString = string.Empty;
//connString = "Integrated Security=SSPI;Initial Catalog=PACS;Server=.\\sqlexpress"; //SQL2005
connString = "Integrated Security=SSPI;Initial Catalog=PACS;Server=(local)"; //SQL2000
SQL2008 R2 我想连非本地SQL服务器上的数据库,有几种方法,请帮忙写出来,谢谢。