Solved

How Do I Set The Default Value Of Date Time In SQL

Posted on 2013-05-10
4
362 Views
Last Modified: 2013-05-10
I am using Microsoft Sql Server Manage Studio Express  C to create another field to store the date that an entry is made, I have been trying to use now() like i used to to in Access but it didn't like it, so what do i do the get the long date format of mm,dd,yyyy HH:nn? or something close

MgmtStudioExp
0
Comment
Question by:mickeyshelley1
  • 2
4 Comments
 
LVL 25

Accepted Solution

by:
Lee Savidge earned 500 total points
ID: 39155853
getdate()
0
 
LVL 48

Expert Comment

by:PortletPaul
ID: 39155854
[in sql server] getdate() is the equivalent to now()

but I'm not familiar with that input form so I don't know what is expects/allows
0
 

Author Comment

by:mickeyshelley1
ID: 39155923
I tried getdate() but it timed out...
0
 

Author Closing Comment

by:mickeyshelley1
ID: 39156014
Your answer worked after i first saved the new field then cam back and modified it with the default value...Thank you very much
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL Server 2012 express 24 37
TSQL mapping detailed records to group records 9 51
Query to Add Late Tolerance 10 67
Update a summary table with values from detail records 6 25
I am showing a way to read/import the excel data in table using SQL server 2005... Suppose there is an Excel file "Book1" at location "C:\temp" with column "First Name" and "Last Name". Now to import this Excel data into the table, we will use…
When writing XML code a very difficult part is when we like to remove all the elements or attributes from the XML that have no data. I would like to share a set of recursive MSSQL stored procedures that I have made to remove those elements from …
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question