SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 C and SQL 2008 r2
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

stevenandler
Starting Member

USA
28 Posts

Posted - 07/13/2012 :  10:14:58  Show Profile  Reply with Quote
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
Flowing Fount of Yak Knowledge

USA
5469 Posts

Posted - 07/13/2012 :  10:21:06  Show Profile  Reply with Quote
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

USA
15558 Posts

Posted - 07/13/2012 :  10:22:49  Show Profile  Visit robvolk's Homepage  Reply with Quote
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
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000