Viewing 15 posts - 3,841 through 3,855 (of 5,588 total)
This link is an excellent place to start.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 6, 2010 at 10:00 am
keyun (7/6/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 6, 2010 at 9:47 am
Be still, my heart!
Jeff's now teaching how to write a c.u.r.s.o.r.
:w00t:
(Who would have thought he would be able to even write one??? ;-):-P )
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 5, 2010 at 10:06 am
If I'm reading this correctly, you need a separate file for each day. If so, then it sounds like you need two basic steps:
1. Procedure to generate output file for...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 5, 2010 at 8:38 am
You can't reference a table by a variable. To get around this, you will have to use dynamic sql.
Something like:
declare @SqlCmd nvarchar(max)
set @SqlCmd = 'INSERT INTO #RowCounts(TableName,NumRows)
SELECT ''' + @TBL...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 5, 2010 at 8:33 am
jts_2003 (7/2/2010)
I'd like to see a...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 5, 2010 at 8:28 am
Since there's a bit of talk going on about topics to present and such, I'd like to get some input from some of the Threadizens...
I've been contemplating making a presentation...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 5, 2010 at 8:21 am
I have to admit ... I was looking at this and saying "What the heck???"
For all those interested, the latest version of the "DelimitedSplit8k" function can be found here.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 5, 2010 at 7:54 am
Steve Jones - Editor (7/1/2010)
What did I do?I'm not renewed now. And perhaps I won't be if PASS gets to weigh in.
Well, it DOES list you in it. Guess you're...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 2, 2010 at 7:32 am
NEAL-464478 (7/1/2010)
Is it possible to strip out DESTINATION field into three
Yes it is. However, the people that help out here are all un-paid volunteers, so please HELP US HELP...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 1, 2010 at 5:54 pm
KBSK (7/1/2010)
"The query has exceeded the maximum...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 1, 2010 at 11:19 am
Brandie Tarvin (7/1/2010)
Looks like I'm stuck with cursors still, but I'm well on my way to a solution.
Why are you still stuck with cursors? What else needs to be done...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 1, 2010 at 11:02 am
I couldn't get it to work with the "encoding" set, so I'll let you tackle that.
The rest of this shows you how to get those results:
declare @xml xml
--encoding="UTF-16"
set @xml...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 1, 2010 at 10:37 am
I think the idea of a persisted calculated column is a good idea. However, you will still need to use your function for that.
This may be a bit better. It...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 1, 2010 at 10:25 am
David in .AU (6/30/2010)
Only one thing to note, this stored proc is undocumented which means it may disappear suddenly after a service pack or in new versions.
Well, there is one...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 1, 2010 at 8:40 am
Viewing 15 posts - 3,841 through 3,855 (of 5,588 total)