Viewing 15 posts - 4,876 through 4,890 (of 5,588 total)
CirquedeSQLeil (1/12/2010)
is250sp (1/12/2010)
WayneS (1/12/2010)
Is there any particular reason for going this method - specially since there is a way further on down that...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 12, 2010 at 10:37 am
Thanks for letting us know how you decided.
Is there any particular reason for going this method - specially since there is a way further on down that is faster, and...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 12, 2010 at 10:02 am
GilaMonster (1/12/2010)
... and lions don't wander the streets.
very often...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 12, 2010 at 9:53 am
DECLARE @test varchar(50)
SET @test = '{FFFFFFFF-0000-0000-0000-000000000463}'
PRINT REPLACE(REPLACE(@test, '{', ''), '}', '')
PRINT SubString(@test, 2, len(@test)-2)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 12, 2010 at 9:50 am
First, I took your supplied data and put it into a format that is readily consumable by all of us volunteers here (take a look at the first link in...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 12, 2010 at 9:46 am
Cumberland, VA (west of Richmond VA);
Grew up in Virginia Beach, VA
Currently working in Hampton, VA
@Gus: in Tampa? My Mother-in-law is in Brandon. Guess I'll have to look you up...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 12, 2010 at 9:13 am
UPDATE TableA
SET ColumnA = '2009.' + ColumnA
WHERE ColumnA = '51'
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 12, 2010 at 9:10 am
UnionAll (1/12/2010)
from varchar to datetime.
What i am trying to acheive is,...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 12, 2010 at 8:59 am
How about some table definitions and sample data in the form of CREATE TABLE and INSERT statements so that we can better see what is going on? Also, what constitutes...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 12, 2010 at 8:47 am
JOIN to the CUSTOMER table ON bo.cust_d LIKE CUSTOMER.cust + '%'
This will match to the customer table where the cust_d starts with the customer cust field.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 12, 2010 at 8:45 am
I'd recommend a two-step approach...
1. split the string into the comma-separated portion into a column in a temp table
2. split the column with the dash-separated columns
You might want to take...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 12, 2010 at 8:20 am
CirquedeSQLeil (1/11/2010)
WayneS (1/11/2010)
...PS. Jason - just how do you go about embedding the execution plans inside the messages? I've seen you do this many times...
Wayne,
set statistics xml on
Or Click show...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 12, 2010 at 7:57 am
CirquedeSQLeil (1/11/2010)[hrWayne, I found a really slow point in your second script (the million records). The table population stuff. You will probably notice throughout the site that there...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 12, 2010 at 7:45 am
Good feedback Jeff.
Probably not random enough, but I changed the 5 initial rows (abc xxxxx, etc.) to be:
1st row: abc 1,
2nd row: zyx 100,
3rd row: def 10000,
4th row: ghi 1000000,
5th...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 11, 2010 at 9:17 pm
Okay, after playing around with this for a bit, I came up with a solution that does just a single scan.
Part 1: build the test environment. This builds a test...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 11, 2010 at 6:54 pm
Viewing 15 posts - 4,876 through 4,890 (of 5,588 total)