Viewing 15 posts - 1,891 through 1,905 (of 5,588 total)
Grant Fritchey (1/17/2011)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 17, 2011 at 9:10 am
How's this?
-- See how you start off by actually creating a table and then
-- inserting the data into it? Your doing this makes it a lot easier
-- for all...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 15, 2011 at 12:11 am
How's this?
DECLARE @Holiday TABLE (HolidayId int identity(1,1) primary key, HolidayDate DateTime)
INSERT INTO @Holiday(HolidayDate) VALUES('7/4/2011')
INSERT INTO @Holiday(HolidayDate) VALUES('12/24/2011')
INSERT INTO @Holiday(HolidayDate) VALUES('12/25/2011')
INSERT INTO @Holiday(HolidayDate) VALUES('12/31/2011')
INSERT INTO @Holiday(HolidayDate) VALUES('8/11/2011') --* Yea,...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 14, 2011 at 11:57 pm
However, the core (shared) components would be at the highest SP level.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 14, 2011 at 7:34 pm
Paul,
Hmm, I don't recall seeing that before. It definitely is good stuff.
I'll have to run some tests to see if there is a length restriction - could turn out to...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 14, 2011 at 7:33 pm
Change:
(select row_number() over (order by name) as id, name + ',' + salesnumbers from thetable;
to
(select row_number() over (order by name) as id,
...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 13, 2011 at 3:45 pm
LutzM (1/13/2011)
Expanding Waynes code:
Thanks Lutz!
@dandenson - in the first post, you had your expected results encased in single quotes; in your subsequent post you took them out. That whole replace...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 13, 2011 at 2:38 pm
dandenson (1/13/2011)
First, I'm trying to learn/understand this. I get that ItemNumber comes from the DelimitedSplit8K function...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 13, 2011 at 2:34 pm
Did you build it properly? You might want to check out the article The "Numbers" or "Tally" Table: What it is and how it replaces a loop. [/url]
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 13, 2011 at 2:06 pm
At this point, I'm not sure. How about posting everything in the SSIS_Errors table for the last run only? There might be other messages in there that will give us...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 13, 2011 at 12:59 pm
How's this?
declare @test-2 varchar(100);
set @test-2 = '''jack'',''25,A67,91J''';
WITH CTE AS
(
SELECT *
FROM dbo.DelimitedSplit8K(@test, ',')
)
SELECT UserName = CTE1.Item, SaleNumber = Replace(CHAR(39) + CTE2.Item + CHAR(39), CHAR(39)+CHAR(39), CHAR(39))
FROM CTE CTE1
...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 13, 2011 at 12:53 pm
Are you specifying the instance name in the servername fields?
If you're using an alias - is it set up with the instance name?
That error sounds like something we saw dealing...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 13, 2011 at 12:43 pm
If you're doing differential backups, be careful. VSS will invalidate the last full backup, and the differentials will fail. (Found out the hard way when differentials starting failing... investigation found...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 13, 2011 at 12:38 pm
Stefan Krzywicki (1/13/2011)
I wonder how many kids these days actually have tiddlywink sets.
I just wonder how many of you kids know what tiddlywink sets are! :w00t:
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 13, 2011 at 12:33 pm
LutzM (1/13/2011)
Any of the Threadizens interested in a performance tuning project in the Los Angeles area? Drop me a PM.
You're in the LA area? I thought you were in Germany!
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 13, 2011 at 12:00 pm
Viewing 15 posts - 1,891 through 1,905 (of 5,588 total)