Slow Windows 7 ODBC Connection to SQL Server 2005

  • I had a SQL Server 2005 Developer edition installed on a Windows 7 Pro computer. I set up an ODBC connection to the SQL Server but it was very slow. When I click the button "Test Data Source," it took 10 seconds to show the result "TESTS COMPLETED SUCCESSFULLY."

    The ODBC Driver is "Microsoft SQL Server ODBC Driver Version 06.01.7600".

    I tried ODBC Connection from a Vista computer before and got the same problem. The only OS where ODBC gets instant connection is Win XP and Win 2000. However, I did see someone else using Vista and his connection is instant.

    I wonder what configuration affect the speed. Since the server is now installed on my laptop, so there is no network issue.

    Anyone has the similar problem? Could anyone point a direction for me to investigate?

    Thanks in advance.

  • Open Registry Editor, and navigate to HKEY_LOCAL_MACHINE\SOFTWARE. Right-click on the ODBC key, choose Export, and attach the resulting output to your next post.

  • Thanks Paul.

    Below is the Export of ODBC key. The slow DSN is "test", which connects to the database Test4 of the local SQL Server.

    One symptom I found out is that, on first screen to create a DSN, there is a dropdownlist "which SQL Server do you want to connect to" for me to select. It takes very long time (about 20 seconds) to pull down this list.

    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC]

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI]

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources]

    "test"="SQL Server"

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\test]

    "Driver"="C:\\Windows\\system32\\SQLSRV32.dll"

    "Server"="(local)"

    "Database"="Test4"

    "LastUser"="seaport"

    "Trusted_Connection"="Yes"

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI]

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\Conversor de pagina de codigo MS]

    "Translator"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73, 00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4d,00,53,00,43,00,50,00, 58,00,4c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "Setup"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4d,00,53,00,43,00,50,00,58,00, 4c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "UsageCount"=dword:00000001

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\Driver da Microsoft para arquivos texto (*.txt; *.csv)]

    "UsageCount"=dword:00000001

    "Driver"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6f,00,64,00,62,00,63,00,6a,00, 74,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "Setup"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6f,00,64,00,74,00,65,00,78,00, 74,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "APILevel"="1"

    "ConnectFunctions"="YYN"

    "DriverODBCVer"="02.50"

    "FileUsage"="1"

    "FileExtns"="*.,*.asc,*.csv,*.tab,*.txt,*.csv"

    "SQLLevel"="0"

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\Driver do Microsoft Access (*.mdb)]

    "UsageCount"=dword:00000001

    "Driver"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6f,00,64,00,62,00,63,00,6a,00, 74,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "Setup"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6f,00,64,00,62,00,63,00,6a,00, 74,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "APILevel"="1"

    "ConnectFunctions"="YYN"

    "DriverODBCVer"="02.50"

    "FileUsage"="2"

    "FileExtns"="*.mdb"

    "SQLLevel"="0"

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\Driver do Microsoft dBase (*.dbf)]

    "UsageCount"=dword:00000001

    "Driver"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6f,00,64,00,62,00,63,00,6a,00, 74,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "Setup"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6f,00,64,00,64,00,62,00,73,00, 65,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "APILevel"="1"

    "ConnectFunctions"="YYN"

    "DriverODBCVer"="02.50"

    "FileUsage"="1"

    "FileExtns"="*.dbf,*.ndx,*.mdx"

    "SQLLevel"="0"

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\Driver do Microsoft Excel(*.xls)]

    "UsageCount"=dword:00000001

    "Driver"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6f,00,64,00,62,00,63,00,6a,00, 74,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "Setup"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6f,00,64,00,65,00,78,00,6c,00, 33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "APILevel"="1"

    "ConnectFunctions"="YYN"

    "DriverODBCVer"="02.50"

    "FileUsage"="1"

    "FileExtns"="*.xls"

    "SQLLevel"="0"

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\Driver do Microsoft Paradox (*.db )]

    "UsageCount"=dword:00000001

    "Driver"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6f,00,64,00,62,00,63,00,6a,00, 74,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "Setup"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6f,00,64,00,70,00,64,00,78,00, 33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "APILevel"="1"

    "ConnectFunctions"="YYN"

    "DriverODBCVer"="02.50"

    "FileUsage"="1"

    "FileExtns"="*.db"

    "SQLLevel"="0"

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\Driver para o Microsoft Visual FoxPro]

    "UsageCount"=dword:00000001

    "Driver"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,76,00,66,00,70,00,6f,00,64,00, 62,00,63,00,2e,00,64,00,6c,00,6c,00,00,00

    "Setup"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,76,00,66,00,70,00,6f,00,64,00, 62,00,63,00,2e,00,64,00,6c,00,6c,00,00,00

    "APILevel"="0"

    "ConnectFunctions"="YYN"

    "DriverODBCVer"="02.50"

    "FileUsage"="1"

    "FileExtns"="*.dbf,*.cdx,*.idx,*.fpt"

    "SQLLevel"="0"

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\Microsoft Access dBASE Driver (*.dbf, *.ndx, *.mdx)]

    "UsageCount"=dword:00000003

    "Driver"="C:\\PROGRA~1\\COMMON~1\\MICROS~1\\OFFICE12\\ACEODBC.DLL"

    "Setup"="C:\\PROGRA~1\\COMMON~1\\MICROS~1\\OFFICE12\\ACEODDBS.DLL"

    "APILevel"="1"

    "ConnectFunctions"="YYN"

    "DriverODBCVer"="02.50"

    "FileUsage"="2"

    "FileExtns"="*.dbf, *.ndx, *.mdx"

    "SQLLevel"="0"

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\Microsoft Access Driver (*.mdb)]

    "UsageCount"=dword:00000001

    "Driver"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6f,00,64,00,62,00,63,00,6a,00, 74,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "Setup"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6f,00,64,00,62,00,63,00,6a,00, 74,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "APILevel"="1"

    "ConnectFunctions"="YYN"

    "DriverODBCVer"="02.50"

    "FileUsage"="2"

    "FileExtns"="*.mdb"

    "SQLLevel"="0"

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\Microsoft Access Driver (*.mdb, *.accdb)]

    "UsageCount"=dword:00000003

    "Driver"="C:\\PROGRA~1\\COMMON~1\\MICROS~1\\OFFICE12\\ACEODBC.DLL"

    "Setup"="C:\\PROGRA~1\\COMMON~1\\MICROS~1\\OFFICE12\\ACEODBC.DLL"

    "APILevel"="1"

    "ConnectFunctions"="YYN"

    "DriverODBCVer"="02.50"

    "FileUsage"="2"

    "FileExtns"="*.mdb,*.accdb"

    "SQLLevel"="0"

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\Microsoft Access Paradox Driver (*.db)]

    "UsageCount"=dword:00000003

    "Driver"="C:\\PROGRA~1\\COMMON~1\\MICROS~1\\OFFICE12\\ACEODBC.DLL"

    "Setup"="C:\\PROGRA~1\\COMMON~1\\MICROS~1\\OFFICE12\\ACEODPDX.DLL"

    "APILevel"="1"

    "ConnectFunctions"="YYN"

    "DriverODBCVer"="02.50"

    "FileUsage"="2"

    "FileExtns"="*.mdb,*.accdb"

    "SQLLevel"="0"

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\Microsoft Access Text Driver (*.txt, *.csv)]

    "UsageCount"=dword:00000003

    "Driver"="C:\\PROGRA~1\\COMMON~1\\MICROS~1\\OFFICE12\\ACEODBC.DLL"

    "Setup"="C:\\PROGRA~1\\COMMON~1\\MICROS~1\\OFFICE12\\ACEODTXT.DLL"

    "APILevel"="1"

    "ConnectFunctions"="YYN"

    "DriverODBCVer"="02.50"

    "FileUsage"="2"

    "FileExtns"="*.txt, *.csv"

    "SQLLevel"="0"

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\Microsoft Access-Treiber (*.mdb)]

    "UsageCount"=dword:00000001

    "Driver"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6f,00,64,00,62,00,63,00,6a,00, 74,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "Setup"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6f,00,64,00,62,00,63,00,6a,00, 74,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "APILevel"="1"

    "ConnectFunctions"="YYN"

    "DriverODBCVer"="02.50"

    "FileUsage"="2"

    "FileExtns"="*.mdb"

    "SQLLevel"="0"

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\Microsoft dBase Driver (*.dbf)]

    "UsageCount"=dword:00000001

    "Driver"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6f,00,64,00,62,00,63,00,6a,00, 74,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "Setup"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6f,00,64,00,64,00,62,00,73,00, 65,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "APILevel"="1"

    "ConnectFunctions"="YYN"

    "DriverODBCVer"="02.50"

    "FileUsage"="1"

    "FileExtns"="*.dbf,*.ndx,*.mdx"

    "SQLLevel"="0"

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\Microsoft dBase VFP Driver (*.dbf)]

    "UsageCount"=dword:00000001

    "Driver"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,76,00,66,00,70,00,6f,00,64,00, 62,00,63,00,2e,00,64,00,6c,00,6c,00,00,00

    "Setup"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,76,00,66,00,70,00,6f,00,64,00, 62,00,63,00,2e,00,64,00,6c,00,6c,00,00,00

    "APILevel"="0"

    "ConnectFunctions"="YYN"

    "DriverODBCVer"="02.50"

    "FileUsage"="1"

    "FileExtns"="*.dbf,*.cdx,*.idx,*.fpt"

    "SQLLevel"="0"

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\Microsoft dBase-Treiber (*.dbf)]

    "UsageCount"=dword:00000001

    "Driver"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6f,00,64,00,62,00,63,00,6a,00, 74,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "Setup"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6f,00,64,00,64,00,62,00,73,00, 65,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "APILevel"="1"

    "ConnectFunctions"="YYN"

    "DriverODBCVer"="02.50"

    "FileUsage"="1"

    "FileExtns"="*.dbf,*.ndx,*.mdx"

    "SQLLevel"="0"

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\Microsoft Excel Driver (*.xls)]

    "UsageCount"=dword:00000001

    "Driver"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6f,00,64,00,62,00,63,00,6a,00, 74,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "Setup"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6f,00,64,00,65,00,78,00,6c,00, 33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "APILevel"="1"

    "ConnectFunctions"="YYN"

    "DriverODBCVer"="02.50"

    "FileUsage"="1"

    "FileExtns"="*.xls"

    "SQLLevel"="0"

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)]

    "UsageCount"=dword:00000003

    "Driver"="C:\\PROGRA~1\\COMMON~1\\MICROS~1\\OFFICE12\\ACEODBC.DLL"

    "Setup"="C:\\PROGRA~1\\COMMON~1\\MICROS~1\\OFFICE12\\ACEODEXL.DLL"

    "APILevel"="1"

    "ConnectFunctions"="YYN"

    "DriverODBCVer"="02.50"

    "FileUsage"="2"

    "FileExtns"="*.xls,*.xlsx, *.xlsb"

    "SQLLevel"="0"

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\Microsoft Excel-Treiber (*.xls)]

    "UsageCount"=dword:00000001

    "Driver"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6f,00,64,00,62,00,63,00,6a,00, 74,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "Setup"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6f,00,64,00,65,00,78,00,6c,00, 33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "APILevel"="1"

    "ConnectFunctions"="YYN"

    "DriverODBCVer"="02.50"

    "FileUsage"="1"

    "FileExtns"="*.xls"

    "SQLLevel"="0"

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\Microsoft FoxPro VFP Driver (*.dbf)]

    "UsageCount"=dword:00000001

    "Driver"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,76,00,66,00,70,00,6f,00,64,00, 62,00,63,00,2e,00,64,00,6c,00,6c,00,00,00

    "Setup"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,76,00,66,00,70,00,6f,00,64,00, 62,00,63,00,2e,00,64,00,6c,00,6c,00,00,00

    "APILevel"="0"

    "ConnectFunctions"="YYN"

    "DriverODBCVer"="02.50"

    "FileUsage"="1"

    "FileExtns"="*.dbf,*.cdx,*.idx,*.fpt"

    "SQLLevel"="0"

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\Microsoft ODBC for Oracle]

    "UsageCount"=dword:00000001

    "Driver"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,73,00,6f,00,72,00,63,00, 6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "Setup"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,73,00,6f,00,72,00,63,00, 6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "SQLLevel"="1"

    "FileUsage"="0"

    "DriverODBCVer"="02.50"

    "ConnectFunctions"="YYY"

    "APILevel"="1"

    "CPTimeout"="120"

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\Microsoft Paradox Driver (*.db )]

    "UsageCount"=dword:00000001

    "Driver"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6f,00,64,00,62,00,63,00,6a,00, 74,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "Setup"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6f,00,64,00,70,00,64,00,78,00, 33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "APILevel"="1"

    "ConnectFunctions"="YYN"

    "DriverODBCVer"="02.50"

    "FileUsage"="1"

    "FileExtns"="*.db"

    "SQLLevel"="0"

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\Microsoft Paradox-Treiber (*.db )]

    "UsageCount"=dword:00000001

    "Driver"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6f,00,64,00,62,00,63,00,6a,00, 74,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "Setup"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6f,00,64,00,70,00,64,00,78,00, 33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "APILevel"="1"

    "ConnectFunctions"="YYN"

    "DriverODBCVer"="02.50"

    "FileUsage"="1"

    "FileExtns"="*.db"

    "SQLLevel"="0"

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\Microsoft Text Driver (*.txt; *.csv)]

    "UsageCount"=dword:00000001

    "Driver"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6f,00,64,00,62,00,63,00,6a,00, 74,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "Setup"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6f,00,64,00,74,00,65,00,78,00, 74,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "APILevel"="1"

    "ConnectFunctions"="YYN"

    "DriverODBCVer"="02.50"

    "FileUsage"="1"

    "FileExtns"="*.,*.asc,*.csv,*.tab,*.txt,*.csv"

    "SQLLevel"="0"

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\Microsoft Text-Treiber (*.txt; *.csv)]

    "UsageCount"=dword:00000001

    "Driver"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6f,00,64,00,62,00,63,00,6a,00, 74,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "Setup"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6f,00,64,00,74,00,65,00,78,00, 74,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "APILevel"="1"

    "ConnectFunctions"="YYN"

    "DriverODBCVer"="02.50"

    "FileUsage"="1"

    "FileExtns"="*.,*.asc,*.csv,*.tab,*.txt,*.csv"

    "SQLLevel"="0"

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\Microsoft Visual FoxPro Driver]

    "UsageCount"=dword:00000001

    "Driver"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,76,00,66,00,70,00,6f,00,64,00, 62,00,63,00,2e,00,64,00,6c,00,6c,00,00,00

    "Setup"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,76,00,66,00,70,00,6f,00,64,00, 62,00,63,00,2e,00,64,00,6c,00,6c,00,00,00

    "APILevel"="0"

    "ConnectFunctions"="YYN"

    "DriverODBCVer"="02.50"

    "FileUsage"="1"

    "FileExtns"="*.dbf,*.cdx,*.idx,*.fpt"

    "SQLLevel"="0"

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\Microsoft Visual FoxPro-Treiber]

    "UsageCount"=dword:00000001

    "Driver"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,76,00,66,00,70,00,6f,00,64,00, 62,00,63,00,2e,00,64,00,6c,00,6c,00,00,00

    "Setup"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,76,00,66,00,70,00,6f,00,64,00, 62,00,63,00,2e,00,64,00,6c,00,6c,00,00,00

    "APILevel"="0"

    "ConnectFunctions"="YYN"

    "DriverODBCVer"="02.50"

    "FileUsage"="1"

    "FileExtns"="*.dbf,*.cdx,*.idx,*.fpt"

    "SQLLevel"="0"

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\MS Code Page Translator]

    "Translator"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73, 00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4d,00,53,00,43,00,50,00, 58,00,4c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "Setup"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4d,00,53,00,43,00,50,00,58,00, 4c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "UsageCount"=dword:00000001

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\MS Code Page-Ubersetzer]

    "Translator"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73, 00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4d,00,53,00,43,00,50,00, 58,00,4c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "Setup"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4d,00,53,00,43,00,50,00,58,00, 4c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "UsageCount"=dword:00000001

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\ODBC Core]

    "UsageCount"=dword:00000001

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\ODBC Drivers]

    "SQL Server"="Installed"

    "Microsoft ODBC for Oracle"="Installed"

    "Microsoft Access Driver (*.mdb)"="Installed"

    "Microsoft Access-Treiber (*.mdb)"="Installed"

    "Driver do Microsoft Access (*.mdb)"="Installed"

    "Microsoft dBase Driver (*.dbf)"="Installed"

    "Microsoft dBase-Treiber (*.dbf)"="Installed"

    "Driver do Microsoft dBase (*.dbf)"="Installed"

    "Microsoft Excel Driver (*.xls)"="Installed"

    "Microsoft Excel-Treiber (*.xls)"="Installed"

    "Driver do Microsoft Excel(*.xls)"="Installed"

    "Microsoft Paradox Driver (*.db )"="Installed"

    "Microsoft Paradox-Treiber (*.db )"="Installed"

    "Driver do Microsoft Paradox (*.db )"="Installed"

    "Microsoft Text Driver (*.txt; *.csv)"="Installed"

    "Microsoft Text-Treiber (*.txt; *.csv)"="Installed"

    "Driver da Microsoft para arquivos texto (*.txt; *.csv)"="Installed"

    "Microsoft Visual FoxPro Driver"="Installed"

    "Microsoft FoxPro VFP Driver (*.dbf)"="Installed"

    "Microsoft dBase VFP Driver (*.dbf)"="Installed"

    "Microsoft Visual FoxPro-Treiber"="Installed"

    "Driver para o Microsoft Visual FoxPro"="Installed"

    "SQL Native Client"="Installed"

    "Microsoft Access Driver (*.mdb, *.accdb)"="Installed"

    "Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)"="Installed"

    "Microsoft Access dBASE Driver (*.dbf, *.ndx, *.mdx)"="Installed"

    "Microsoft Access Paradox Driver (*.db)"="Installed"

    "Microsoft Access Text Driver (*.txt, *.csv)"="Installed"

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\ODBC Translators]

    "MS Code Page Translator"="Installed"

    "MS Code Page-Ubersetzer"="Installed"

    "Conversor de pagina de codigo MS"="Installed"

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\SQL Native Client]

    "UsageCount"=dword:00000001

    "Driver"="C:\\Windows\\system32\\sqlncli.dll"

    "Setup"="C:\\Windows\\system32\\sqlncli.dll"

    "APILevel"="2"

    "ConnectFunctions"="YYY"

    "CPTimeout"="60"

    "DriverODBCVer"="09.00"

    "FileUsage"="0"

    "SQLLevel"="1"

    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\SQL Server]

    "UsageCount"=dword:00000001

    "Driver"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,53,00,51,00,4c,00,53,00,52,00, 56,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "Setup"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,73,00,79, 00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,71,00,6c,00,73,00,72,00, 76,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,00,00

    "SQLLevel"="1"

    "FileUsage"="0"

    "DriverODBCVer"="03.50"

    "ConnectFunctions"="YYY"

    "APILevel"="2"

    "CPTimeout"="60"

  • It isn't the problem, but I would recommend using the SQL Native Client driver instead of SQL Server.

    Which SQL Server versions (e.g. 2000 and 2005) and instances (default or named) do you have installed locally?

    Is the SQL Browser service running?

    Which protocols are enabled for the Native client, and which protocols is the server listening on? See SQL Server Configuration Manager.

    Instead of dropping down the server list box (which tries to enumerate all SQL Servers locally or accessible via the network), try using LPC:(local) or LPC:(local)\InstanceName. The LPC: prefix forces the Shared Memory protocol. You could also try NP: for Named Pipes, or TCP: for TCP/IP.

    All those are workarounds, because the causes of this sort of delay can be hard to track down. Some details you might find interesting can be found here: http://blogs.msdn.com/sql_protocols/default.aspx?p=4

    Paul

  • Paul,

    Thanks so much. I changed the DSN to Native Client and it worked. The connection is instant.

    I will explore other options and let you know. I always take DSN connection as granted and now I need to learn more.

    Seaport

  • That's good to hear, even if it surprises me!

  • Here is an update.

    I tried setting up another DSN using SQL Server driver and got the same performance like using SQL Server Native Client driver. In other words, the problem I had before magically disappeared. My guess is that it was related to the network setup. The only change I made recently was the installation of a loopback network adapter, which is used by the Virtual PC.

  • Thank you for this post.

    I confirm that changing the driver from "SQL Server" to "SQL Server Native Client" improves dramatically the speed

  • Still if you are facing the issue, please see blow resolution:

    Root Cause

    -------------------------------------------------------------------

    The issue which we were seeing on Win7 VDIs could be due to the Network hardware device connected with the machine. If TCP/IP scaling is not supported by the network device then the performance will be slow.

    Solution

    -------------------------------------------------------------------

    Disable auto tuning level of the TCP. Please follow below steps:

    1)Open command Prompt with admin right (Run as Admin)

    2)Type “netsh interface tcp set global autotuninglevel=disabled”

    3)After running above command restart the machine.

    For other information on this command, visit link “http://support.microsoft.com/kb/935400”

  • This thread was a godsend! I was having similar problems with an extremely slow ODBC connection to SQL 2005 installed on my laptop running Windows 7 Home Premium.

    After following the instructions in this thread - especially the LPC: before the server name - my Access front-end database now responds almost instantly

    Thanks again, guys

Viewing 10 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic. Login to reply