Click here to Skip to main content
15,885,366 members
Home / Discussions / Database
   

Database

 
GeneralRe: change owner of objects Pin
Pete O'Hanlon3-Jan-08 4:59
mvePete O'Hanlon3-Jan-08 4:59 
GeneralManager SQLEXPRESS 2005 Pin
AnhTin1-Jan-08 22:00
AnhTin1-Jan-08 22:00 
GeneralRe: Manager SQLEXPRESS 2005 Pin
Michael Sync1-Jan-08 22:39
Michael Sync1-Jan-08 22:39 
Generalpbroblem with smalldatetime Pin
prasadbuddhika1-Jan-08 21:30
prasadbuddhika1-Jan-08 21:30 
GeneralRe: pbroblem with smalldatetime Pin
Pete O'Hanlon1-Jan-08 22:25
mvePete O'Hanlon1-Jan-08 22:25 
GeneralRe: pbroblem with smalldatetime Pin
Mike Dimmick2-Jan-08 14:08
Mike Dimmick2-Jan-08 14:08 
GeneralRe: pbroblem with smalldatetime Pin
Pete O'Hanlon3-Jan-08 1:12
mvePete O'Hanlon3-Jan-08 1:12 
GeneralRe: pbroblem with smalldatetime Pin
GuyThiebaut1-Jan-08 22:55
professionalGuyThiebaut1-Jan-08 22:55 
If you really really need to do this then you can store it as an integer by converting dates as follows:

cast(convert(char(10),getdate(),112)as int)

Storing it as an integer will only take 4 bytes rather than the 10 bytes a char or varchar would take.

The beauty of this is that you can do comparisons between integer dates without having to cast the data first.

Regards

Guy

You always pass failure on the way to success.


GeneralProblem in Stored Procedure in SQLSERVER 2000 Pin
Member 30578871-Jan-08 21:07
Member 30578871-Jan-08 21:07 
GeneralRe: Problem in Stored Procedure in SQLSERVER 2000 Pin
Michael Sync1-Jan-08 22:43
Michael Sync1-Jan-08 22:43 
QuestionSQL server is not connecting from client Pin
findtango1-Jan-08 19:41
findtango1-Jan-08 19:41 
GeneralRe: SQL server is not connecting from client Pin
Michael Sync1-Jan-08 22:44
Michael Sync1-Jan-08 22:44 
GeneralRe: SQL server is not connecting from client Pin
findtango2-Jan-08 1:14
findtango2-Jan-08 1:14 
GeneralUpdate 2 tables using triggers.., [modified] Pin
Member 38798811-Jan-08 19:23
Member 38798811-Jan-08 19:23 
QuestionHow to prevent records from ordering? Pin
Member 41215111-Jan-08 1:12
Member 41215111-Jan-08 1:12 
AnswerRe: How to prevent records from ordering? Pin
vimal_yet1-Jan-08 2:26
vimal_yet1-Jan-08 2:26 
GeneralRe: How to prevent records from ordering? Pin
Colin Angus Mackay1-Jan-08 12:37
Colin Angus Mackay1-Jan-08 12:37 
AnswerRe: How to prevent records from ordering? Pin
Colin Angus Mackay1-Jan-08 12:44
Colin Angus Mackay1-Jan-08 12:44 
AnswerRe: How to prevent records from ordering? Pin
andyharman2-Jan-08 3:59
professionalandyharman2-Jan-08 3:59 
Questionsql server next query Pin
Sonia Gupta31-Dec-07 21:00
Sonia Gupta31-Dec-07 21:00 
GeneralRe: sql server next query Pin
SimulationofSai31-Dec-07 21:24
SimulationofSai31-Dec-07 21:24 
GeneralRe: sql server next query Pin
Paddy Boyd2-Jan-08 1:30
Paddy Boyd2-Jan-08 1:30 
QuestionSuggestions please Pin
sindhutiwari31-Dec-07 19:31
sindhutiwari31-Dec-07 19:31 
GeneralRe: Suggestions please Pin
vimal_yet31-Dec-07 19:38
vimal_yet31-Dec-07 19:38 
GeneralRe: Suggestions please Pin
sindhutiwari31-Dec-07 19:53
sindhutiwari31-Dec-07 19:53 

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.