does anyone knows some library(free if possible) to communicate with a Microsoft SQL Server?

thanks
Posted on 2006-02-15 15:57:45 by alvaroag
alvaroag,

To do any kind of SQL (database) stuff use the ODBC api.

research here for more information:

MSDN -
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/architec/8_ar_ad_86lf.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/architec/8_ar_ad_86lf.asp

Iczelion -
http://win32assembly.online.fr/files/odbc.zip

Regards,
Bryant Keller
Posted on 2006-02-15 16:11:05 by Synfire

alvaroag,

To do any kind of SQL (database) stuff use the ODBC api.


Another way might be using SQL-DMO objects (COM-based approach).
Posted on 2006-02-16 13:01:25 by Morris
Morris,

I wouldn't know anything about that. To me, COM is like drugs, I don't touch the stuff  ;)
Posted on 2006-02-16 18:42:40 by Synfire
The Iczelion's ODBC tutorial deal with Microsoft Access database (mdb), and you can change the ConnectionString in .data section like that :

strConnect db  "Driver={SQL Server};Server=.\SLiM_SERVER;Database=master;Trusted_Connection=yes;",0


"Server=.\SLiM_SERVER" is an example for my SQL Instance name,use your SQL instance name after ".\" which mean it is a local server.

and comment DBName in ODBCConnect proc.

That's ALL

:-)
Posted on 2006-04-02 07:19:20 by SLiM
I suggest http://dev.mysql.com/downloads/mysql/5.0.html its a great lib. Only thing though, you have to convert structures to f/m/t/n/asm format. Other wize it works like any standard dll like user32.dll. It has all the functions you need, I use it quite alot and its the thing to go with if your doing mysql. http://dev.mysql.com/doc/refman/4.1/en/index.html for documents.
Posted on 2006-04-03 00:25:21 by Qages

I suggest http://dev.mysql.com/downloads/mysql/5.0.html its a great lib. Only thing though, you have to convert structures to f/m/t/n/asm format. Other wize it works like any standard dll like user32.dll. It has all the functions you need, I use it quite alot and its the thing to go with if your doing mysql. http://dev.mysql.com/doc/refman/4.1/en/index.html for documents.


The post was originally directed towards Microsoft SQL, but you do bring up a good point. With MySQL becomming more and more commercialized and their licenses becomming much more restrictive, I believe the remark was made that 3rd party API's such as ODBC are "not in the spirit of Quid pro Quo", so if your using MySQL I would say get the MySQL lib as well. But since you are using MSSQL, this isn't a problem :)

Regards,
Bryant Keller
Posted on 2006-04-03 00:35:39 by Synfire