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
 invoking database using C programs

Author  Topic 

sriramya
Starting Member

1 Post

Posted - 2008-04-16 : 03:35:14
we have an existing .c file and we have to include sql statements in it...

if we include sql statements it has to be stored as .ec file...

so we have to create a .ec file separately and include this into the .c program

but only .c and .h files can be included in .c programs so we converted .ec to .c file using esql command

now after incluing the .c file into the program we dont get any error but we are getting some junk output....

can someone help me in this

nr
SQLTeam MVY

12543 Posts

Posted - 2008-04-16 : 05:32:21
This is a c problem not sql server.
It's not a good idea to embed sql in applications anyway - can't you use stored procedures and keep the sql in the database?

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -