Viewing 15 posts - 2,716 through 2,730 (of 3,480 total)
I was waiting for Jeff Moden to answer, but since he hasn't yet, you might want to read his article:
http://www.sqlservercentral.com/articles/T-SQL/94570/
or
Or maybe one by Dwain Camps
https://www.simple-talk.com/sql/performance/the-performance-of-traversing-a-sql-hierarchy-/
December 31, 2014 at 4:42 pm
That's what I suspected. Then I can just filter the Territory dimension with the appropriate year and be off to the races.
Thanks!
December 31, 2014 at 1:10 pm
Doing things like you describe is not uncommon with date dimension/calendar tables in a data warehouse. Then you can do pretty much any kind of date-related query really easily.
December 31, 2014 at 12:10 pm
Yeah, until the defense turns up the pressure... then he'll hurry and throw some interceptions like he always does.
December 31, 2014 at 10:35 am
Just throwing this out there, but what if you do something like
UNPIVOT to convert the dates in the column names to rows,
join to the Calendar table to get week numbers...
December 30, 2014 at 11:45 pm
Once you have the DelimitedSplit8K function in your database, you can do something like this:
SELECT test.ID
, test.value
, split.ItemNumber
, Item = split.Item
FROM
(SELECT 1 AS ID,'1' AS Value
UNION ALL
SELECT 2,...
December 30, 2014 at 6:33 pm
Hard to believe you don't have alerts set up so that this doesn't happen. Scary. Maybe you need to update your resume....
Maybe read this: http://www.sqlserver-expert.com/2012/05/manage-database-files-and-file-groups.html
See the section that...
December 30, 2014 at 12:36 pm
I was being serious when I said that's how you learn. Try, test, fail, read, try... if you aren't willing to do that, then pay someone to help...
December 30, 2014 at 11:11 am
That's how you learn. Try, fail, modify... hit F1, read Books Online, try again.
DECLARE @NewPath VARCHAR(100) = 'C:\Dir\Subdir\File.xml';
DECLARE @sqlstring VARCHAR(200) = 'SELECT * FROM OPENROWSET(BULK ' + '''strFileName'', SINGLE_CLOB)';
SET...
December 29, 2014 at 8:17 pm
Can you use Conditional Split to divide the dataset -- so that you get the match/no match and then handle there?
Katie and Emil are really good at this kind of...
December 29, 2014 at 3:11 pm
So create a column in your base query that grabs the first three characters of the string, and then base your summary query on it.
December 29, 2014 at 1:31 am
The video on YouTube is handy too... just so you can watch someone do it.
December 28, 2014 at 11:34 pm
There's not much more to say that hasn't already been said. I did Access for a long time (and lots of VBA too), and moving to SQL Server takes...
December 24, 2014 at 4:49 pm
The only thing I can think of is that you have another object named "Report1" in the database. Otherwise it should work.
December 24, 2014 at 9:55 am
One way might be to read the names of all the files in the directory into a variable one at a time, then parse off the date into a date...
December 23, 2014 at 5:13 pm
Viewing 15 posts - 2,716 through 2,730 (of 3,480 total)