Click here to Skip to main content
15,912,072 members
Home / Discussions / Database
   

Database

 
QuestionHow to write if i have 3 condition for WHERE? Pin
cheeken2u26-Sep-06 20:21
cheeken2u26-Sep-06 20:21 
AnswerRe: How to write if i have 3 condition for WHERE? Pin
albCode27-Sep-06 4:05
albCode27-Sep-06 4:05 
QuestionIDENT_CURRENT Pin
Polymorpher26-Sep-06 19:15
Polymorpher26-Sep-06 19:15 
QuestionHow to excute parameterized storeprocedure in LinkedServer Pin
Rickey_Me26-Sep-06 18:55
Rickey_Me26-Sep-06 18:55 
QuestionProblem with SELECT query using ADO.NET and C# Pin
Baz26-Sep-06 10:06
Baz26-Sep-06 10:06 
AnswerRe: Problem with SELECT query using ADO.NET and C# Pin
indianet26-Sep-06 10:40
indianet26-Sep-06 10:40 
AnswerRe: Problem with SELECT query using ADO.NET and C# Pin
Rob Graham26-Sep-06 16:27
Rob Graham26-Sep-06 16:27 
GeneralRe: Problem with SELECT query using ADO.NET and C# Pin
Baz26-Sep-06 21:54
Baz26-Sep-06 21:54 
Thanks for that Rob - yeah my bad! I am actually using the OleDbDataReader and not the SqlDataReader class in my code. I was trying to get this question up there before CSI came on the TV!!! (it comes on at 9pm here in the UK)

Anyway, the method you have presented there is the same method I am using, and the CommandText that gets passed to Access is actually:
SELECT ID FROM Company WHERE CompanyName=\"Microsoft\" and obviously not what I want!

EDIT: Woah! After rebooting my machine, it now seems to pass through the correct string... i.e SELECT ID FROM Company WHERE CompanyName="Microsoft"

Not sure what happened there... anyway, the query never finds the company regardless of the name supplied, even though the company is in the database! Any ideas on this one? I have seen a similar situation when searching on Google, but couldn't find a fix
AnswerRe: Problem with SELECT query using ADO.NET and C# Pin
Edbert P26-Sep-06 18:10
Edbert P26-Sep-06 18:10 
GeneralRe: Problem with SELECT query using ADO.NET and C# Pin
Baz26-Sep-06 21:46
Baz26-Sep-06 21:46 
AnswerRe: Problem with SELECT query using ADO.NET and C# Pin
albCode27-Sep-06 1:05
albCode27-Sep-06 1:05 
QuestionSQL Datetime question Pin
cbrucewilson6426-Sep-06 8:44
cbrucewilson6426-Sep-06 8:44 
AnswerRe: SQL Datetime question Pin
Michael Potter26-Sep-06 9:09
Michael Potter26-Sep-06 9:09 
GeneralRe: SQL Datetime question Pin
cbrucewilson6427-Sep-06 2:36
cbrucewilson6427-Sep-06 2:36 
QuestionRe: SQL Datetime question Pin
Chris Meech26-Sep-06 9:44
Chris Meech26-Sep-06 9:44 
AnswerRe: SQL Datetime question Pin
cbrucewilson6427-Sep-06 2:42
cbrucewilson6427-Sep-06 2:42 
QuestionUpdate schema Pin
Soundman32.226-Sep-06 6:26
Soundman32.226-Sep-06 6:26 
AnswerRe: Update schema Pin
Mike Dimmick26-Sep-06 9:28
Mike Dimmick26-Sep-06 9:28 
Questionmultiple columns in rules Pin
Mridang Agarwalla26-Sep-06 3:58
Mridang Agarwalla26-Sep-06 3:58 
Questiondatareader and dataset Pin
Jax_qqq26-Sep-06 3:39
Jax_qqq26-Sep-06 3:39 
AnswerRe: datareader and dataset Pin
Colin Angus Mackay26-Sep-06 3:44
Colin Angus Mackay26-Sep-06 3:44 
QuestionHow to run the Job Pin
Atul Kharecha25-Sep-06 23:50
Atul Kharecha25-Sep-06 23:50 
AnswerRe: How to run the Job Pin
Dave Kreskowiak27-Sep-06 13:48
mveDave Kreskowiak27-Sep-06 13:48 
QuestionHow ca i remove spaces in my database ? Pin
Bravoone_200625-Sep-06 21:09
Bravoone_200625-Sep-06 21:09 
QuestionIdentity reset Pin
FireOnMoon25-Sep-06 18:35
FireOnMoon25-Sep-06 18:35 

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.