Viewing 15 posts - 10,036 through 10,050 (of 14,953 total)
I think you can do that right in SSIS, but what I've done in the past is insert each into a separate "holding table", then use a query with the...
April 8, 2009 at 2:37 pm
A useful trick to Begin...End blocks, is indent everything inside them by one tab. Helps you see the flow and make sure that you actually get where you need...
April 8, 2009 at 2:36 pm
Are they something that needs to be run by a user, or would a scheduled job be a better option?
April 8, 2009 at 2:31 pm
I would be more inclined to document on a company intranet. I like to use wiki software for that kind of thing, with DBAs, sys admins, etc., having write-access...
April 8, 2009 at 2:29 pm
Split them off so each has its own table, with just the nvarchar and an ID column. Otherwise, you might have trouble with the other columns.
I'll ask Steve to...
April 8, 2009 at 2:23 pm
select right('0' + cast(datepart(hh,getdate()) - 12 as varchar(2)), 2)
Try that.
April 8, 2009 at 2:20 pm
george sibbald (4/8/2009)
Manie Verster (4/8/2009)
DBA's have the assumption that all developers are bad for a database or bad SQL programmers.that's a common assumption about DBA's in itself Manie 🙂
Nah....
April 8, 2009 at 2:19 pm
andrew gothard (4/8/2009)
GSquared (4/8/2009)
Robert Frasca (4/8/2009)
GSquared (4/8/2009)
April 8, 2009 at 2:08 pm
andrew gothard (4/8/2009)
Manie Verster (4/8/2009)
April 8, 2009 at 2:06 pm
While I'm assuming this is a homework problem, and I normally don't help with those, this was interesting enough that I couldn't stop myself. 🙂
You have a number of flow-of-logic...
April 8, 2009 at 1:58 pm
They're just displaying it differently. 00:00:00.000 is 12 AM (midnight). The difference doesn't matter.
April 8, 2009 at 1:47 pm
I'd say you need a lookup table that stores what date you want "Q1" to turn into. Would that be 1 Jan, 31 Mar, something else? With a...
April 8, 2009 at 12:59 pm
I'm not sure what you mean. Are you looking at the data in SSIS? If so, how?
April 8, 2009 at 12:55 pm
Cool biz. Always good to defeat one of these ones that looks daunting at first, isn't it?
April 8, 2009 at 12:54 pm
Yeah, I took it at face value. I still don't understand what this has to do with leading zeroes, like the title.
April 8, 2009 at 12:52 pm
Viewing 15 posts - 10,036 through 10,050 (of 14,953 total)