Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 C and SQL 2008 r2

Author  Topic 

stevenandler
Starting Member

42 Posts

Posted - 2012-07-13 : 10:14:58
I was given a project to create a subroutine which calls an SQL procedure and returns the results in one of the parameters passed in. I originally wrote the code in C# using the MS .net framwork. Due to backward compatibility issues, I now need to write this subroutine in C.

My first question is, do the classic "C" header and libraries have support to communicate with SQL 2008?

If so, can some one direct me to some sample code which will show me how to create an SQL connector and call a stored prodecure?
Thank you.

TG
Master Smack Fu Yak Hacker

6065 Posts

Posted - 2012-07-13 : 10:21:06
I'm sure there's some folks here that know the answer to that (I'm old but I still don't know) but you will probably get more responses if you find a forum for C developers or perhaps stackoverflow.com.

Be One with the Optimizer
TG
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2012-07-13 : 10:22:49
Some details here: http://msdn.microsoft.com/en-us/library/ms131291.aspx

You didn't say if you were using SQL 2008 or R2 so you will have to change the version using the "Other Versions" dropdown.
Go to Top of Page
   

- Advertisement -