数据库绝对路径问题
我写了个类
public void Open(string strDataSource,string strInitialCatalog,string strUserID,string strPwd)
{
m_strConnString="Data Source="+strDataSource+";Initial Catalog="+strInitialCatalog+";User ID="+strUserID+";Password="+strPwd;
m_connConnection = new SqlConnection(m_strConnString);
m_connConnection.Open();
}
我想打开绝对路径下的数据库,如:mySQL.Open("localhost","C:\\Program Files\Microsoft ISA Server\ISALOG_20060226_WEB_000.mdf","sa","");
可是说我的路径是C:\\Program Files\Microsoft ISA Server\ISALOG_20060226_WEB_000.mdf无法识别的转义符序列
请问大虾们知道是怎么回事么??
谢谢了