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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Shubham KumarRank #621 · 3.8K reputationPosted Feb 23, 2016, 6:52 PM EST
(
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.
Shubham KumarRank #621 · 3.8K reputationPosted Feb 18, 2016, 7:44 PM EST
Shubham KumarRank #621 · 3.8K reputationPosted Feb 21, 2016, 6:59 PM EST
CultureInfoChandu KumawatRank #1,449 · 1.1K reputationPosted Feb 18, 2016, 8:16 PM EST
Satish Patel81 reputationPosted Feb 21, 2016, 3:42 PM EST
Satish Patel81 reputationPosted Feb 23, 2016, 3:35 PM EST
Satish Patel81 reputationPosted Feb 24, 2016, 4:17 PM EST