Click here to Skip to main content
15,892,737 members
Home / Discussions / Database
   

Database

 
AnswerRe: ADO .NET Problem with SQL Server 2000 Pin
Mike Dimmick28-Nov-07 6:25
Mike Dimmick28-Nov-07 6:25 
Question[Solved] Help, error around ")", but I found no error [modified] Pin
followait28-Nov-07 1:33
followait28-Nov-07 1:33 
AnswerRe: Help, error around ")", but I found no error Pin
SimulationofSai28-Nov-07 2:40
SimulationofSai28-Nov-07 2:40 
QuestionAdd date to SQL Pin
tr_thorn28-Nov-07 0:50
tr_thorn28-Nov-07 0:50 
AnswerRe: Add date to SQL Pin
Paddy Boyd28-Nov-07 1:07
Paddy Boyd28-Nov-07 1:07 
GeneralRe: Add date to SQL Pin
tr_thorn28-Nov-07 1:23
tr_thorn28-Nov-07 1:23 
GeneralRe: Add date to SQL Pin
tr_thorn28-Nov-07 1:40
tr_thorn28-Nov-07 1:40 
GeneralRe: Add date to SQL Pin
Tobias Schoenig28-Nov-07 23:45
Tobias Schoenig28-Nov-07 23:45 
Be careful to send the DateTime-value to the Sql-Server in the right format. If your database-language is set to English(US), maybe you should try to convert the DataTime to this format with a CultureInfo-object.

<br />
CultureInfo ci = new CultureInfo("en-US");<br />
DateTime begin = DateTime.Parse(txtDate1.Text, ci);<br />
DateTime end = DateTime.Parse(txtDate2.Text, ci);<br />


Your SQL-command should then look like this:

cmd.CommandText = "SELECT KODU,CDISMI,CDTURU,CDADET,ACIKLAMA FROM TBL_PS_2" +
" WHERE RECORD_DATE BETWEEN '" + begin.ToString() + "' AND '" + end.ToString() + "' ";

Maybe this solves your problems.
GeneralRe: Add date to SQL Pin
Paul Conrad29-Nov-07 13:03
professionalPaul Conrad29-Nov-07 13:03 
QuestionStock report Pin
adyck27-Nov-07 22:44
adyck27-Nov-07 22:44 
AnswerRe: Stock report Pin
Prateek G27-Nov-07 22:55
Prateek G27-Nov-07 22:55 
GeneralRe: Stock report Pin
Prateek G27-Nov-07 23:05
Prateek G27-Nov-07 23:05 
GeneralRe: Stock report Pin
adyck28-Nov-07 20:17
adyck28-Nov-07 20:17 
AnswerRe: Stock report Pin
SimulationofSai27-Nov-07 23:01
SimulationofSai27-Nov-07 23:01 
AnswerRe: Stock report Pin
adyck28-Nov-07 20:22
adyck28-Nov-07 20:22 
GeneralRe: Stock report Pin
SimulationofSai28-Nov-07 21:21
SimulationofSai28-Nov-07 21:21 
QuestionUpdate Statement based on this Query Pin
Vimalsoft(Pty) Ltd27-Nov-07 22:27
professionalVimalsoft(Pty) Ltd27-Nov-07 22:27 
AnswerRe: Update Statement based on this Query Pin
SimulationofSai27-Nov-07 22:50
SimulationofSai27-Nov-07 22:50 
AnswerRe: Update Statement based on this Query Pin
Vimalsoft(Pty) Ltd27-Nov-07 23:22
professionalVimalsoft(Pty) Ltd27-Nov-07 23:22 
QuestionTSQL - string tokenizer Pin
devvvy27-Nov-07 22:22
devvvy27-Nov-07 22:22 
AnswerRe: TSQL - string tokenizer Pin
SimulationofSai27-Nov-07 22:53
SimulationofSai27-Nov-07 22:53 
GeneralRe: TSQL - string tokenizer Pin
devvvy27-Nov-07 23:43
devvvy27-Nov-07 23:43 
GeneralRe: TSQL - string tokenizer Pin
devvvy28-Nov-07 15:53
devvvy28-Nov-07 15:53 
GeneralRe: TSQL - string tokenizer Pin
SimulationofSai28-Nov-07 18:35
SimulationofSai28-Nov-07 18:35 
QuestionRows not in order in 2005 Pin
ramyasangeet27-Nov-07 22:11
ramyasangeet27-Nov-07 22: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.