Click here to Skip to main content
15,890,438 members
Home / Discussions / Database
   

Database

 
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 
I am using MS Access DB With MFC as programming platform. I have question about WHERE clause in SELECT query

"SELECT subcat_id,subcat_name FROM temp_subcat WHERE cat_id = 'get_cat' "

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.
i removed qoutes and tried still it doesnt work it throws exception like “Too few parameters, Expected 1” I think it might be ignoring the unquoted get_cat

Quesion is--->

Is there any method of enclosing variables in the SQL queries while using MS Access as database?

Like any syntax like ---> ' ". variable ." '

In other words:: I want to use variable in my SQL query and there must be some syntax provided by SQL or MS Access to identify such variable which is been used in the query and use the value inside that variable and not the variable itself as a string.

Plz help me out with this problem

San


San

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 
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 
AnswerRe: problem when creating database independant access layer Pin
Paddy Boyd3-Apr-07 23:55
Paddy Boyd3-Apr-07 23:55 
GeneralRe: problem when creating database independant access layer Pin
Hassan Amaar5-Apr-07 1:49
Hassan Amaar5-Apr-07 1:49 
GeneralRe: problem when creating database independant access layer Pin
Paddy Boyd5-Apr-07 2:29
Paddy Boyd5-Apr-07 2:29 
AnswerRe: problem when creating database independant access layer Pin
Hayder Marzouk4-Apr-07 2:26
Hayder Marzouk4-Apr-07 2:26 
GeneralRe: problem when creating database independant access layer Pin
Hassan Amaar5-Apr-07 1:51
Hassan Amaar5-Apr-07 1:51 
Questiondatabase deletion Pin
jithbiz00333-Apr-07 20:51
jithbiz00333-Apr-07 20:51 
AnswerRe: database deletion Pin
Paddy Boyd3-Apr-07 23:07
Paddy Boyd3-Apr-07 23:07 
QuestionThe data types varchar and image are incompatible in the add operator in sql server 2005 Pin
24891283-Apr-07 20:04
24891283-Apr-07 20:04 
AnswerRe: The data types varchar and image are incompatible in the add operator in sql server 2005 Pin
Colin Angus Mackay3-Apr-07 21:02
Colin Angus Mackay3-Apr-07 21:02 

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.