Solved

Manually installing SQL Server ODBC driver

Posted on 2000-03-21
3
909 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
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.

831 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