i'm using Database Object (CDatabase) in Visual C++, to connect to ms sql server..
sprintf(sql, "insert into TABLE_STYLES(STYLE_NAME) values('%s')",temp1);
theDb->ExecuteSQL(sql);
i use an sample statment like this to put data info the database.
my question is simple
how do i extract a value from the sql database and put it in a variable so i can use it in my program?
sprintf(sql, "insert into TABLE_STYLES(STYLE_NAME) values('%s')",temp1);
theDb->ExecuteSQL(sql);
i use an sample statment like this to put data info the database.
my question is simple
how do i extract a value from the sql database and put it in a variable so i can use it in my program?