Viewing 15 posts - 16 through 30 (of 32 total)
April 27, 2015 at 5:46 am
Jeff Moden (4/26/2015)
You're seriously aware of one of the more famous Pseudo-Cursors there is... a SELECT that uses a Tally Table.
When I first saw this type of usage I thought...
April 27, 2015 at 5:33 am
dwain.c (4/21/2015)
WITH Alphas AS
(
SELECT a
FROM (VALUES('A'),('B'),('C'),('D')) a (a) -- use 22 letters
),
Numbers AS
(
SELECT...
April 22, 2015 at 8:55 am
Wayne West (4/17/2015)
Jeff Moden (4/16/2015)
My greatest disappointment is that MS doesn't have a datetime conversion for Pig Latin. 😛
It's in Alpha testing right now and will release next year on...
April 17, 2015 at 9:02 am
Your table contains at least one row with either:
i) a non-digit after the first character in that column, or
ii) a column length less than 10.
If the second case, try...
April 16, 2015 at 9:23 am
The (very small) fly in the ointment is that the 114 date style code in the CONVERT function returns milliseconds preceded by a colon rather than a period (decimal point).
That's...
April 15, 2015 at 9:04 am
Michael Meierruth (5/28/2013)
Steven Willis (5/26/2013)
March 26, 2015 at 9:32 am
Solomon Rutzky (9/4/2014)
Jeff Moden (9/3/2014)
March 26, 2015 at 8:59 am
Thanks Grant, Gail
Unfortunately we're stuck on 2008 SP3 (not R2) so that trace flag (2371?) isn't available.
I think I'll have to schedule some UPDATE STATISTICS alongside our regular index reorg.
All...
March 25, 2015 at 6:29 am
There are ways to create or update a view without disturbing an existing version, but they involve using dynamic SQL to a greater or lesser extent.
If you're comfortable with that...
March 20, 2015 at 2:35 am
ALTER VIEW and CREATE VIEW need to be the first/only statements in a batch, so the IF..ELSE construct won't work here.
The usual way to do this is to drop the...
March 19, 2015 at 9:33 am
It's even safer to use "<> 0".
If @ConfigValue is a smallint, then when channel 15 is enabled the masked value of 0x8000 will be interpreted as a negative value.
March 18, 2015 at 4:12 am
If databases are being regularly dropped and restored, won't readcommitted access to their sys.filegroups view be blocked during those operations?
I'm sure your Profiler trace shows that queries on most databases...
March 5, 2015 at 9:11 am
I got bitten by the same problem a while ago, see MS Connect
It's nothing to do with cached temporary tables, just a "feature" of the way the query optimizer works.
The...
March 5, 2015 at 7:53 am
Google the (undocumented :ermm:) extended stored procedure xp_dirtree - Patrick Keisler has a useful blog post.
February 27, 2015 at 4:46 am
Viewing 15 posts - 16 through 30 (of 32 total)