Viewing 15 posts - 3,406 through 3,420 (of 5,588 total)
Bezan (9/2/2010)
- with more periods (>10) there is complete mess .... why?
- another test: periodlength = 30 ... also totally different results... why?
- have to figure out better way...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 2, 2010 at 7:04 am
Bezan (9/2/2010)
- have to figure out better way of getting numbers 1,2,3,4,... than as it is now from table
- Comumns name like 1-7 8-14 not...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 2, 2010 at 6:54 am
Ian Massi (9/2/2010)
Worst case, you practice your interview skills and that's not a bad thing at all.
So true. Interviews is one of those things that I'm always a little bit...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 2, 2010 at 6:39 am
irobertson (9/2/2010)
As an aside, I'd definitely be interested in seeing how the performance matches up on the interim disk write against the nested cte approach.
One thing that can be done...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 2, 2010 at 6:15 am
I would suggest you read this article Passing Parameters as (almost) 1, 2, and 3 Dimensional Arrays[/url]
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 2, 2010 at 5:56 am
simflex-897410 (9/1/2010)
Why didn't I just do that for only name since that's the only one we are interested in displaying first value only while leaving...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 2, 2010 at 5:52 am
Probably the easiest way would be for you to use the import wizard (right-click the database | Tasks | Import data). For the data source, select "Excel Source", and follow...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 1, 2010 at 9:35 pm
Neither SSIS nor the OpenRowset/OpenDatasource functions can do this... they all use the JET database engine, and all they do is manipulate data (insert, update, delete, select).
To do formatting, you...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 1, 2010 at 9:30 pm
Craig Farrell (9/1/2010)
WayneS (9/1/2010)
No problem.
At least is doesn't "end up tripping on the leap year for multiple year scenarios."
True, but neither does the mm one, just gotta deal with that...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 1, 2010 at 9:21 pm
I guess that would depend on the size of the drives. On the systems that we were getting just a couple of years ago, we were putting the binaries on...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 1, 2010 at 9:16 pm
Craig Farrell (9/1/2010)
simflex-897410 (9/1/2010)
Craig,The data was just dumped from mainframe to a .txt file and I just imported it to sql server db.
Nasty. Alright, quick fix. First, back...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 1, 2010 at 8:58 pm
Craig Farrell (9/1/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 1, 2010 at 8:52 pm
Okay Craig, how's this?
declare @DateToCheckAgainst datetime;
--SET @DateToCheckAgainst = DateAdd(day, DateDiff(day, 0, GetDate()), 0);
SET @DateToCheckAgainst = '20100822';
SELECT repeatID,
BeginDate,
...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 1, 2010 at 8:17 pm
Bezan (9/1/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 1, 2010 at 7:37 pm
Marcia Q (9/1/2010)
And just because I'm paranoid, I have marked on my calendar to double check this on November 7th. 🙂
I would not call this paranoid, but prudent. Always remember:...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 1, 2010 at 7:02 pm
Viewing 15 posts - 3,406 through 3,420 (of 5,588 total)