Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Not null constraint

This is a discussion on Not null constraint within the SQL Server forums, part of the Databases category; What would you use to place a not null constraint on a column? If the column is left blank on insertion, it should display a custom error message. 1. Rule ...

Go Back   Geeks Talk > Databases > SQL Server
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

SQL Server SQL Server is a Database Management System(DBMS) by Microsoft

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-17-2007
Expert Member
 
Join Date: Feb 2007
Posts: 1,279
Thanks: 0
Thanked 192 Times in 154 Posts
Geek_Guest has a spectacular aura aboutGeek_Guest has a spectacular aura aboutGeek_Guest has a spectacular aura about
Not null constraint

What would you use to place a not null constraint on a column? If the column is left blank on insertion, it should display a custom error message.

1. Rule
2. CHECK Contstraint
3. Triggers
4. Alter the table so that the column does not allow null
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-17-2007
Moderator
 
Join Date: Jun 2007
Location: Bangalore,India
Posts: 1,853
Thanks: 9
Thanked 168 Times in 142 Posts
debasisdas has a spectacular aura aboutdebasisdas has a spectacular aura about
Re: Not null constraint

Alter the table so that the column does not allow null

and write a trigger to display custom eror message.
Reply With Quote
  #3 (permalink)  
Old 10-17-2007
Expert Member
 
Join Date: Apr 2007
Location: Bangalore
Posts: 515
Thanks: 29
Thanked 63 Times in 61 Posts
susarlasireesha will become famous soon enough
Re: Not null constraint

Alter the table so that the column does not allow null..
Reply With Quote
Reply

  Geeks Talk > Databases > SQL Server

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
null pointer vasundhara.jagdale C and C++ 1 07-23-2007 01:38 AM
Oracle Null and Unique value Subashini.Ramasamy Oracle 3 06-16-2007 09:13 AM
Built-in and plugin stages, Chaning Null to Not Null and Types of lookup Geek_Guest Data Warehousing 0 04-06-2007 04:48 AM
Constraint based loading and incremental aggretation Geek_Guest Data Warehousing 0 04-06-2007 04:46 AM
Check Constraint christia SQL 2 07-30-2006 07:16 PM


All times are GMT -4. The time now is 04:38 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved