Viewing 15 posts - 1,876 through 1,890 (of 13,469 total)
just checking the obvious here:
what drive is this on? the string starts with a colon which is obviously invalid but might be an artifact of code obfuscation? or an actual...
March 20, 2015 at 6:24 am
well i'm betting that all the column names are aliases, right? the base tables don't have columns that have that pattern. in that case you can't alter the view without...
March 20, 2015 at 6:06 am
ZZartin (3/19/2015)
Trying to rely on regular...
March 19, 2015 at 3:32 pm
well, all the information's in the metadata;
here's something i use myself, where i check if there are any extended property descriptions as well.
does this get you started?
select
--objz.object_id,
objz.name As TableName,
ISNULL(tabz.value,'')...
March 19, 2015 at 8:48 am
still using sys.sql_expression_dependencies, this seems to work for me, but gives some falsepositives due to CTE names appearing in the dependancies as well.
i deleted some staging tables that i know...
March 19, 2015 at 5:25 am
The Tally Table is a reference to a single column table from 1 to {some large number}
the example shown only needs 8000 chars;
this was the origianl definition from years ago:
SELECT...
March 18, 2015 at 2:52 pm
well i doinked aroudn getting the data, but row number snot going to find consecutive montsh... here;s the data as a consumable post at least.
;WITH MyCTE([PERSON ID],[MONTH ORDERED],[Note])
AS
(
SELECT 'JD12345','4','' UNION...
March 18, 2015 at 1:16 pm
techzone12 (3/18/2015)
How to add one more condition that the table name ends with "Temp"I am trying to do an inner join, so far no success yet.
here's a full example:
select
...
March 18, 2015 at 12:58 pm
you can find every column namedDateStamp, and it's tablename (but it might be VIEWNAME !!) you can join to sys.tables and then sys.columns as instead
select
'delete from '...
March 18, 2015 at 12:19 pm
my shop is the opposite;
i never receive scripts that contain settings from developers. s
o i'd say since my default conection settings from SSMS will have those settings set at...
March 18, 2015 at 10:35 am
GilaMonster (3/18/2015)
Lowell (3/18/2015)
also, why not count(*)? it would be faster, i would think.
In this case it's unlikely to be faster as the column in the count is already in the...
March 18, 2015 at 7:04 am

there a nice softball of a suggested missing index right there.....i bet you could hit that one out of the park.
also, why not count(*)? it would be faster, i would...
March 18, 2015 at 5:27 am
watching this post for a better way; i couldn't figure out a way to cleanly edit a report programmaticly to change the datasourc.e
when i cleaned up this same issue(2005 to...
March 17, 2015 at 5:39 am
g.britton (3/16/2015)
What I especially <sarcasm>love</sarcasm> is students that post homework questions without making any attempt to solve the problem or even, apparently, work on it at all.
so true! i wonder...
March 16, 2015 at 1:29 pm
SQL doesn't have a concept of previous row, so you have to have a structure that supports being able to identify a row and some sort of row order explicitly.
here's...
March 16, 2015 at 1:02 pm
Viewing 15 posts - 1,876 through 1,890 (of 13,469 total)