Click here to Skip to main content
15,887,596 members
Home / Discussions / Database
   

Database

 
GeneralRe: How to create directory in SQL with Space Pin
Richard Deeming7-Nov-13 8:33
mveRichard Deeming7-Nov-13 8:33 
GeneralRe: How to create directory in SQL with Space Pin
Samarjeet Singh@india21-Nov-13 0:57
Samarjeet Singh@india21-Nov-13 0:57 
AnswerRe: How to create directory in SQL with Space Pin
jschell7-Nov-13 9:26
jschell7-Nov-13 9:26 
AnswerRe: How to create directory in SQL with Space Pin
Minghao Xue20-Nov-13 22:03
professionalMinghao Xue20-Nov-13 22:03 
GeneralRe: How to create directory in SQL with Space Pin
Samarjeet Singh@india21-Nov-13 0:57
Samarjeet Singh@india21-Nov-13 0:57 
QuestionSudden cast problem using executescalar Pin
Gennady Oster5-Nov-13 22:25
Gennady Oster5-Nov-13 22:25 
AnswerRe: Sudden cast problem using executescalar Pin
Richard Deeming6-Nov-13 1:22
mveRichard Deeming6-Nov-13 1:22 
GeneralRe: Sudden cast problem using executescalar Pin
Gennady Oster6-Nov-13 1:46
Gennady Oster6-Nov-13 1:46 
Thanks, Richard.

Saying truth, I've already understand where I made a mistake.
I anyway want ExecuteScalar to return db error, so I simply added the test is byte for result before casting:
C#
Object sqlResult = ExecuteScalar(sql);
if (!(sqlResult is byte))
{
    return sqlResult.ToString();
}

This is the internal module, and WHERE clause is generated programmatically, so I don't see the ability to SQL Injection.

Thanks once more.

Regards,
Gennady
My English is permanently under construction. Be patient !!

Questionhow can left join two table on multiple column??? Pin
mhd.sbt5-Nov-13 9:22
mhd.sbt5-Nov-13 9:22 
AnswerRe: how can left join two table on multiple column??? Pin
Richard Deeming5-Nov-13 9:58
mveRichard Deeming5-Nov-13 9:58 
QuestionMysql select query with multiple conditions Pin
Member 102635195-Nov-13 1:50
Member 102635195-Nov-13 1:50 
AnswerRe: Mysql select query with multiple conditions Pin
Richard Deeming5-Nov-13 2:36
mveRichard Deeming5-Nov-13 2:36 
GeneralRe: Mysql select query with multiple conditions Pin
Member 102635195-Nov-13 20:22
Member 102635195-Nov-13 20:22 
GeneralRe: Mysql select query with multiple conditions Pin
Richard Deeming6-Nov-13 1:08
mveRichard Deeming6-Nov-13 1:08 
GeneralRe: Mysql select query with multiple conditions Pin
Member 102635196-Nov-13 1:38
Member 102635196-Nov-13 1:38 
GeneralRe: Mysql select query with multiple conditions Pin
Richard Deeming6-Nov-13 1:54
mveRichard Deeming6-Nov-13 1:54 
GeneralRe: Mysql select query with multiple conditions Pin
Member 102635196-Nov-13 18:10
Member 102635196-Nov-13 18:10 
GeneralRe: Mysql select query with multiple conditions Pin
Member 102635196-Nov-13 19:41
Member 102635196-Nov-13 19:41 
Questionunique random alphanumeric in MySQL Pin
Jassim Rahma5-Nov-13 0:14
Jassim Rahma5-Nov-13 0:14 
AnswerRe: unique random alphanumeric in MySQL Pin
thatraja5-Nov-13 2:17
professionalthatraja5-Nov-13 2:17 
AnswerRe: unique random alphanumeric in MySQL Pin
jschell5-Nov-13 9:09
jschell5-Nov-13 9:09 
GeneralRe: unique random alphanumeric in MySQL Pin
Jassim Rahma19-Jul-14 7:03
Jassim Rahma19-Jul-14 7:03 
QuestionUsing SQL LocalDB Pin
GenJerDan29-Oct-13 3:56
GenJerDan29-Oct-13 3:56 
AnswerRe: Using SQL LocalDB Pin
Richard Deeming29-Oct-13 4:51
mveRichard Deeming29-Oct-13 4:51 
GeneralRe: Using SQL LocalDB Pin
GenJerDan29-Oct-13 4:57
GenJerDan29-Oct-13 4:57 

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.