Viewing 15 posts - 196 through 210 (of 369 total)
These appear to be "exam" questions and not a current real-world problem.
November 19, 2008 at 6:58 am
I'll offer my thoughts on a CTE vs. derived table:
1. I'll continue to code CTEs as they are simplier and easier to maintain, along with being a bit "self...
November 13, 2008 at 6:44 am
Note: SQL Server 2005 SP2.
It just so happens that I'm coding a query for an application that was a prime candidate for a CTE as it had a complicated sub-query...
November 12, 2008 at 4:08 pm
ggraber (11/12/2008)
The articles John provided are comparing CTE to Temp Tables which is not a valid comparison.
I believe that the 1st article by Tony showed that the result set of...
November 12, 2008 at 9:14 am
It depends upon what you are doing. Performance can vary and in certain cases be worse. See the following postings by Tony Rogerson related to performance:
Edit: Spelling correction.
November 11, 2008 at 7:15 am
G² (11/6/2008)
That's a good point. I hadn't thought of the text specific functions.
Thanks,
Greg
Now you know why just performing an "ALTER TABLE" to change the data type could not be...
November 6, 2008 at 8:58 am
G² (11/6/2008)
November 6, 2008 at 8:42 am
Carla Wilson (11/6/2008)
JohnG (11/6/2008)
A data type change to a table is NOT a "workaround".
While I agree that a datatype change to an existing production table may not be a work-around,...
November 6, 2008 at 8:30 am
I agree with "J"!
Although I had selected "change the data type to varchar(max)" I removed it as the scenario had stated that no duplicates could be assumed. Therefore, the...
November 6, 2008 at 8:14 am
The sample provided was a syntax example. It would not work against your table. Refer to the Books Online (BOL) and adjust to your table name, column name,...
October 22, 2008 at 8:15 am
Read the syntax of the CONTAINS clause in the Books Online (BOL): http://technet.microsoft.com/en-us/library/ms187787(SQL.90).aspx
If you use a variable all terms, including the "OR", in the query specification must be placed in...
October 20, 2008 at 9:15 am
The best thing to do is to drop and recreate. This way, you'll be sure that everything is correct under SQL Server 2005.
You'll also get the opportunity to adjust/change...
September 23, 2008 at 7:08 am
If I do a query on the column using LIKE %% instead of CONTAINS will SQL Server use the full-text index?
Short answer: NO
Long answer: The SQL engine uses various words...
September 23, 2008 at 7:04 am
I had completely forgotten about this because I never declare more than one trigger for the same action. Frankly, I never really understood why people want to have multiple triggers...
September 5, 2008 at 3:18 pm
Hugo Kornelis (9/5/2008)
IF @@ROWCOUNT = 0 RETURN;
Do make sure that it's the very first line of...
September 5, 2008 at 1:01 pm
Viewing 15 posts - 196 through 210 (of 369 total)