- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 17
 
odbc sqlserver notes
        Ryan Culpepper edited this page Mar 20, 2018 
        ·
        12 revisions
      
    - install SQL Server Express 2017
- picked Basic, no customization
Server=localhost\SQLEXPRESS;Database=master;Trusted_Connection=True;
 
 - picked Basic, no customization
 - install SSMS 17.5
 - turn on protocols
 
- 
Driver = ODBC Driver 13 for SQL ServerorDriver = SQL Server Native Client 11.0 Server = localhost\SQLEXPRESS
Issue: Several concurrent tests fail with Connection is busy with results for another command (HY000)
- need to set 
MARS_Connection = Yesoption (can't use gui, must edit registry entry!) - refs: https://stackoverflow.com/questions/9017264/why-only-some-users-get-the-error-connection-is-busy-with-results-for-another, https://github.com/catherinedevlin/ipython-sql/issues/54, https://serverfault.com/questions/302169/odbc-sql-server-how-do-i-turn-on-multiple-active-result-setsmars-for-a-syst
 
Remaining issues (test failures):
- Multi-statement string doesn't raise error.
 - 
tinyintroundtrip-1causes overflow error (SQLSTATE 22003) - 
timeroundtrip causes error: "unsupported type (typeid: -154)"- TODO: allow connection to specify blacklisted types; or fetch as string instead?
 
 - 
timestamptest causes error: "Explicit conversion from data type datatime2 to timestamp is not allowed. (SQLSTATE: 22018)" 
No parameter types (unknown)
Fetching NUMERIC/DECIMAL fields works using SQL_ARD_TYPE