Register
Login
Register
Login
Search
Home
Applications
Content Management System
Custom DNN Modules
Business Directory
Restaurant Menu Manager
Custom Database Reporting
Distributor Locator
Gift Certificates
Date Time Calculator
Consulting
Design
Surveillance Systems
Business Links
Support
Knowledge Base
Contact
Stored Procedures
Support
/
Knowledge Base
/
Microsoft SQL Server
/
Stored Procedures
Snippets
Current Articles
|
Archives
|
Search
05
Alter Table - Setting a Column Default Value
DNN Expert
posted on December 05, 2012 04:36
ALTER TABLE MyTableName ADD CONSTRAINT DF_MyTableName DEFAULT GETDATE() FOR MyColumnName
Posted in:
SQL Scripts
Actions:
E-mail
|
Permalink
|
Comments (0)
Related Articles
Replace Null or Empty Value with String
Select ISNULL(NULLIF(GIBS_FBLineItems.ReportType, ''), '--Undefined--') as ReportType from GIBS_FBLineItems
Formatting a Short Date in SQL using Convert Function
To format a short date like MM/DD/YY try the following: select CONVERT(VARCHAR(8), GETDATE(), 1) as MyShortDate For a complete guide to&nb...
Comments
There are currently no comments, be the first to post one!
Post Comment
Only registered users may post comments.
Archives
Azure (1)
C Sharp - C# (37)
..private void function() (11)
CraigsList (0)
CSS (15)
DNN (56)
..Modules (21)
....Core Modules (6)
....Custom Modules (33)
..Resource Links (2)
..Skin Objects (2)
..Social (1)
DNS (0)
E-Mail (3)
IIS (3)
Malware (1)
Microsoft SQL Server (17)
..Azure SQL Database (1)
..SQL Scripts (15)
..SQL Server 2008 R2 (11)
..SQL Server 2014 (1)
..Stored Procedures (6)
Networking Problems (7)
Operating Systems (1)
..Windows 7 (3)
..Windows Server 2003 (1)
..Windows Server 2008 (2)
..Windows Server 2012 (2)
..Windows Vista (2)
..Windows XP (4)
PCI DSS Compliance (1)
SSRS (1)
Technology (138)
VbScript (3)
Web Design (7)
Web.Config (5)