>>>Hi,
>>>
>>>How can i register a ODBC?(Control Panel ODBC)
>>>
>>>Thanks
>>>Bye,
>>
>>An ODBC driver or DSN? Creating an ODBC DSN I can help with. An ODBC driver is usually installed with an install program that comes with the driver. Other than that, you would have to look in the registery to see what a typical one looks like.
>
>I need to create a System DSN manually through code.
>Any Help?
>
>Thanks :>
If I understand correctly... a DSN is just some entries in odbc.ini and odbcinst.ini... If you manually create a system DSN, then look in there files to see the entries added. Then...
Use the windows APIs to access ini files to create the sections/entries you need for the DNS. If I remember the syntax was pretty straight forward... check out the .ini file.
Basically, this is all that the ODBC editor does... edit these ini files.
BOb
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement