Viewing 15 posts - 4,156 through 4,170 (of 5,588 total)
athatipamula (5/24/2010)
can any one rewrite the code using sub queries?
I am using 2 databases and 2 different tables
here is the code:
SELECT [MODE],[NUMBER],[DESCRIPTION],[UNITSIZE]
FROM [database1].[DBO].[table1]...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 24, 2010 at 6:58 pm
The Dixie Flatline (5/21/2010)
I think "unique" should count twice or not at all. You can have unique clustered indexes and...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 22, 2010 at 8:45 pm
About 3 weeks ago, I was doing some research on a related topic and found that this answer is wrong. I had asked Steve to change this question then.
This QotD...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 21, 2010 at 11:20 am
Jack Corbett (5/19/2010)
Quiet in here today. Everyone at 24 HOP?
Yep... I took the week off, and among all the chores I had a list of 13 sessions I wanted...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 20, 2010 at 8:08 am
Here's an approach that is similar to the one Lutz posted. As he did, it's based off of tally table.
Main differences are that you can specify the number of rows...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 19, 2010 at 12:55 pm
Slight modifications to the solution already provided by ColdCoffee, in order to show with the field name you specified. And a way to eliminate the case statement.
DECLARE @YOUR_TABLE TABLE
(
...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 19, 2010 at 12:24 pm
Rob Schripsema (5/18/2010)
Nice tweak, Jeff. Not perfect -- won't allow for years prior to 2000 (and I, for one, have a birthday before 2000 :hehe:) -- but a definite improvement.
Perfectly...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 18, 2010 at 7:57 pm
Trey Staker (5/18/2010)
CirquedeSQLeil (5/18/2010)
Steve,I like the change to the headlines section on the front page.
Agreed, it's a nice change.
Yes, it looks VERY nice!
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 18, 2010 at 7:53 pm
CirquedeSQLeil (5/18/2010)
Is Wayne out there changing his name?
LOL.
Actually, I found that avatar on a post out here on SSC... but the poster hadn't been active in quite some while. Might...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 18, 2010 at 7:51 pm
I would be interested in your solution to this also!
Thanks!
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 18, 2010 at 6:51 am
gary.mazzone (5/18/2010)
I got it right but since when is a Dynamic Management View a table?
I agree with you Gary... it's a view (albeit into a system table).
And with Carlo also......
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 18, 2010 at 6:43 am
You know, the people that help out here are all un-paid volunteers, so please HELP US HELP YOU. Providing the DDL scripts (CREATE TABLE, CREATE INDEX, etc.) for the tables...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 17, 2010 at 4:50 pm
simflex-897410 (5/17/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 17, 2010 at 3:09 pm
The Dixie Flatline (5/17/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 17, 2010 at 2:31 pm
Paul White NZ (5/15/2010)
My normal optimisation trick for triangular joins will not work here.
[CuriousMode]
Care to share this trick with us? Might be able to learn something new...
[/CuriousMode]
oh wait... is it...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 16, 2010 at 9:57 am
Viewing 15 posts - 4,156 through 4,170 (of 5,588 total)