Re: Using DBLIB With Azure
Ken Collins <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <[email protected]> |
Ug, I need to proof read my emails more. I meant to say, with this patch, any db-lib program compiling against the public headers can NOW use DBSETLDBNAME to set the default database name in the login packet. There by working with Azure. - Ken On Mar 27, 2011, at 9:03 AM, Ken Collins wrote: > > Success!! > >> DBSETLDBNAME() is the most natural way to extend db-lib to include the database name in the login packet. It will require modifying TDSLOGIN to hold the name, and tds_config_login() to copy it to the TDSCONNECTION. > > Attached is a diff/patch that I am able to confirm works for me and allows me to connection with TinyTDS. This means any db-lib can not use DBSETLDBNAME to do the same. In case the attachment for the patch does not come thru, here it is in a gist. https://gist.github.com/889190 > > James, can this small function make it into the release? > > - Ken