How to restrict a table updation on weekend(like table can't be update in Saturday and sunday)
in sql server 2008.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Shubham KumarPosted Feb 23, 2016, 11:52 PM
(
P_Id int IDENTITY (1,1),
DayOfTheWeek varchar(255) NOT NULL CHECK (DayOfTheWeek<>'Sunday' and DayOfTheWeek<>'Saturday'),
FirstName varchar(255),
Address varchar(255),
City varchar(255)
)
SELECT * FROM Test_
INSERT INTO Test_ VALUES ('sunday','ABC','AAM','BJP')
The statement has been terminated.
Satish PatelPosted Feb 24, 2016, 9:17 PM
Satish PatelPosted Feb 23, 2016, 8:35 PM
Shubham KumarPosted Feb 21, 2016, 11:59 PM
CultureInfoSatish PatelPosted Feb 21, 2016, 8:42 PM
Chandu KumawatPosted Feb 19, 2016, 1:16 AM
Shubham KumarPosted Feb 19, 2016, 12:44 AM