Viewing 15 posts - 421 through 435 (of 14,953 total)
You just need to get rid of the AS statements inside it.
CASE
WHEN column1 = 1 THEN 'column1'
ELSE ''
END
+ ' '
...
December 11, 2012 at 7:41 am
Is the IN list an input parameter of some sort, or is it hard-coded into the query? You weren't clear on that, but it's the deciding factor on how...
December 11, 2012 at 7:38 am
davoscollective (12/10/2012)
December 11, 2012 at 6:33 am
Ah. This is pretty much a Microsoft SQL Server site. Someone might happen along who could help, but it's not a high probability. You're probably better off...
December 11, 2012 at 6:15 am
If Merge is too slow on this, then Insert will almost certainly be too slow as well. Those are the two main options.
With either one, the usual way to...
December 11, 2012 at 6:13 am
Like this:
WHERE (@finclass = 1 AND p.finclass = @FinclassCategory OR @finclass != 1)
AND P.HOSPITAL = @HOSPITAL
December 10, 2012 at 9:50 am
Any particular reason to log it to a table, instead of just definining a view that queries the last hour of data?
Either way, you'll get most of your data out...
December 10, 2012 at 9:49 am
Steve Jones - SSC Editor (12/10/2012)
SQL Kiwi (12/9/2012)
I did not receive a notification for this post (or perhaps I didn't see it) so apologies for the late reply. ...
December 10, 2012 at 9:40 am
So far as I know, there's no such thing as a T-SQL HTML script, so I'm not entirely clear on what you're trying to do.
From what I do understand, you...
December 10, 2012 at 9:37 am
Replace the string expression with either a code object or a stored proceduring, depending on what you are trying to do with it.
December 10, 2012 at 9:23 am
How frequently does that maintenance plan run? Is it running while you're doing this?
December 10, 2012 at 7:35 am
When you were checking to make sure the databases weren't in use, how did you check that? sp_who2? Something else?
December 10, 2012 at 7:27 am
Merge with Output is a perfectly good way to do that.
Is there some specific reason you want to change to something else, or are you just trying to confirm that...
December 10, 2012 at 7:00 am
Here's a list of what you can track with triggers (DDL triggers, to be precise): http://msdn.microsoft.com/en-us/library/ms189871(v=SQL.90).aspx
Here's some data on Extended Events: http://msdn.microsoft.com/en-us/library/bb630354(v=SQL.105).aspx
As Gail mentioned, Extended Events are probably what you're...
December 10, 2012 at 6:58 am
Just to be clear: Are you using an AS400 to connect to a Microsoft SQL Server database? Or are you using some database product native to the AS400?
December 10, 2012 at 6:53 am
Viewing 15 posts - 421 through 435 (of 14,953 total)