Solved

Manually installing SQL Server ODBC driver

Posted on 2000-03-21
3
907 Views
Last Modified: 2012-06-27
Is there an API call which will register the SQL Server driver (SQLSRV32.DLL) with ODBC?  If an API call exists, I would assume that it would take care of making the entries in the following registry locations: "HKLM\Software\ODBC\ODBCINST.INI\ODBC Drivers" and "HKLM\Software\ODBC\ODBCINST.INI\SQL Server".  I'm hoping that there is an API call out there called RegisterNewODBCDriver or something like that.

Right now my installation program copies all of the files needed by the SQL Server ODBC driver and it manually creates the registry entries.  This works fine, but I would prefer to call an API function to take care of the registry if possible.  I do NOT want to install the full blown MDAC in this situation, I am only interested in installing and registering the SQL Server driver with ODBC.

Thanks.
0
Comment
Question by:jsullivan
3 Comments
 
LVL 4

Expert Comment

by:wqw
ID: 2641881
hmmm, never heard of one actually. will be helpfull indeed.

</wqw>

p.s. i'm particularly interested. nevermind my comment :-))
0
 
LVL 7

Accepted Solution

by:
tchalkov earned 100 total points
ID: 2643512
Generally this depends on the version of ODBC you are using. If you are using 3.0 or higher then use the function SQLInstallDriverEx. It is described in MSDN. You don't need anything else.

However if you are using ODBC 2.5 then you must use SQLInstallDriver, and you need an .inf file which describes your driver.
The problem is that SQLInstallDriver is not supported under ODBC 3.0 and higher, so you'll have to know which ODBC version you will support.

Here are a few KB articles which you may find usefull : Q168052, Q158615
0
 

Author Comment

by:jsullivan
ID: 2650726
tchalkov,

Thanks, that was exactly what I needed.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now