Thread: FREE TDS with C

Page 2 of 2 First 12
  • Jump to page:
    #16
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2013
    Posts
    3
    Rep Power
    0
    The example now works with my server and database.

    Thanks to Scorpions4ever for the nice example and thanks to b49P23TIvg for help with the link order.

    I might add that DBSERVER in the example should refer to the server section in freetds.conf. I could not make it work with either an IP address or an IP address and port number.

    So:

    In the .c file:
    #define DBSERVER "sqlserver"

    In the freetds.conf file:
    [sqlserver]
    host = <IP address of your server>
    port = <Port number, usually 1433 for MSSQL servers>
    tds version = <TDS version for your server, I use "8.0" for my SQL Server 2012 Express>
  2. #17
  3. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,837
    Rep Power
    480
    linkage has followed the same rules on all the systems I've used, including several operating systems and many sorts of computers starting in the early eighties.

    Declare it then define it.
    Show you need it, then provide it.

    The libraries can be coupled (entangled) in such a way you need to specify one of them twice, although in this case I'd probably use extra options to extract only certain objects.


    I don't understand the advice given in the July 2nd, 2003 04:11 PM post. Everyone seemed satisfied as a result.
    [code]Code tags[/code] are essential for python code and Makefiles!
Page 2 of 2 First 12
  • Jump to page:

IMN logo majestic logo threadwatch logo seochat tools logo