Viewing 15 posts - 2,881 through 2,895 (of 3,011 total)
Project Life Cycle
1. Set delivery date.
2. Code until the day before the delivery date.
3. Do some half-assed testing.
4. If test results are good then go live else go live.
5. Declare...
March 29, 2007 at 9:01 pm
This wasn't an April Fool joke; we did this as a welcome back from vacation for a "friend".
We replaced the doorway of their cubical with a solid wall section so there was...
March 29, 2007 at 8:46 pm
If they do, it must not be very common. YYYY-MM-DD is the ISO standard.
select dateformat, count(*) from master.dbo.syslanguages group by dateformat
dateformat ---------- ----------- dmy 23 mdy 1 ymd 9
(3 row(s) affected)
March 27, 2007 at 6:59 pm
You have to make sure you get your personal priorities taken care of too. If you are just living to work, what’s the point?
They say that no one lays on...
March 22, 2007 at 8:57 pm
You still didn't say which values of value_a and value_b cause the problem.
March 22, 2007 at 7:26 am
What are the data types of value_a and value_b?
What values of value_a and value_b cause the problem?
March 21, 2007 at 12:08 pm
I prefer the "ignore them and let the server admins worry about it" approach.
If people with their own instance of SQL Server come to me with a problem, I tell them they installed it,...
March 21, 2007 at 9:52 am
The server probably has Internet Explorer Enhanced Security installed.
When the job runs, it pops up a dialog box to ask if you really want to run CSCRIPT. Since it is...
March 21, 2007 at 9:19 am
You can just take the database offline before starting the restore, and that will prevent connections.
alter database MyDatabase set offline with rollback immediate
March 20, 2007 at 8:43 am
You code does not work for days before 1900-01-01. Notice in the code below that it returns a Friday that is later than @mydate.
The code I posted works for any datetime...
March 19, 2007 at 9:34 am
This returns all Mondays from 2000-01-01 through 2010-12-31
select a.Date from -- Function F_TABLE_DATE available on this link -- http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=61519 dbo.F_TABLE_DATE ( '20000101','20101231' ) a where a.DAY_OF_WEEK = 2 order by a.Date
March 19, 2007 at 9:10 am
You can use the Start of Week Function, F_START_OF_WEEK, on this link:
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=47307
Or you can do it directly with this statment:
Select LastFriday = dateadd(dd,(datediff(dd,-53686,@MyDate)/7)*7,-53686)
You didn't say what you wanted if...
March 19, 2007 at 8:55 am
This question was posted on SQLTeam also, and I posted a similar answer there earlier today.
March 12, 2007 at 9:31 pm
Viewing 15 posts - 2,881 through 2,895 (of 3,011 total)