Viewing 15 posts - 55,471 through 55,485 (of 59,098 total)
Like this...
SELECT CONVERT(CHAR(10),CAST('Mar 20 2007 3:57pm' AS DATETIME),111)
Of course, you would sub a couple of things to use against a table...
SELECT CONVERT(CHAR(10),CAST(yourdatestringcolumn AS DATETIME),111)
FROM yourtable
--Jeff Moden
Change is inevitable... Change for the better is not.
August 8, 2007 at 6:38 pm
That's actually a pretty good plan and I agree with that... nice to see someone to spend a little time up front to save wads later on.
--Jeff Moden
Change is inevitable... Change for the better is not.
August 8, 2007 at 6:12 pm
Exactly... (and great explanation, by the way)
I know that and you know that and even some other folks know that. And, you're absolutely...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 8, 2007 at 6:05 pm
1. Doesn't matter if the header doesn't have the same number of delimiters. BCP is picky that way.
2. That's because of what I said before... you must delimit the end...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 8, 2007 at 5:33 pm
Man, I gotta remember to check for those... ![]()
--Jeff Moden
Change is inevitable... Change for the better is not.
August 8, 2007 at 2:50 am
Not sure what you're calling a base table but the correct covering indexes will allow for full length table access using index seeks across all tables in a join. By...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 7, 2007 at 9:15 pm
Sorry Tomm... was just trying to lighten things up a bit. And, maybe I'm taking you the wrong way, but "flame war" about what? It takes two and I'm out...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 7, 2007 at 9:03 pm
Cool. Thanks for the feedback ![]()
--Jeff Moden
Change is inevitable... Change for the better is not.
August 7, 2007 at 6:26 pm
Heh... and it's true, too! ![]()
--Jeff Moden
Change is inevitable... Change for the better is not.
August 7, 2007 at 6:01 pm
First problem is the header record...
NEATCM|8.07.00|867850731
...which does not have the same number of delimiters as the other rows. Will always throw an error or cause a skip of the first...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 7, 2007 at 5:59 pm
Heh... I asked the same thing... and the answer is... crappola 3rd party software.
So, Mike, you never hardcode anything? ![]()
--Jeff Moden
Change is inevitable... Change for the better is not.
August 7, 2007 at 5:50 pm
Couldn't have said it better myself... thanks Steve. ![]()
--Jeff Moden
Change is inevitable... Change for the better is not.
August 7, 2007 at 5:30 pm
You're not... the DEL command is being executed by xp_CmdShell and the >> is just part of any command line as a redirection of output from whatever command is on...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 7, 2007 at 7:40 am
Wrong... correctly formulated covering indexes will be used no matter how much of the correct columns are used... this example uses 90 % of the data in two columns and...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 7, 2007 at 7:36 am
If you're users want real time data when they open the spreadsheet, don't export the data as an "Excel file"... create a spreadsheet that uses "External Data" from a view. ...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 7, 2007 at 7:21 am
Viewing 15 posts - 55,471 through 55,485 (of 59,098 total)