Viewing 15 posts - 4,171 through 4,185 (of 5,588 total)
LOL! I should have known Paul would show a CROSS APPLY.
I HAVE to start thinking... can this be done with a CROSS APPLY? I just don't consider it.
I also...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 15, 2010 at 6:57 am
Instead of passing all those dates to the database to be added in one at a time, why don't you make a stored procedure and pass just the starting and...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 15, 2010 at 6:50 am
see http://msdn.microsoft.com/en-us/library/ms186734.aspx
and http://www.sqlservercentral.com/articles/T-SQL/69717/
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 15, 2010 at 12:20 am
lmu92 (5/14/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 14, 2010 at 11:01 pm
krenshau (5/14/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 14, 2010 at 10:45 pm
Try this link.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 14, 2010 at 10:20 pm
Jeff Moden (5/14/2010)
You've already gotten at least one "wrong" answer for your question. Do you know why? Read the article at the following URL to find out...http://www.sqlservercentral.com/articles/Best+Practices/61537/
Since you're...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 14, 2010 at 10:08 pm
elutin (5/14/2010)
SELECT *
FROM (SELECT ROW_NUMBER() OVER (PARTITION BY PropID
ORDER BY LatestApptDate desc ) AS PARowNumber
,PrevApptID
...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 14, 2010 at 10:04 pm
I like Manu's suggestion.
Doing something like this, deleting large # of records without affecting up-time or users, is one of the few things that are best done in a loop,...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 14, 2010 at 6:50 pm
GilaMonster (5/14/2010)
I'm feeling just a little bit sarcastic this friday night...http://www.sqlservercentral.com/Forums/Topic922329-146-1.aspx
I think it was just right, Gail!
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 14, 2010 at 3:32 pm
Here's two methods to accomplish this:
-- See how you start off by actually creating a table
-- and then inserting the data into it? Doing this really
-- makes things a...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 14, 2010 at 3:29 pm
Stefan Krzywicki (5/14/2010)
Maybe if there were another page that lists more of the...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 14, 2010 at 2:31 pm
Check out ROW_NUMBER().
And read my article[/url] on how to use the row_number ranking function.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 14, 2010 at 2:02 pm
Mine is similar to Goldie's. Main difference is that the IncidentType column has the desired text (instead of the column name), and it is sorted according to the sort order...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 14, 2010 at 12:17 pm
WayneS (5/12/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 13, 2010 at 8:46 pm
Viewing 15 posts - 4,171 through 4,185 (of 5,588 total)