Home
%3CLINGO-SUB%20id%3D%22lingo-sub-782546%22%20slang%3D%22en-US%22%3EODBC%20Driver%2017.4%20for%20SQL%20Server%20Released%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-782546%22%20slang%3D%22en-US%22%3E%3CP%3EVersion%2017.4%20of%20the%20%3CA%20href%3D%22https%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3Flinkid%3D867666%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EMicrosoft%20ODBC%20Driver%2017%20for%20SQL%20Server%3C%2FA%3E%26nbsp%3Bhas%20been%20released.%20Version%2017.4%20brings%20several%20added%20features%20and%20fixed%20issues.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CH3%20id%3D%22toc-hId-1598727590%22%20id%3D%22toc-hId-1598727590%22%20id%3D%22toc-hId-1598727590%22%20id%3D%22toc-hId-1598727590%22%20id%3D%22toc-hId-1598727590%22%20id%3D%22toc-hId-1598727590%22%20id%3D%22toc-hId-1598727590%22%20id%3D%22toc-hId-1598727590%22%20id%3D%22toc-hId-1598727590%22%20id%3D%22toc-hId-1598727590%22%20id%3D%22toc-hId-1598727590%22%20id%3D%22toc-hId-1598727590%22%20id%3D%22toc-hId-1598727590%22%20id%3D%22toc-hId-1598727590%22%20id%3D%22toc-hId-1598727590%22%3EAdded%3C%2FH3%3E%3CUL%3E%3CLI%3ESupport%20for%20Always%20Encrypted%20with%20Secure%20Enclaves%3C%2FLI%3E%3CLI%3ESupport%20for%20dynamic%20loading%20of%20OpenSSL%20(on%20Linux%2FmacOS)%3C%2FLI%3E%3CLI%3ESupport%20for%20insertion%20of%20UTF-8%20data%20against%20SQL%20Server%202019%3C%2FLI%3E%3CLI%3ESupport%20for%20configuring%20TCP%20Keep%20Alive%20settings%3C%2FLI%3E%3CLI%3ESupport%20for%20Debian%2010%3C%2FLI%3E%3CLI%3ESupport%20for%20RedHat%208%3C%2FLI%3E%3CLI%3ESupport%20for%20Ubuntu%2019.04%3C%2FLI%3E%3CLI%3ESupport%20for%20connecting%20to%20named%20instances%20on%20Linux%20and%20macOS%3C%2FLI%3E%3C%2FUL%3E%3CH3%20id%3D%22toc-hId--953429371%22%20id%3D%22toc-hId--953429371%22%20id%3D%22toc-hId--953429371%22%20id%3D%22toc-hId--953429371%22%20id%3D%22toc-hId--953429371%22%20id%3D%22toc-hId--953429371%22%20id%3D%22toc-hId--953429371%22%20id%3D%22toc-hId--953429371%22%20id%3D%22toc-hId--953429371%22%20id%3D%22toc-hId--953429371%22%20id%3D%22toc-hId--953429371%22%20id%3D%22toc-hId--953429371%22%20id%3D%22toc-hId--953429371%22%20id%3D%22toc-hId--953429371%22%20id%3D%22toc-hId--953429371%22%3EFixed%3C%2FH3%3E%3CUL%3E%3CLI%3EIntermittent%20hang%20when%20Multiple%20Active%20Results%20Sets%20(MARS)%20is%20enabled%3C%2FLI%3E%3CLI%3EConnection%20resiliency%20hang%20when%20async%20notification%20is%20enabled%3C%2FLI%3E%3CLI%3ECrash%20when%20retrieving%20diagnostic%20records%20for%20multithreaded%20connection%20attempts%3C%2FLI%3E%3CLI%3E'Encryption%20not%20supported'%20upon%20reconnect%20after%20calling%20SQLGetInfo()%20with%20SQL_USER_NAME%20and%20SQL_DATA_SOURCE_READ_ONLY%3C%2FLI%3E%3CLI%3ECOM%20initialization%20error%20during%20Azure%20Active%20Directory%20Interactive%20Authentication%3C%2FLI%3E%3CLI%3ESQLGetData()%20for%20multi-byte%20UTF-8%20data%3C%2FLI%3E%3CLI%3ERetrieving%20length%20of%20sql_variant%20columns%20using%20SQLGetData()%3C%2FLI%3E%3CLI%3EImporting%20of%20sql_variant%20columns%20containing%20more%20than%207992%20bytes%20using%20bcp%3C%2FLI%3E%3CLI%3ESending%20of%20correct%20encoding%20to%20server%20for%20narrow%20character%20data%3C%2FLI%3E%3C%2FUL%3E%3CH3%20id%3D%22toc-hId-789380964%22%20id%3D%22toc-hId-789380964%22%20id%3D%22toc-hId-789380964%22%20id%3D%22toc-hId-789380964%22%20id%3D%22toc-hId-789380964%22%20id%3D%22toc-hId-789380964%22%20id%3D%22toc-hId-789380964%22%20id%3D%22toc-hId-789380964%22%20id%3D%22toc-hId-789380964%22%20id%3D%22toc-hId-789380964%22%20id%3D%22toc-hId-789380964%22%20id%3D%22toc-hId-789380964%22%20id%3D%22toc-hId-789380964%22%20id%3D%22toc-hId-789380964%22%20id%3D%22toc-hId-789380964%22%3ENext%20steps%3C%2FH3%3E%3CP%3EFor%20Windows%20installations%2C%20you%20can%20download%20version%2017.4%20of%20the%20Microsoft%20ODBC%20Driver%2017%20for%20SQL%20Server%20from%20the%20%3CA%20href%3D%22https%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3Flinkid%3D867666%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EMicrosoft%20Download%20Center%3C%2FA%3E.%3CBR%20%2F%3E%3CBR%20%2F%3ELinux%20and%20macOS%20packages%20are%20also%20being%20made%20available.%20For%20installation%20details%20see%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsql%2Fconnect%2Fodbc%2Flinux-mac%2Finstalling-the-microsoft-odbc-driver-for-sql-server%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eonline%20instructions%3C%2FA%3E.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CH3%20id%3D%22toc-hId--1762775997%22%20id%3D%22toc-hId--1762775997%22%20id%3D%22toc-hId--1762775997%22%20id%3D%22toc-hId--1762775997%22%20id%3D%22toc-hId--1762775997%22%20id%3D%22toc-hId--1762775997%22%20id%3D%22toc-hId--1762775997%22%20id%3D%22toc-hId--1762775997%22%20id%3D%22toc-hId--1762775997%22%20id%3D%22toc-hId--1762775997%22%20id%3D%22toc-hId--1762775997%22%20id%3D%22toc-hId--1762775997%22%20id%3D%22toc-hId--1762775997%22%20id%3D%22toc-hId--1762775997%22%20id%3D%22toc-hId--1762775997%22%3ERoadmap%3C%2FH3%3E%3CP%3EWe%20are%20committed%20to%20improving%20quality%20and%20bringing%20more%20feature%20support%20for%20connecting%20to%20%3CA%20href%3D%22http%3A%2F%2Ftwitter.com%2Fsqlserver%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3ESQL%20Server%3C%2FA%3E%3CA%20href%3D%22http%3A%2F%2Ftwitter.com%2FAzureSQLDB%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20SQL%20Database%3C%2FA%3E%3CA%20href%3D%22http%3A%2F%2Ftwitter.com%2FAzureSQLDW%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20SQL%20DW%3C%2FA%3E%2C%20and%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fsql-database%2Fsql-database-managed-instance%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20SQL%20Managed%20Instance%3C%2FA%3Ethrough%20regular%20driver%20releases.%20We%20invite%20you%20to%20explore%20the%20latest%20the%20Microsoft%20Data%20Platform%20has%20to%20offer%20via%20a%20trial%20of%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fservices%2Fsql-database%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EMicrosoft%20Azure%20SQL%20Database%3C%2FA%3Eor%20by%20evaluating%20%3CA%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fevalcenter%2Fevaluate-sql-server%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EMicrosoft%20SQL%20Server%3C%2FA%3E.%3CBR%20%2F%3E%3CBR%20%2F%3EDavid%20Engel%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-782546%22%20slang%3D%22en-US%22%3E%3CP%3EODBC%20Driver%2017.4%20for%20SQL%20Server%20is%20released%20today%2C%20adding%20enclave%20support%20for%20Always%20Encrypted%20in%20SQL%20Server%202019%20among%20other%20improvements.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-782546%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESQLServerDrivers%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-784901%22%20slang%3D%22en-US%22%3ERe%3A%20ODBC%20Driver%2017.4%20for%20SQL%20Server%20Released%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-784901%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20may%20or%20may%20not%20be%20expected%2C%20but%20I%20saw%20it%20on%20two%20unrelated%20systems%20(Win10%2C%20Server%202016)%2C%20so%20it%20couldn't%20have%20been%20a%20fluke.%20I%20chose%20the%20upgrade%20method%2C%20over%20a%20v17%20from%202018.%20It%20completed%20fine.%20However%2C%20the%20system%20DSN%20I%20had%20no%20longer%20worked.%20Furthermore%2C%20when%20I%20went%20to%20create%20a%20new%20one%20(with%20odbcad32.exe)%2C%20the%20UI%20to%20do%20so%20after%20clicking%20System%2FAdd%2Fdriver%20never%20actually%20appeared.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EClearly%2C%20something%20was%20wrong.%20So%20I%20ran%20the%20installer%20again%2C%20this%20time%20choosing%20repair.%20In%20both%20installations%2C%20that%20worked.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-784927%22%20slang%3D%22en-US%22%3ERe%3A%20ODBC%20Driver%2017.4%20for%20SQL%20Server%20Released%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-784927%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F314%22%20target%3D%22_blank%22%3E%40Brian%20.%3C%2FA%3E%26nbsp%3BDo%20you%20happen%20to%20know%20which%2017.x%20version%20you%20upgraded%20from%3F%20I%20recall%20there%20was%20an%20issue%20with%20one%20of%20the%20first%2017.x%20releases%20that%20basically%20required%20an%20uninstall%2Freinstall%20to%20fix%20the%20upgrade%20for%20any%20subsequent%2017.x%20install.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-785863%22%20slang%3D%22en-US%22%3ERe%3A%20ODBC%20Driver%2017.4%20for%20SQL%20Server%20Released%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-785863%22%20slang%3D%22en-US%22%3E%3CP%3Ev17.0.1.1%20(installed%20Feb%2011%2C%202018)%2C%20which%20probably%20explains%20it%20then.%20That%20may%20not%20have%20been%20the%20very%20first%20v17%2C%20but%20it%20was%20close.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-797137%22%20slang%3D%22en-US%22%3ERe%3A%20ODBC%20Driver%2017.4%20for%20SQL%20Server%20Released%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-797137%22%20slang%3D%22en-US%22%3EI%20have%20updated%20my%20mssql%20and%20all%20tools%20yesterday%20and%20it%20stopped%20working.%20Server%20itself%20seems%20to%20be%20fine%20but%20I'm%20not%20able%20to%20connect%20locally%20or%20remotely.%20sqlcmd%20-S%20localhost%20returns%20this%3A%20hyperqbe%40slaro%3A%2Fetc%24%20sqlcmd%20-S%20localhost%20Sqlcmd%3A%20Error%3A%20Microsoft%20ODBC%20Driver%2017%20for%20SQL%20Server%20%3A%20Login%20timeout%20expired.%20Sqlcmd%3A%20Error%3A%20Microsoft%20ODBC%20Driver%2017%20for%20SQL%20Server%20%3A%20TCP%20Provider%3A%20Error%20code%200x2749.%20Sqlcmd%3A%20Error%3A%20Microsoft%20ODBC%20Driver%2017%20for%20SQL%20Server%20%3A%20A%20network-related%20or%20instance-specific%20error%20has%20occurred%20while%20establishing%20a%20connection%20to%20SQL%20Server.%20Server%20is%20not%20found%20or%20not%20accessible.%20Check%20if%20instance%20name%20is%20correct%20and%20if%20SQL%20Server%20is%20configured%20to%20allow%20remote%20connections.%20For%20more%20information%20see%20SQL%20Server%20Books%20Online..%20When%20I%20use%20IP%20the%20error%20is%20slightly%20different%3A%20hyperqbe%40slaro%3A%2Fetc%24%20sqlcmd%20-S%20192.168.1.141%20Sqlcmd%3A%20Error%3A%20Microsoft%20ODBC%20Driver%2017%20for%20SQL%20Server%20%3A%20TCP%20Provider%3A%20Error%20code%200x2746.%20Sqlcmd%3A%20Error%3A%20Microsoft%20ODBC%20Driver%2017%20for%20SQL%20Server%20%3A%20Client%20unable%20to%20establish%20connection.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-797929%22%20slang%3D%22en-US%22%3ERe%3A%20ODBC%20Driver%2017.4%20for%20SQL%20Server%20Released%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-797929%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F389749%22%20target%3D%22_blank%22%3E%40hyperqbe%3C%2FA%3E%26nbsp%3BCould%20that%20be%20the%20same%20thing%20that%20I%20found%3F%26nbsp%3B%20Run%20the%20installer%20again%20and%20choose%20%22repair%22%20and%20re-test.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-798013%22%20slang%3D%22en-US%22%3ERe%3A%20ODBC%20Driver%2017.4%20for%20SQL%20Server%20Released%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-798013%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F314%22%20target%3D%22_blank%22%3E%40Brian%20.%3C%2FA%3E%26nbsp%3BHe's%20on%20Linux%2C%20so%20he's%20using%20the%20Linux%20packages.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F389749%22%20target%3D%22_blank%22%3E%40hyperqbe%3C%2FA%3E%26nbsp%3BIt%20doesn't%20really%20sounds%20like%20a%20driver%20issue.%20Are%20you%20sure%20connectivity%20to%20the%20server%20is%20fine%3F%20Can%20you%20test%20from%20another%20server%3F%20Try%20reverting%20to%20the%20previous%20version%20of%20the%20driver%20and%20tools%20to%20see%20if%20you%20still%20get%20the%20error%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-798527%22%20slang%3D%22en-US%22%3ERe%3A%20ODBC%20Driver%2017.4%20for%20SQL%20Server%20Released%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-798527%22%20slang%3D%22en-US%22%3EI%20reinstalled%20the%20sql-server%20completely%20and%20removed%20the%20old%20%2Fvar%2Fopt%2Fmssql%2Fdata.%20I'm%20still%20getting%20the%20errors%3A%20Sqlcmd%3A%20Error%3A%20Microsoft%20ODBC%20Driver%2017%20for%20SQL%20Server%20%3A%20TCP%20Provider%3A%20Error%20code%200x2746.%20Sqlcmd%3A%20Error%3A%20Microsoft%20ODBC%20Driver%2017%20for%20SQL%20Server%20%3A%20Client%20unable%20to%20establish%20connection.%20I%20have%20below%20packages%20with%20%22odbc%22%20in%20name.%20I'm%20wondering%20if%20any%20of%20those%20could%20be%20causing%20conflicts.%20hyperqbe%40slaro%3A~%24%20apt%20list%20--installed%7Cgrep%20odbc%20erlang-odbc%2Fbionic%2Cnow%201%3A20.2.2%2Bdfsg-1ubuntu2%20amd64%20%5Bzainstalowany%2Cautomatycznie%5D%20libodbc1%2Fxenial%2Cnow%202.3.7%20amd64%20%5Bzainstalowany%2Cautomatycznie%5D%20msodbcsql17%2Fxenial%2Cnow%2017.4.1.1-1%20amd64%20%5Bzainstalowany%2Cautomatycznie%5D%20odbcinst%2Fxenial%2Cnow%202.3.7%20amd64%20%5Bzainstalowany%2Cautomatycznie%5D%20odbcinst1debian2%2Fxenial%2Cnow%202.3.7%20amd64%20%5Bzainstalowany%2Cautomatycznie%5D%20unixodbc%2Fxenial%2Cnow%202.3.7%20amd64%20%5Bzainstalowany%2Cautomatycznie%5D%20unixodbc-dev%2Fxenial%2Cnow%202.3.7%20amd64%20%5Bzainstalowany%5D%20%2Fetc%2Fobdcinst.ini%20has%20one%20entry%3A%20hyperqbe%40slaro%3A~%24%20cat%20%2Fetc%2Fodbcinst.ini%20%5BODBC%20Driver%2017%20for%20SQL%20Server%5D%20Description%3DMicrosoft%20ODBC%20Driver%2017%20for%20SQL%20Server%20Driver%3D%2Fopt%2Fmicrosoft%2Fmsodbcsql17%2Flib64%2Flibmsodbcsql-17.4.so.1.1%20UsageCount%3D1%20I%20don't%20have%20%2Fetc%2Fodbc.ini%20or%20~%2F.odbc.ini%20files.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-798528%22%20slang%3D%22en-US%22%3ERe%3A%20ODBC%20Driver%2017.4%20for%20SQL%20Server%20Released%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-798528%22%20slang%3D%22en-US%22%3EI've%20added%20~%2F.odbc.ini%20and%20%2Fetc%2Fodbc.ini%20files.%20Still%20unable%20to%20connent.%20Tried%20with%20%22bcp%20master.INFORMATION_SCHEMA.TABLES%20out%20OutFile.dat%20-S%22%20but%20result%20was%20SQLState%20%3D%2008001%2C%20NativeError%20%3D%2010054%20Error%20%3D%20%5BMicrosoft%5D%5BODBC%20Driver%2017%20for%20SQL%20Server%5DTCP%20Provider%3A%20Error%20code%200x2746%20SQLState%20%3D%2008001%2C%20NativeError%20%3D%2010054%20Error%20%3D%20%5BMicrosoft%5D%5BODBC%20Driver%2017%20for%20SQL%20Server%5DClient%20unable%20to%20establish%20connection%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-798531%22%20slang%3D%22en-US%22%3ERe%3A%20ODBC%20Driver%2017.4%20for%20SQL%20Server%20Released%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-798531%22%20slang%3D%22en-US%22%3EI%20enabled%20tracing%20and%20got%20this%20at%20the%20very%20bottom%20of%20trace%20file%3A%20%5BODBC%5D%5B25090%5D%5B1565445958.576898%5D%5BSQLGetConnectAttrW.c%5D%5B211%5DError%3A%20SQL_INVALID_HANDLE%20Additionally%20I%20know%20it%20detects%20the%20server%20itself%20because%20there's%20this%20entry%20somewhere%20in%20the%20middle%3A%20%5BODBC%5D%5B25090%5D%5B1565445958.570105%5D%5BSQLDriverConnectW.c%5D%5B290%5D%20Entry%3A%20Connection%20%3D%200x2616080%20Window%20Hdl%20%3D%20(nil)%20Str%20In%20%3D%20%5BDRIVER%3D%7BODBC%20Driver%2017%20for%20SQL%20Server%7D%3BSERVER%3D%7Bslaro%7D%3BTrusted_Connection%3D%7BYES%7D%3BWSID%3D%7Bslaro%7D%3BAPP%3D%7BSQLCMD%7D%3B%5D%5Blength%20%3D%20105%20(SQL_NTS)%5D%20Str%20Out%20%3D%20(nil)%20Str%20Out%20Max%20%3D%200%20Str%20Out%20Ptr%20%3D%20(nil)%20Completion%20%3D%200%20UNICODE%20Using%20encoding%20ASCII%20'ANSI_X3.4-1968'%20and%20UNICODE%20'UTF-16LE'%20I'm%20not%20sure%20if%20ASCII%20'ANSI_X3.4-1968'%20is%20not%20causing%20the%20problem.%20It%20was%20mentioned%20in%20documentation%20that%20this%20should%20say%20%22UTF-8%22.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-879031%22%20slang%3D%22en-US%22%3ERe%3A%20ODBC%20Driver%2017.4%20for%20SQL%20Server%20Released%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-879031%22%20slang%3D%22en-US%22%3E%3CP%3EAfter%20adding%20to%20my%20Ubuntu%2018.04%20system%20Microsoft's%20repository%3C%2FP%3E%3CPRE%3Edeb%20%5Barch%3Damd64%5D%20https%3A%2F%2Fpackages.microsoft.com%2Fubuntu%2F18.04%2Fprod%20bionic%20main%3C%2FPRE%3E%3CP%3Ein%20%2Fetc%2Fapt%2Fsources.list.d%2Fmssql-release.list%2C%20I%20now%20get%20%3CSTRONG%3Etwo%3C%2FSTRONG%3E%20versions%20of%20the%20unixodbc%20package%20offered%3A%3C%2FP%3E%3CPRE%3E%24%20apt-cache%20showpkg%20unixodbc%0APackage%3A%20unixodbc%0AVersions%3A%20%0A2.3.7%20(%2Fvar%2Flib%2Fapt%2Flists%2Fpackages.microsoft.com_ubuntu_18.04_prod_dists_bionic_main_binary-amd64_Packages)%20(%2Fvar%2Flib%2Fdpkg%2Fstatus)%0A%5B...%5D%0A2.3.4-1.1ubuntu3%20(%2Fvar%2Flib%2Fapt%2Flists%2Fwww-uxsup.csx.cam.ac.uk_pub_linux_ubuntu_dists_bionic_universe_binary-amd64_Packages)%0A%5B...%5D%0ADependencies%3A%20%0A2.3.7%20-%20libc6%20(2%202.14)%20odbcinst1debian2%20(2%202.3.7)%20libodbc1%20(2%202.3.7)%20unixodbc-bin%20(3%202.3.7)%20unixodbc-bin%3Ai386%20(3%202.3.7)%20unixodbc%3Ai386%20(32%20(null))%20%0A2.3.4-1.1ubuntu3%20-%20libc6%20(2%202.14)%20libodbc1%20(2%202.3.1)%20libreadline7%20(2%206.0)%20odbcinst1debian2%20(2%202.3.1)%20unixodbc-bin%20(3%202.2.4-1)%20unixodbc-bin%3Ai386%20(3%202.2.4-1)%20unixodbc%3Ai386%20(32%20(null))%20%0A%5B...%5D%3C%2FPRE%3E%3CP%3ESo%20it%20seems%20both%20Microsoft%20and%20Ubuntu%20provide%20versions%20of%20the%20unixodbc%20package%2C%20which%20contains%20the%20isql%20tool.%20And%20the%20system%20install%20Microsoft's%20unixodbc%20by%20default%20(because%20of%20the%20higher%20version%20number%3F).%3C%2FP%3E%3CP%3EBut%20the%20two%20are%20not%20equivalent%3A%3C%2FP%3E%3CP%3EAs%20you%20can%20see%20from%20the%20above%20dependencies%2C%20Ubuntu's%20unixodbc-2.3.4-1ubuntu3%20has%20been%20linked%20against%20the%20libreadline7%20library%2C%20such%20that%20the%20isql%20tool%20uses%20the%20readline%20command-line%20editor%20and%20therefore%20can%20deal%20with%20cursor%20movements%2C%20which%20is%20extremely%20convenien.%3C%2FP%3E%3CP%3EUnfortunately%2C%20Microsoft's%20unixodbc-2.3.4%20was%20%3CSTRONG%3Enot%3C%2FSTRONG%3E%20linked%20with%20libreadline7%2C%20and%20therefore%20sadly%20does%20not%20support%20any%20cursor%20keys%20in%20its%20built-in%20command%20prompt%20(e.g.%2C%20for%20inline%20editing%20or%20to%20access%20previous%20command%20history).%3C%2FP%3E%3CP%3EWhy%20does%20Microsoft%20have%20to%20provide%20an%20alternate%20version%20of%20unixodbc%20(isql)%20under%20the%20same%20package%20name%3F%3C%2FP%3E%3CP%3EIf%20you%20must%20provide%20your%20own%20version%20of%20unixodbc%20(isql)%20for%20some%20reason%2C%20could%20you%20please%20also%20compile%20it%20with%20readline%20support%20included%2C%20like%20the%20Ubuntu%20version%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-879600%22%20slang%3D%22en-US%22%3ERe%3A%20ODBC%20Driver%2017.4%20for%20SQL%20Server%20Released%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-879600%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F416281%22%20target%3D%22_blank%22%3E%40mgkuhn%3C%2FA%3E%26nbsp%3BMicrosoft%20provides%20unixodbc%20because%20version%202.3.7%20includes%20many%20bug%20fixes%20that%20we%20have%20contributed%20fixes%20for%20which%20affect%20a%20lot%20customers%20(see%20the%20long%20list%20of%20bug%20fixes%20at%20%3CA%20href%3D%22http%3A%2F%2Fwww.unixodbc.org%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eunixodbc.org%3C%2FA%3E).%20The%20alternative%20is%20to%20tell%20customers%20to%20compile%20unixodbc%20manually%20or%20wait%20until%20Ubuntu%2FRed%20Hat%2FSuse%2FDebian%20provide%20an%20update%20(note%3A%202.3.4%20is%20from%202015!).%20I'll%20forward%20your%20request%20regarding%26nbsp%3B%3CSPAN%3Elibreadline7%20on%20to%20the%20ODBC%20driver%20team%20to%20see%20if%20we%20can%20incorporate%20it%20into%20future%20releases.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-879712%22%20slang%3D%22en-US%22%3ERe%3A%20ODBC%20Driver%2017.4%20for%20SQL%20Server%20Released%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-879712%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F416281%22%20target%3D%22_blank%22%3E%40mgkuhn%3C%2FA%3E%26nbsp%3BTo%20add%20to%20that%2C%20we%20built%20the%20unixodbc%20package%20with%20the%20default%2C%20minimal%20options%20to%20be%20as%20compatible%20as%20possible%20across%20distributions%20and%20avoid%20unnecessary%20dependencies.%20You%20have%20some%20options.%20You%20can%20install%20unixodbc%202.3.4%20first%20and%20then%20install%20the%20driver%20and%20they%20will%20work%20together.%20I%20would%20also%20suggest%20installing%20mssql-tools%20and%20using%20sqlcmd.%20Sqlcmd%20has%20more%20functionality%20than%20isql%20and%20the%20cursor%20keys%20work%20there.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Senior Member

Version 17.4 of the Microsoft ODBC Driver 17 for SQL Server has been released. Version 17.4 brings several added features and fixed issues.

 

Added

  • Support for Always Encrypted with Secure Enclaves
  • Support for dynamic loading of OpenSSL (on Linux/macOS)
  • Support for insertion of UTF-8 data against SQL Server 2019
  • Support for configuring TCP Keep Alive settings
  • Support for Debian 10
  • Support for RedHat 8
  • Support for Ubuntu 19.04
  • Support for connecting to named instances on Linux and macOS

Fixed

  • Intermittent hang when Multiple Active Results Sets (MARS) is enabled
  • Connection resiliency hang when async notification is enabled
  • Crash when retrieving diagnostic records for multithreaded connection attempts
  • 'Encryption not supported' upon reconnect after calling SQLGetInfo() with SQL_USER_NAME and SQL_DATA_SOURCE_READ_ONLY
  • COM initialization error during Azure Active Directory Interactive Authentication
  • SQLGetData() for multi-byte UTF-8 data
  • Retrieving length of sql_variant columns using SQLGetData()
  • Importing of sql_variant columns containing more than 7992 bytes using bcp
  • Sending of correct encoding to server for narrow character data

Next steps

For Windows installations, you can download version 17.4 of the Microsoft ODBC Driver 17 for SQL Server from the Microsoft Download Center.

Linux and macOS packages are also being made available. For installation details see the online instructions.

 

Roadmap

We are committed to improving quality and bringing more feature support for connecting to SQL Server Azure SQL Database Azure SQL DW, and Azure SQL Managed Instance through regular driver releases. We invite you to explore the latest the Microsoft Data Platform has to offer via a trial of Microsoft Azure SQL Database or by evaluating Microsoft SQL Server.

David Engel

12 Comments
Contributor

This may or may not be expected, but I saw it on two unrelated systems (Win10, Server 2016), so it couldn't have been a fluke. I chose the upgrade method, over a v17 from 2018. It completed fine. However, the system DSN I had no longer worked. Furthermore, when I went to create a new one (with odbcad32.exe), the UI to do so after clicking System/Add/driver never actually appeared.

 

Clearly, something was wrong. So I ran the installer again, this time choosing repair. In both installations, that worked.

Senior Member

@Brian . Do you happen to know which 17.x version you upgraded from? I recall there was an issue with one of the first 17.x releases that basically required an uninstall/reinstall to fix the upgrade for any subsequent 17.x install.

Contributor

v17.0.1.1 (installed Feb 11, 2018), which probably explains it then. That may not have been the very first v17, but it was close.

Visitor
I have updated my mssql and all tools yesterday and it stopped working. Server itself seems to be fine but I'm not able to connect locally or remotely. sqlcmd -S localhost returns this: hyperqbe@slaro:/etc$ sqlcmd -S localhost Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Login timeout expired. Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : TCP Provider: Error code 0x2749. Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.. When I use IP the error is slightly different: hyperqbe@slaro:/etc$ sqlcmd -S 192.168.1.141 Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : TCP Provider: Error code 0x2746. Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Client unable to establish connection.
Contributor

@hyperqbe Could that be the same thing that I found?  Run the installer again and choose "repair" and re-test.

Senior Member

@Brian . He's on Linux, so he's using the Linux packages.

 

@hyperqbe It doesn't really sounds like a driver issue. Are you sure connectivity to the server is fine? Can you test from another server? Try reverting to the previous version of the driver and tools to see if you still get the error?

Visitor
I reinstalled the sql-server completely and removed the old /var/opt/mssql/data. I'm still getting the errors: Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : TCP Provider: Error code 0x2746. Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Client unable to establish connection. I have below packages with "odbc" in name. I'm wondering if any of those could be causing conflicts. hyperqbe@slaro:~$ apt list --installed|grep odbc erlang-odbc/bionic,now 1:20.2.2+dfsg-1ubuntu2 amd64 [zainstalowany,automatycznie] libodbc1/xenial,now 2.3.7 amd64 [zainstalowany,automatycznie] msodbcsql17/xenial,now 17.4.1.1-1 amd64 [zainstalowany,automatycznie] odbcinst/xenial,now 2.3.7 amd64 [zainstalowany,automatycznie] odbcinst1debian2/xenial,now 2.3.7 amd64 [zainstalowany,automatycznie] unixodbc/xenial,now 2.3.7 amd64 [zainstalowany,automatycznie] unixodbc-dev/xenial,now 2.3.7 amd64 [zainstalowany] /etc/obdcinst.ini has one entry: hyperqbe@slaro:~$ cat /etc/odbcinst.ini [ODBC Driver 17 for SQL Server] Description=Microsoft ODBC Driver 17 for SQL Server Driver=/opt/microsoft/msodbcsql17/lib64/libmsodbcsql-17.4.so.1.1 UsageCount=1 I don't have /etc/odbc.ini or ~/.odbc.ini files.
Visitor
I've added ~/.odbc.ini and /etc/odbc.ini files. Still unable to connent. Tried with "bcp master.INFORMATION_SCHEMA.TABLES out OutFile.dat -S" but result was SQLState = 08001, NativeError = 10054 Error = [Microsoft][ODBC Driver 17 for SQL Server]TCP Provider: Error code 0x2746 SQLState = 08001, NativeError = 10054 Error = [Microsoft][ODBC Driver 17 for SQL Server]Client unable to establish connection
Visitor
I enabled tracing and got this at the very bottom of trace file: [ODBC][25090][1565445958.576898][SQLGetConnectAttrW.c][211]Error: SQL_INVALID_HANDLE Additionally I know it detects the server itself because there's this entry somewhere in the middle: [ODBC][25090][1565445958.570105][SQLDriverConnectW.c][290] Entry: Connection = 0x2616080 Window Hdl = (nil) Str In = [DRIVER={ODBC Driver 17 for SQL Server};SERVER={slaro};Trusted_Connection={YES};WSID={slaro};APP={SQLCMD};][length = 105 (SQL_NTS)] Str Out = (nil) Str Out Max = 0 Str Out Ptr = (nil) Completion = 0 UNICODE Using encoding ASCII 'ANSI_X3.4-1968' and UNICODE 'UTF-16LE' I'm not sure if ASCII 'ANSI_X3.4-1968' is not causing the problem. It was mentioned in documentation that this should say "UTF-8".
Occasional Visitor

After adding to my Ubuntu 18.04 system Microsoft's repository

deb [arch=amd64] https://packages.microsoft.com/ubuntu/18.04/prod bionic main

in /etc/apt/sources.list.d/mssql-release.list, I now get two versions of the unixodbc package offered:

$ apt-cache showpkg unixodbc
Package: unixodbc
Versions: 
2.3.7 (/var/lib/apt/lists/packages.microsoft.com_ubuntu_18.04_prod_dists_bionic_main_binary-amd64_Packages) (/var/lib/dpkg/status)
[...]
2.3.4-1.1ubuntu3 (/var/lib/apt/lists/www-uxsup.csx.cam.ac.uk_pub_linux_ubuntu_dists_bionic_universe_binary-amd64_Packages)
[...]
Dependencies: 
2.3.7 - libc6 (2 2.14) odbcinst1debian2 (2 2.3.7) libodbc1 (2 2.3.7) unixodbc-bin (3 2.3.7) unixodbc-bin:i386 (3 2.3.7) unixodbc:i386 (32 (null)) 
2.3.4-1.1ubuntu3 - libc6 (2 2.14) libodbc1 (2 2.3.1) libreadline7 (2 6.0) odbcinst1debian2 (2 2.3.1) unixodbc-bin (3 2.2.4-1) unixodbc-bin:i386 (3 2.2.4-1) unixodbc:i386 (32 (null)) 
[...]

So it seems both Microsoft and Ubuntu provide versions of the unixodbc package, which contains the isql tool. And the system install Microsoft's unixodbc by default (because of the higher version number?).

But the two are not equivalent:

As you can see from the above dependencies, Ubuntu's unixodbc-2.3.4-1ubuntu3 has been linked against the libreadline7 library, such that the isql tool uses the readline command-line editor and therefore can deal with cursor movements, which is extremely convenien.

Unfortunately, Microsoft's unixodbc-2.3.4 was not linked with libreadline7, and therefore sadly does not support any cursor keys in its built-in command prompt (e.g., for inline editing or to access previous command history).

Why does Microsoft have to provide an alternate version of unixodbc (isql) under the same package name?

If you must provide your own version of unixodbc (isql) for some reason, could you please also compile it with readline support included, like the Ubuntu version?

 

Senior Member

@mgkuhn Microsoft provides unixodbc because version 2.3.7 includes many bug fixes that we have contributed fixes for which affect a lot customers (see the long list of bug fixes at unixodbc.org). The alternative is to tell customers to compile unixodbc manually or wait until Ubuntu/Red Hat/Suse/Debian provide an update (note: 2.3.4 is from 2015!). I'll forward your request regarding libreadline7 on to the ODBC driver team to see if we can incorporate it into future releases.

Senior Member

@mgkuhn To add to that, we built the unixodbc package with the default, minimal options to be as compatible as possible across distributions and avoid unnecessary dependencies. You have some options. You can install unixodbc 2.3.4 first and then install the driver and they will work together. I would also suggest installing mssql-tools and using sqlcmd. Sqlcmd has more functionality than isql and the cursor keys work there.