日期:2014-05-18 浏览次数:20432 次
Exception Details: System.Data.Odbc.OdbcException: ERROR [HY024] [Microsoft][ODBC Microsoft Access Driver] '(未知的)' 不是一個有效的路徑。請確定路徑名稱是拼對的,而且檔案位於您所連接的伺服器上。 ERROR [01S00] [Microsoft][ODBC Microsoft Access Driver]無效的連接字串屬性 Provider ERROR [01S00] [Microsoft][ODBC Microsoft Access Driver]無效的連接字串屬性 Remote Server ERROR [01S00] [Microsoft][ODBC Microsoft Access Driver]無效的連接字串屬性 Remote Provider
OdbcConnection oConn = new OdbcConnection(); oConn.ConnectionString = "Provider=MS Remote;" + "Remote Server=\\172.6.16.6/z/Data.mdb;" + "Remote Provider=MSDASQL;" + "DSN=WeightData;" + // "Uid=;" + "Pwd=@66"; OdbcCommand comm = new OdbcCommand(); comm.CommandText = "select * from czk"; comm.Connection = oConn; OdbcDataAdapter da = new OdbcDataAdapter(comm); DataTable dt = new DataTable(); da.Fill(dt);