大神急救,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所以不能