Solved

Manually installing SQL Server ODBC driver

Posted on 2000-03-21
3
905 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
Comment Utility
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
Comment Utility
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
Comment Utility
tchalkov,

Thanks, that was exactly what I needed.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

In this article—a derivative of my DaytaBase.org blog post (http://daytabase.org/2011/06/18/what-week-is-it/)—I will explore a few different perspectives on which week today's date falls within using Microsoft SQL Server. First, to frame this stu…
I wrote this interesting script that really help me find jobs or procedures when working in a huge environment. I could I have written it as a Procedure but then I would have to have it on each machine or have a link to a server-related search that …
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

743 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

19 Experts available now in Live!

Get 1:1 Help Now