Viewing 15 posts - 28,246 through 28,260 (of 39,771 total)
Please don't cross post.
The Monthname function will get you the month name, you can use datepart to extract the others, and then concatenate the strings together (CASTing required for the...
June 10, 2008 at 7:11 am
Once you have the month, you might need to use the Monthname function to get the full name. Look up date functions in Books Online.
June 10, 2008 at 7:10 am
The subquery allows you to find the date you want, the correlation does it for each client.
It's the way I'd do it as well.
June 10, 2008 at 7:09 am
Assuming you have downtime, you need to have both sets of storage visible to the server. This would allow you to "detach" and attach" the databases.
- You would "detach" the...
June 10, 2008 at 5:49 am
It will support quite a few, mainly dependent on you storage hardware. There's no good answer to this question as the type of query, complexity, indexing, as well as hardware...
June 10, 2008 at 5:48 am
I think there's a way to do this with a trace flag or registry setting.
June 9, 2008 at 7:54 am
The problem is that you update the table, the transaction was written to the Tlog, then a minute or two later, it was truncated, and so the data is lost.
Doing...
June 9, 2008 at 7:53 am
Not a bad idea. We'll talk about it next week.
June 7, 2008 at 2:42 pm
My first guess is that you've got a query or process that runs periodically, maybe something someone kicks off, that kills the server. Maybe a long cross join.
I'd run Profiler,...
June 6, 2008 at 11:13 am
That sounds strange.
Can you capture a simple example, save off the two plans and attach them?
June 6, 2008 at 11:12 am
I don't think you can in SS2K. Quite a bit of that information wasn't exposed at all in SQL 2000, so without a debug version, not sure it's capture-able.
One of...
June 6, 2008 at 11:11 am
I think they don't matter as much. In '97 or '98, you could get an MCSE and be assured of a job (almost) making $50k. A lot in those days....
June 6, 2008 at 11:07 am
That's something I point out in interviews.
I don't know everything, but I usually know where to find it. Either a resource online or a person I can ask.
June 6, 2008 at 11:03 am
I'd start with a variable,
declare @start datetime.
Set that to be the "date" of a year ago using Dateadd. Use months, -12.
Then in your WHERE clause, use the variable.
June 6, 2008 at 11:02 am
Viewing 15 posts - 28,246 through 28,260 (of 39,771 total)