Viewing 15 posts - 3,811 through 3,825 (of 4,820 total)
Actuallly Chris, that's already been tried, and it returns the entire database worth of stuff - at least according to the OP, anyway.
ChrisM@Work (8/14/2014)
SELECT *
INTO...
August 14, 2014 at 10:01 am
Have you tried using a variable to contain the EXEC statement? Also, what results are you getting or not getting? Any errors ?
EDIT: Hold the phone......
August 14, 2014 at 9:40 am
I guess that will teach me not to trust older MS articles. I don't mess with triggers often, and I personally wouldn't set a trigger on a view,...
August 14, 2014 at 9:28 am
sgmunson (8/14/2014)
August 14, 2014 at 8:58 am
Change each LEFT OUTER JOIN to an INNER JOIN, from my final query (not your modified version), one at a time, in order from topmost to bottommost, testing the result...
August 14, 2014 at 8:48 am
I think you just need to take the point of view of the trigger. Triggers operate with tables, but can fire off of a view, so the INSERTED...
August 14, 2014 at 8:26 am
Gentlemen,
You can all argue the merits, or lack thereof, of SSMS all day long, but it's not going to help anyone with anything. There ARE some facts that...
August 14, 2014 at 8:03 am
Okay, I got to it sooner. Try this:
WITH OFFICES AS (
SELECT 'KBE ANR' AS OFFICE_CD, 'BELGIUM' AS COUNTRY_DSC UNION ALL
SELECT 'KBE ZEE', 'BELGIUM' UNION ALL
SELECT 'KEU ANR','BELGIUM' UNION...
August 14, 2014 at 7:15 am
Okay.... I'll need to refactor the query by moving the table order around and see what I can come up with. Give me a couple hours as...
August 14, 2014 at 6:50 am
Have you checked the tables to be sure those fields still have the names that the article was using? That article looked kind of old, and the field...
August 13, 2014 at 3:39 pm
I fail to understand what the discomfort level is with CTEs. It's kind of like having a subquery, but just that it appears BEFORE the rest of the query...
August 13, 2014 at 12:47 pm
Something is obviously not right if you're getting those errors. However, without knowing exactly what you have typed into SSMS, we have no way to know what the...
August 13, 2014 at 11:50 am
faisalfarouqi (8/13/2014)
[font="Comic Sans MS"]Thanks! sgmunson for looking into it. I'll try the index option but the key is quite compley and will utilize a heck lot of space and then...
August 13, 2014 at 10:17 am
Indeed, 9 million rows is an awful lot of data. Also, even assuming the report still has to exist, your execution plan is suggesting an index creation that...
August 13, 2014 at 9:00 am
Former post content:
Attachment is no good...
Current post content:
Never mind... I did it wrong...
Sorry, folks....
August 13, 2014 at 8:34 am
Viewing 15 posts - 3,811 through 3,825 (of 4,820 total)