Sunday, February 19, 2012

C code to import image to SQL Server 2000

I know my question is kinda weird but it seems I have to do this way or threre are some better ideas.

Could you show me a sample C code to connect to a data server and call a stored procedure to import an image file into SQL Server 2000?

I am writing an extended stored procedure in VS 2003 .NET and it seems extended stored procedure can only work with C code.

Thanks!

YL

Iy you are using ODBC, you can try SQLPutData

There is some code sample in the following link
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odbc/htm/odbcsqlputdata.asp

No comments:

Post a Comment