Click here to Skip to main content
15,900,378 members
Home / Discussions / Database
   

Database

 
QuestionSQL Date and Time Queries... Pin
Illegal Operation4-Apr-07 1:51
Illegal Operation4-Apr-07 1:51 
AnswerRe: SQL Date and Time Queries... Pin
Frank Kerrigan4-Apr-07 23:29
Frank Kerrigan4-Apr-07 23:29 
QuestionUpdating Database through datagrid Pin
Raheem MA4-Apr-07 1:22
Raheem MA4-Apr-07 1:22 
AnswerRe: Updating Database through datagrid Pin
joon vh.4-Apr-07 1:26
joon vh.4-Apr-07 1:26 
GeneralRe: Updating Database through datagrid Pin
Raheem MA4-Apr-07 1:37
Raheem MA4-Apr-07 1:37 
QuestionTransactions in a stored procedure Pin
gauthee4-Apr-07 1:20
gauthee4-Apr-07 1:20 
AnswerRe: Transactions in a stored procedure Pin
joon vh.4-Apr-07 1:35
joon vh.4-Apr-07 1:35 
AnswerRe: Transactions in a stored procedure Pin
andyharman4-Apr-07 3:14
professionalandyharman4-Apr-07 3:14 
QuestionHow to Execute the DTS Package from C#.net Code Behind? Pin
SrinivasanPrabakaran4-Apr-07 0:51
SrinivasanPrabakaran4-Apr-07 0:51 
QuestionConverting seconds to hours and mins Pin
si_694-Apr-07 0:43
si_694-Apr-07 0:43 
AnswerRe: Converting seconds to hours and mins Pin
Hayder Marzouk4-Apr-07 2:13
Hayder Marzouk4-Apr-07 2:13 
AnswerRe: Converting seconds to hours and mins Pin
DQNOK4-Apr-07 8:40
professionalDQNOK4-Apr-07 8:40 
GeneralRe: Converting seconds to hours and mins Pin
si_695-Apr-07 0:50
si_695-Apr-07 0:50 
QuestionSQL Server Management Studio Express Pin
Zalro3-Apr-07 23:24
Zalro3-Apr-07 23:24 
AnswerRe: SQL Server Management Studio Express Pin
originSH5-Apr-07 0:51
originSH5-Apr-07 0:51 
QuestionCustom Replication / Mirroring for SQL Server 2005 Express Pin
Ligblou3-Apr-07 21:30
Ligblou3-Apr-07 21:30 
QuestionMS Access as Database and SQL: Problem in WHERE clause Pin
santoshsan3-Apr-07 21:20
santoshsan3-Apr-07 21:20 
AnswerRe: MS Access as Database and SQL: Problem in WHERE clause Pin
Adeel Chaudhry3-Apr-07 21:34
Adeel Chaudhry3-Apr-07 21:34 
GeneralRe: MS Access as Database and SQL: Problem in WHERE clause Pin
Colin Angus Mackay3-Apr-07 21:38
Colin Angus Mackay3-Apr-07 21:38 
GeneralRe: MS Access as Database and SQL: Problem in WHERE clause Pin
santoshsan3-Apr-07 23:15
santoshsan3-Apr-07 23:15 
GeneralRe: MS Access as Database and SQL: Problem in WHERE clause Pin
santoshsan3-Apr-07 22:54
santoshsan3-Apr-07 22:54 
AnswerRe: MS Access as Database and SQL: Problem in WHERE clause Pin
Colin Angus Mackay3-Apr-07 21:37
Colin Angus Mackay3-Apr-07 21:37 
santoshsan wrote:
get_cat is a long variable, but when i enclose it in ' ' qoutes SQL or ODBC treats it as string and does not uses the value inside it which I wanted to.


That is because the database has no idea of the variables you have in your C++ applicaiton. They are separate applications, running in separate processes. The only way they communicate is through SQL. You have to tell the SQL the value you want. It cannot peer into another process and pull the value out.

It has been over 7 years since I did MFC and C++ so your best bet is to find out how to generate parameterised queries in MFC and put the value in as a parameter to the SQL query.


GeneralRe: MS Access as Database and SQL: Problem in WHERE clause Pin
santoshsan3-Apr-07 23:09
santoshsan3-Apr-07 23:09 
AnswerRe: MS Access as Database and SQL: Problem in WHERE clause Pin
ChandraRam4-Apr-07 0:17
ChandraRam4-Apr-07 0:17 
Questionproblem when creating database independant access layer Pin
Hassan Amaar3-Apr-07 21:11
Hassan Amaar3-Apr-07 21:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.