Viewing 15 posts - 48,931 through 48,945 (of 59,102 total)
The header must have exactly the same delimiters as the 2nd row which must match all the other rows, or BCP will give you that error and the 2nd row...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 5, 2008 at 10:13 pm
Amit Chaudhary (8/5/2008)
I think I am asking this question in the right forum.
THe configuration on my server is TCPIP Enabled, Named Pipes Enabled. The order of SQL Native CLient Protocols...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 5, 2008 at 10:10 pm
How many rows are you talking about copying? I'm thinking that you don't actually need the WHILE loop because of the explicit transaction you've declared. Use set based...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 5, 2008 at 10:04 pm
Gareth (7/31/2008)
I was asked to investigate the possibility of table partitioning by a developer.
I used a 7 gig...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 5, 2008 at 10:00 pm
And, if you don't mind, tell us why it has to be a dynamic column name. 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
August 5, 2008 at 9:57 pm
Index... maybe a partitioned table, to boot.
--Jeff Moden
Change is inevitable... Change for the better is not.
August 5, 2008 at 9:54 pm
Or... you can beat the crud out of a string anyway you like... 🙂 CREATE FUNCTION dbo.udf_Extract
/*******************************************************************************
Purpose:
========
Removes unwanted characters from a string.
Notes:
======
Possible inclusive values...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 5, 2008 at 8:41 pm
Atif Sheikh (8/5/2008)
I executed your script and, surprisingly, got an error. One of my databases was in the recovering status and raised error on that database.
So I altered your...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 5, 2008 at 8:12 pm
Heh... couldn't resist, Barry.
Hey! Are you going to PASS this year? Sure would like to do some 12 oz. curls with ya someday. Bring your helmet so...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 5, 2008 at 8:10 pm
Very cool, Jacob! Thanks for taking the time to test it and other methods, as well! 🙂
I wish I could take the credit for the code,...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 5, 2008 at 8:06 pm
meichner (8/5/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
August 5, 2008 at 7:03 pm
Jacob Luebbers (8/5/2008)
Jeff Moden (8/5/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
August 5, 2008 at 6:46 pm
CrazyMan (8/5/2008)
There are 10 indices out of which one is clustered, no trigger, does this affect deleting???
The clustered one is the easy one for deletes... the other 9 are add...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 5, 2008 at 6:16 pm
rbarryyoung (8/5/2008)
Jack Corbett (8/5/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
August 5, 2008 at 6:10 pm
Jack Corbett (8/5/2008)
Also mine does take advantage of a undocumented (by MS) procedure that could change or disappear so using sys.databases and the dynamic SQL is probably better.
Heck... I wouldn't...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 5, 2008 at 5:50 pm
Viewing 15 posts - 48,931 through 48,945 (of 59,102 total)