Click here to Skip to main content
15,898,729 members
Home / Discussions / Database
   

Database

 
AnswerRe: select with TOP and COUNT Pin
Eric Dahlvang5-Oct-06 5:22
Eric Dahlvang5-Oct-06 5:22 
GeneralRe: select with TOP and COUNT Pin
CandyMe5-Oct-06 18:00
CandyMe5-Oct-06 18:00 
GeneralRe: select with TOP and COUNT Pin
CandyMe5-Oct-06 19:41
CandyMe5-Oct-06 19:41 
AnswerRe: select with TOP and COUNT Pin
templarx5-Oct-06 22:08
templarx5-Oct-06 22:08 
GeneralRe: select with TOP and COUNT Pin
CandyMe7-Oct-06 2:17
CandyMe7-Oct-06 2:17 
Questiondatetime Pin
lakshmi_sri4-Oct-06 15:01
lakshmi_sri4-Oct-06 15:01 
AnswerRe: datetime Pin
Edbert P4-Oct-06 16:39
Edbert P4-Oct-06 16:39 
AnswerRe: datetime Pin
Eric Dahlvang5-Oct-06 5:11
Eric Dahlvang5-Oct-06 5:11 
When you insert into the table, use getdate() as the value for the DateCreated field:
insert into mytesttable (MyDateField) values (getdate())

Or, to make a default value of the current datetime, in design view in the Enterprise Manager type (getdate()) in the Formula field for the table.

Or, when you create the table in the Query Analyzer, do it this way:
CREATE TABLE [MyTestTable] (
    [IDColumn] [int] IDENTITY (1, 1) NOT NULL ,
    [DateCreated] AS (getdate())
) ON [PRIMARY]



--EricDV Sig---------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters

QuestionQuery Builder to make stored procedures? Pin
eggsovereasy4-Oct-06 10:43
eggsovereasy4-Oct-06 10:43 
Questiontext , ntext datatypes ( PLEASE HELP ) Pin
abdelhameed814-Oct-06 9:22
abdelhameed814-Oct-06 9:22 
AnswerRe: text , ntext datatypes ( PLEASE HELP ) Pin
Mark Salsbery4-Oct-06 10:44
Mark Salsbery4-Oct-06 10:44 
GeneralRe: text , ntext datatypes ( PLEASE HELP ) Pin
abdelhameed814-Oct-06 21:51
abdelhameed814-Oct-06 21:51 
GeneralRe: text , ntext datatypes ( PLEASE HELP ) Pin
Mark Salsbery5-Oct-06 6:26
Mark Salsbery5-Oct-06 6:26 
AnswerRe: text , ntext datatypes ( PLEASE HELP ) Pin
Jerry Hammond5-Oct-06 4:20
Jerry Hammond5-Oct-06 4:20 
QuestionDelete Row Count Pin
Skanless4-Oct-06 9:21
Skanless4-Oct-06 9:21 
AnswerRe: Delete Row Count Pin
Edbert P4-Oct-06 16:45
Edbert P4-Oct-06 16:45 
QuestionColumn Length Pin
Guinness4Strength4-Oct-06 7:50
Guinness4Strength4-Oct-06 7:50 
AnswerRe: Column Length Pin
Mark Salsbery4-Oct-06 10:56
Mark Salsbery4-Oct-06 10:56 
GeneralRe: Column Length Pin
Guinness4Strength4-Oct-06 11:00
Guinness4Strength4-Oct-06 11:00 
GeneralRe: Column Length Pin
Mark Salsbery4-Oct-06 11:49
Mark Salsbery4-Oct-06 11:49 
QuestionMs access and Scope identity Pin
Vipin.d4-Oct-06 2:12
Vipin.d4-Oct-06 2:12 
AnswerRe: Ms access and Scope identity Pin
Alaric_4-Oct-06 19:45
professionalAlaric_4-Oct-06 19:45 
QuestionProblem in Implementing DataAccess Mechanism Pin
Jay_se4-Oct-06 0:45
Jay_se4-Oct-06 0:45 
AnswerRe: Problem in Implementing DataAccess Mechanism Pin
Jay_se5-Oct-06 19:04
Jay_se5-Oct-06 19:04 
QuestionUrgent :: SQL Server Connection Problem Pin
harshActsw3-Oct-06 11:41
harshActsw3-Oct-06 11:41 

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.