使用C编程语言从UNIX服务器连接到SQL Server 2012 [英] Connection to SQL server 2012 from UNIX server using C programming language

查看:96
本文介绍了使用C编程语言从UNIX服务器连接到SQL Server 2012的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我需要使用示例C代码从Unix服务器使用www.easysoft.com上的ODBC驱动程序连接到SQL Server 2012.



我在我的unix盒子里安装了这个用于SQL Server的ODBC驱动程序的试用版。



有人可以请帮助我使用工作代码。



感谢和问候,

Deepti

Hi ,

I need sample C code to connect to SQL server 2012 from Unix server using ODBC driver from www.easysoft.com.

I have the trial version of this ODBC driver for SQL server installed in my unix box.

Could someone Please help me with the working code.

Thanks & Regards,
Deepti

推荐答案

Muli G是对的,那个网站上有一个很好的样本。看起来完整连接示例非常好。



不要加强错误处理 - 你需要它。
Muli G is right there is a fine sample on that website. Looks like the full connection sample is really good.

Dont ferget enhanced error handling - you will need it.


这篇关于使用C编程语言从UNIX服务器连接到SQL Server 2012的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆