Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
cullyK
Starting Member
5 Posts |
Posted - 2007-02-07 : 04:04:28
|
I have a stored procedure that i don't want to run on a friday or a saturday, so i need to find out what day of the week it is.I guess i start out by getting todays date but is there then a function to get the day of the week from the dateThanks in advance |
|
harsh_athalye
Master Smack Fu Yak Hacker
5581 Posts |
Posted - 2007-02-07 : 04:06:00
|
[code]select datename(weekday, getdate())[/code]Harsh AthalyeIndia."The IMPOSSIBLE is often UNTRIED" |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2007-02-07 : 07:48:19
|
if you are scheduling your stored procedure with SQL Agent you can control which day to run KH |
|
|
|
|
|