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

Database

 
AnswerRe: Get all the tables in the database Pin
Balagurunathan S11-Apr-07 2:57
Balagurunathan S11-Apr-07 2:57 
GeneralRe: Get all the tables in the database Pin
ArchaBhandare16-Apr-07 1:55
ArchaBhandare16-Apr-07 1:55 
Questionsql comparison help needed Pin
neodeaths8-Apr-07 21:21
neodeaths8-Apr-07 21:21 
AnswerRe: sql comparison help needed Pin
Krish - KP8-Apr-07 21:58
Krish - KP8-Apr-07 21:58 
Questionhow to compare date in sql statement Pin
neodeaths8-Apr-07 19:44
neodeaths8-Apr-07 19:44 
AnswerRe: how to compare date in sql statement Pin
_mubashir8-Apr-07 21:17
_mubashir8-Apr-07 21:17 
AnswerRe: how to compare date in sql statement Pin
Krish - KP8-Apr-07 21:55
Krish - KP8-Apr-07 21:55 
GeneralRe: how to compare date in sql statement Pin
Colin Angus Mackay9-Apr-07 0:10
Colin Angus Mackay9-Apr-07 0:10 
Krish - KP wrote:
SELECT * FROM staff WHERE date_time = getdate()
returns no rows i.e. both rows would not be returned. because getdate() returns date & time


It returns no rows because all dates in the database occur in the past, therefore there is no match. It has nothing to do with the fact that GETDATE() returns the date and time.

If you only stored the date portion then the time portion will always be midnight. You can use that information to your benefit when writing calculation.


Upcoming events:
* Edinburgh: Web Security Conference Day for Windows Developers (12th April)
* Glasgow: Introduction to AJAX (2nd May), SQL Server, Mock Objects

Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton


My website

Questiontransactions and transactionScope Pin
steve_rm8-Apr-07 16:45
steve_rm8-Apr-07 16:45 
Questionneed help with special case when sql got no data Pin
neodeaths8-Apr-07 15:34
neodeaths8-Apr-07 15:34 
AnswerRe: need help with special case when sql got no data Pin
Colin Angus Mackay8-Apr-07 16:09
Colin Angus Mackay8-Apr-07 16:09 
GeneralRe: need help with special case when sql got no data Pin
neodeaths8-Apr-07 17:49
neodeaths8-Apr-07 17:49 
GeneralRe: need help with special case when sql got no data Pin
Colin Angus Mackay9-Apr-07 0:04
Colin Angus Mackay9-Apr-07 0:04 
Questionstore proc programming Pin
coolzzzz8-Apr-07 2:05
coolzzzz8-Apr-07 2:05 
AnswerRe: store proc programming Pin
Colin Angus Mackay8-Apr-07 3:13
Colin Angus Mackay8-Apr-07 3:13 
Questionhow can rename table name with tsql ? Pin
B.A7-Apr-07 20:39
B.A7-Apr-07 20:39 
AnswerRe: how can rename table name with tsql ? Pin
B.A7-Apr-07 22:40
B.A7-Apr-07 22:40 
QuestionDTS help Pin
indian1437-Apr-07 6:16
indian1437-Apr-07 6:16 
Questiongive DTS source file at runtime Pin
indian1436-Apr-07 22:04
indian1436-Apr-07 22:04 
QuestionStored Procedure Pin
vengaqua6-Apr-07 21:44
vengaqua6-Apr-07 21:44 
AnswerRe: Stored Procedure Pin
Rob Graham7-Apr-07 4:24
Rob Graham7-Apr-07 4:24 
Questionwhat is different between SqlDataAdapter and SqlDataReader?.what is different between SqlDataAdapter and SqlDataReader?.these 2 r different from dataadapter and datareader. Pin
sathyan_82946-Apr-07 18:53
sathyan_82946-Apr-07 18:53 
AnswerRe: what is different between SqlDataAdapter and SqlDataReader?.what is different between SqlDataAdapter and SqlDataReader?.these 2 r different from dataadapter and datareader. Pin
vengaqua6-Apr-07 21:56
vengaqua6-Apr-07 21:56 
AnswerRe: what is different between SqlDataAdapter and SqlDataReader?.what is different between SqlDataAdapter and SqlDataReader?.these 2 r different from dataadapter and datareader. Pin
Rob Graham7-Apr-07 4:17
Rob Graham7-Apr-07 4:17 
AnswerRe: what is different between SqlDataAdapter and SqlDataReader?.what is different between SqlDataAdapter and SqlDataReader?.these 2 r different from dataadapter and datareader. Pin
Vinay Dornala8-Apr-07 21:00
Vinay Dornala8-Apr-07 21:00 

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.