Login
Login
Search
Design
Consulting
DNN Apps
Content Management System
Custom DNN Modules
Business Directory
Restaurant Menu Manager
Custom Database Reporting
Distributor Locator
Gift Certificates
Date Time Calculator
Screenshot Gallery
TimeTracker
Surveillance Systems
Business Links
Support
Knowledge Base
Contact
Knowledge Base
Support
/
Knowledge Base
Snippets
Current Articles
|
Archives
|
Search
05
Alter Table - Setting a Column Default Value
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...
Post Rating
1
2
3
4
5
Comments
There are currently no comments, be the first to post one!
Post Comment
Only registered users may post comments.
Categories
Azure (2)
C Sharp - C# (38)
..private void function() (11)
CSS (16)
DNN (60)
..Modules (21)
....Core Modules (6)
....Custom Modules (36)
..Resource Links (2)
..Skin Objects (2)
..Social (1)
E-Mail (3)
IIS (3)
Malware (1)
Microsoft SQL Server (17)
..Azure SQL Database (2)
..SQL Scripts (16)
..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 (2)
Technology (139)
VbScript (3)
Web Design (7)
Web.Config (5)
Archives
2024 (12)
2023 (1)
2022 (1)
2021 (2)
2020 (16)
2019 (11)
2018 (8)
2017 (14)
2016 (14)
2015 (4)
2014 (26)
2013 (11)
2012 (15)
2011 (30)
2010 (157)