Viewing 15 posts - 31 through 45 (of 131 total)
Just a minor point, but for a general solution my inclination would be to replace "SN" with "SN=" in the charindex. It's not beyond the bounds of possibility that...
April 22, 2013 at 2:55 am
Good point Phil. Probably neater to do it that way (and no need for any scripts).
April 19, 2013 at 6:18 am
Yes, but it will recalculate that connectionstring every time it uses it (i.e. every time round the loop).
Create a new variable User::FullOutputFileName (or whatever), and assign its value as:
RIGHT("0" +...
April 19, 2013 at 5:56 am
(and obviously make sure you've got Overwrite=False in the Flat File Destination properties - I think that the default is True).
April 19, 2013 at 5:39 am
The only way I can see you getting multiple files from that connectionstring is if it was taking more than a second to process each file. Each time you...
April 19, 2013 at 5:33 am
Are you getting multiple files with different times in the name, or are you getting a single file which is being overwritten each time round the loop?
April 19, 2013 at 5:08 am
What is the connectionstring set to in the connection manager for the output file? I can't see how you can get multiple files unless you're renaming dynamically during the...
April 19, 2013 at 4:57 am
I may be completely misunderstanding, but surely if you miss out the WHERE clause (and maybe replace it with "ORDER BY COUNT (A.N#OfAims)"), then this will give you all the...
April 5, 2013 at 10:44 am
It's a bit of a bodge and wouldn't work if your times stretched to hh:mm:ss rather than just mm:ss, but this does the trick.
order by convert(decimal(5,2),REPLACE(colname,':','.'))
April 5, 2013 at 10:39 am
Hugo Kornelis (4/2/2013)
April 2, 2013 at 6:00 am
Raghavendra Mudugal (1/31/2013)
(having known on the computed column but never used computed inside another computed column, so was not 100% sure if the answer was...
January 31, 2013 at 3:45 am
Toreador (11/15/2012)
There'd have been a few more wrong answers if it weren't for the "select 2" hint...
Given that the selections only add up to 188%, I don't think everyone's taken...
November 15, 2012 at 3:45 am
It's not the order that I was questioning, but the combination of string and identity. If it wasn't for the "feature" being highlighted, "Shovel" would be in there with...
September 5, 2012 at 3:26 am
A better supporting document/respected DBA is this blog posting by Steve Jones
It may just be an astounding coincidence, but the layout of Steve's example and the one in the...
August 31, 2012 at 2:54 am
I'm with Hugo on this one that it's a documentation bug on that page. It even states on the very first line of the BOL link provided (their emphasis)...
August 28, 2012 at 3:08 am
Viewing 15 posts - 31 through 45 (of 131 total)