Viewing 15 posts - 4,246 through 4,260 (of 5,588 total)
Lynn Pettis (4/29/2010)
WayneS (4/29/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 29, 2010 at 1:55 pm
CirquedeSQLeil (4/29/2010)
800TB is mouth watering. It would be quite the learning opportunity.
Indeed it would be. And he did spell out Terabyte.
Maybe the OP has been off watching the db...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 29, 2010 at 1:28 pm
If I can solve it, then it definitely doesn't take a guru to solve this. Though they can probably make it more efficient.
-- See how this starts off with a...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 29, 2010 at 1:14 pm
Makes you wonder... Here, the OP (with 1800+ points) can't pull apart two simple nested cursors with 5 subqueries in that last nest into some reasonable code. And here, he...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 29, 2010 at 12:08 pm
This code uses an in-frequently used form of the UPDATE statement. Read the article mentioned in the code, and understand it (especially the rules) before putting this code into a...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 29, 2010 at 11:51 am
Grant Fritchey (4/29/2010)
ricardo_chicas (4/29/2010)
I just did the Update statistics and retrieve the ten million rows is two minutes, so I am happy nowThanks to all of you
Ah, so the FULL...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 29, 2010 at 11:25 am
ps. (4/29/2010)
Many thanks for the script Wayne. This took 5 ms on a database where as the earlier one took 1 min 17 secs.
Hmm, 77 secs / .005 sec =...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 29, 2010 at 9:46 am
Gail - welcome back... hope your break refreshed you!
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 29, 2010 at 9:35 am
D.Oc (4/29/2010)
My bet is on GB's not TB.
Especially singe "G" is right under "T" on the keyboard...
Edit: but then again, he did write out "Terabytes" in the first post...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 29, 2010 at 9:12 am
This does it without cursors.
SELECT [User] = su.name,
[Table] = so.name,
[select] = IsNull(max(case when sp.action =...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 29, 2010 at 5:29 am
Ian Yates (4/28/2010)
Now if only they'd do one for FoxPro....... 🙂 (we link to a number of third party systems that use FoxPro databases)
You do know...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 28, 2010 at 9:17 pm
ninel,
First, thanks for supplying the DDL and DML to create some test data... that helps!
Can anyone please help me with a query that can pull the value of the CurrentTalk...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 28, 2010 at 9:13 pm
Duplicate post. Please post responses at at the other post.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 28, 2010 at 9:08 pm
Marv-1058651 (4/28/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 28, 2010 at 2:18 pm
You know, the people that help out here are all un-paid volunteers. Providing the DDL scripts (CREATE TABLE, CREATE INDEX, etc.) for the tables affected, and INSERT statements to put...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 28, 2010 at 2:08 pm
Viewing 15 posts - 4,246 through 4,260 (of 5,588 total)