Improve company productivity with a Business Account.Sign Up

x
?
Solved

How to Drop a NOT NULL constraint in SQL Server

Posted on 2006-07-07
1
Medium Priority
?
299 Views
Last Modified: 2008-01-09
I'm trying to drop a NOT NULL constraint off the S_TIME column. What am I doing wrong? Am I misreading syntax diagrams in my documentation?

alter table worktime alter column s_time NULL;

Thanks.
0
Comment
Question by:DataDesignIT
1 Comment
 
LVL 9

Accepted Solution

by:
nito8300 earned 200 total points
ID: 17058960
ALTER TABLE WORKTIME ALTER COLUMN S_TIME DATETIME NULL
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

This shares a stored procedure to retrieve permissions for a given user on the current database or across all databases on a server.
In this article, we will see two different methods to recover deleted data. The first option will be using the transaction log to identify the operation and restore it in a specified section of the transaction log. The second option is simpler and c…
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.
SQL Database Recovery Software repairs the MDF & NDF Files, corrupted due to hardware related issues or software related errors. Provides preview of recovered database objects and allows saving in either MSSQL, CSV, HTML or XLS format. Ensures recov…

595 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