Embedded SQL - urgent help required!

This is a discussion on Embedded SQL - urgent help required! within the C Programming forums, part of the General Programming Boards category; Anybody know what to do when including SQL statements in c programs to compile and execute your code? It says ...

  1. #1
    Registered User
    Join Date
    Oct 2001
    Posts
    1

    Question Embedded SQL - urgent help required!

    Anybody know what to do when including SQL statements in c programs to compile and execute your code?

    It says it needs to be precompiled!

  2. #2
    Registered User Engineer's Avatar
    Join Date
    Oct 2001
    Posts
    125
    This probably means that you have to predeclare all you SQL statements in the source code:

    char sql_stmt[] = { "select * from table" };

    and then you those statements with the API appropriate to the database you are using.

    Hope this helped.
    1 rule of the Samurai Code: if you have nothing to say, don't say anything at all!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Please help create a loop for embedded SQL
    By cjohnman in forum C Programming
    Replies: 4
    Last Post: 04-24-2008, 06:46 AM
  2. Embedded SQL Order By
    By cjohnman in forum C Programming
    Replies: 12
    Last Post: 04-15-2008, 03:45 PM
  3. Replies: 28
    Last Post: 07-16-2006, 11:35 PM
  4. Embedded SQL
    By sarac in forum C Programming
    Replies: 1
    Last Post: 05-04-2006, 09:09 AM
  5. Problem with embedded SQL in C/C++ (ECPG)
    By NeuralClone in forum C Programming
    Replies: 4
    Last Post: 10-21-2005, 05:16 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21