Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Frustratingly, Microsoft does not seem to give an unambiguous answer on how to test whether the client library is present. Web searching and registry sniffing reveals at least the follow registry keys:</p> <pre><code>HLKM\SOFTWARE\Microsoft\SQLNCLI11 (key:InstalledVersion) HLKM\SOFTWARE\Microsoft\SQLNCLI10 (key:InstalledVersion) HKLM\SOFTWARE\Microsoft\Microsoft SQL Native Client\CurrentVersion (version 9, i presume?) HLKM\SOFTWARE\Microsoft\Microsoft SQL Server Native Client 10.0\CurrentVersion (key:Version) HLKM\SOFTWARE\Microsoft\Microsoft SQL Server Native Client 11.0\CurrentVersion (key:Version) </code></pre> <p><a href="http://blogs.msdn.com/b/sqlexpress/archive/2006/07/29/faq-detecting-sql-server-2005-using-wmi.aspx" rel="noreferrer">This blog post at MSDN</a> suggests that using registry keys to answer a related question (is SQL Server Express installed) is wrong, wrong, wrong and you should write 200 lines of WMI code instead. The <a href="http://social.msdn.microsoft.com/Forums/en-US/sqlgetstarted/thread/a182caa6-2fd7-498c-afb7-47c49fcd6c11" rel="noreferrer">WMI approaches seem</a> equally undocumented and even more fragile to me.</p> <p>Since <a href="http://technet.microsoft.com/en-us/library/ms131321" rel="noreferrer">Microsoft allows the SQL Native Client package to be redistributed</a>, perhaps the best choice is simply include the msi in your application's installer and run it whether it is needed or not. See <a href="http://technet.microsoft.com/en-us/library/cc280356" rel="noreferrer">this list of supported operating system for the various drivers they provide</a> which reveals there is also a version 10.5(!).</p> <p>SQLNCLI is installed in parallel to MDAC-based drivers, so it should be safe to run <code>msiexec</code> on this and let it take care of the details.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload