I have numerous databases on a server,I am able to connect using : engine = create_engine("mssql+pyodbc://scott:tiger@some_dsn"). However, this connects to the default database. Is there a way i can specify a particular Database on the server? I tried :engine = create_engine("mssql+pyodbc://scott:tiger@some_dsn/bdname") but this did not work
Regards
参考文档 :
engine = create_engine('mssql+pymssql://scott:tiger@hostname:port/dbname')
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.