Viewing 15 posts - 4,996 through 5,010 (of 7,614 total)
There's no really good way to do that because it's so difficult. A db could be referenced by a linked server or by a 3-part name contained in dynamic...
July 6, 2015 at 5:16 pm
Yeah, you could do that, but it's rather bizarre. What would the day before's activities have to do with today?
July 2, 2015 at 11:15 am
Again, check this DMV:
sys.sql_expression_dependencies
July 1, 2015 at 3:49 pm
A table that doesn't exist is a different issue, because SQL's deferred name resolution allows that, but not invalid/missing column names.
The other thing to try would be dmv:
sys.sql_expression_dependencies
July 1, 2015 at 3:31 pm
Here's a quick cross-tab example specific to your situation:
SELECT D.PersonID,
MAX(CASE WHEN D.Activity = 'Woke Up' THEN D.ActivityTime END) AS WakeUpTime,
MAX(CASE WHEN D.Activity...
July 1, 2015 at 2:52 pm
You didn't get an error because a bit column will treat any value greater than 1 as 1, so SQL converted the "2" to a 1.
July 1, 2015 at 2:48 pm
Try running:
sp_refreshsqlmodule or
sp_refreshview
on potentially affected objects.
You should get errors on the object(s) that now reference unknown columns.
July 1, 2015 at 2:46 pm
Jeff Moden (6/30/2015)
GilaMonster (6/30/2015)
Jeff Moden (6/30/2015)
June 30, 2015 at 7:44 pm
You can add a file to tempdb if you need to. Or explicitly expand an existing file(s) yourself.
Be extremely careful if/when trying to modify, or drop, existing objects in...
June 30, 2015 at 7:38 pm
Sean Lange (6/30/2015)
Jacob Wilkins (6/30/2015)
Based on what I've tested, Scott is technically correct. Under the right conditions, even where it...
June 30, 2015 at 7:11 pm
You'll probably need to use ROW_NUMBER() for now:
;WITH CTE_sales AS (
SELECT
date_created, sales,
...
June 29, 2015 at 11:07 am
Jeff Moden (6/26/2015)
ScottPletcher (6/26/2015)
Sean Lange (6/26/2015)
ScottPletcher (6/25/2015)
GilaMonster (6/25/2015)
Nolock hints, do you know what they do? (hint, they don't make queries faster)
Why does everyone keep repeating that?
Scott you have been...
June 27, 2015 at 10:32 pm
Sean Lange (6/26/2015)
ScottPletcher (6/25/2015)
GilaMonster (6/25/2015)
Nolock hints, do you know what they do? (hint, they don't make queries faster)
Why does everyone keep repeating that?
Scott you have been around sql long...
June 26, 2015 at 4:22 pm
Jeff Moden (6/25/2015)
ScottPletcher (6/25/2015)
sgmunson (6/25/2015)
ScottPletcher (6/25/2015)
GilaMonster (6/25/2015)
Nolock hints, do you know what they do? (hint, they don't make queries faster)
Why does everyone keep repeating that? Of course NOLOCK hints...
June 26, 2015 at 2:10 pm
sgmunson (6/25/2015)
ScottPletcher (6/25/2015)
GilaMonster (6/25/2015)
Nolock hints, do you know what they do? (hint, they don't make queries faster)
Why does everyone keep repeating that? Of course NOLOCK hints make queries run...
June 25, 2015 at 2:20 pm
Viewing 15 posts - 4,996 through 5,010 (of 7,614 total)