大神急救,Windows下使用OTL連接SQLServer數據庫的連接字符串怎麼寫呢?我怎麼試都錯誤,OTL提供的例子中是這麼寫“scott/tiger@mssql2008”,真莫名其妙!網上也沒有搜不到答案,求幫助!謝謝
太高興了,終於解決了,做個記錄,OTL訪問SQLServer是通過ODBC進行的,所以連接字符串也采用ODBC的格式(可參考:http://www.cnblogs.com/mattins/archive/2011/06/07/2074029.html
odbc 連接字符串
access "Driver={microsoft access driver(*.mdb)};dbq=*.mdb;uid=admin;pwd=pass;"
dBase "Driver={microsoft dbase driver(*.dbf)};driverid=277;dbq=------------;"
oracle "Driver={microsoft odbc for oracle};server=oraclesever.world;uid=admin;pwd=pass;"
MSSQL server "Driver={sql server};server=servername;database=dbname;uid=sa;pwd=pass;"
MS text "Driver={microsoft text driver(*.txt; .csv)};dbq=-----;extensions=asc,csv,tab,txt;Persist SecurityInfo=false;"
Visual Foxpro "Driver={microsoft Visual Foxpro driver};sourcetype=DBC;sourceDB=.dbc;Exclusive=No;"
MySQL "Driver={mysql};database=yourdatabase;uid=username;pwd=yourpassword;option=16386;"
SQLite "Driver={SQLite3 ODBC Driver};Database=D:\SQLite*.db"
PostgreSQL "Driver={PostgreSQL ANSI};server=127.0.0.1;uid=admin;pwd=pass;database=databaseName"
),昨天也這麼嘗試過,但是Driver={sql server}寫成Driver=SQLServer所以不能