Viewing 15 posts - 44,671 through 44,685 (of 59,063 total)
My favorite trick to resolving most of the problems stated in this thread is to do a pre-aggregation in a Temp Table and go from there. It limits performance...
March 9, 2009 at 6:09 pm
t.walker (3/9/2009)
The basic point here is 'if it broke don't fix it'. If it is broken...
March 9, 2009 at 5:59 pm
jparker2 (3/9/2009)
It can be...
March 9, 2009 at 4:41 pm
Chris Morris (3/9/2009)
Jeff Moden (3/7/2009)
March 9, 2009 at 4:34 pm
Yep... no need for the extra column...
SET @bcpcommand = 'bcp "SELECT ''"''+title,forename,surname,pafad1,pafad2,pafad3,pafad4,pafad5,pafad6,postcode,urn,emailaddress from ASHLEY.DBO.tablename" queryout c:\work\ashtest.txt -f c:\work\bcpformatfile.fmt -T'
March 9, 2009 at 4:29 pm
arasan_lotus (3/9/2009)
actually I am new in sqlserver,
EXEC JPCFHONYVLDATA..xp_CmdShell 'Dir C:\'
when i execute above code ,I got "Could not locate entry in...
March 9, 2009 at 4:24 pm
Bob Hovious (3/9/2009)
March 9, 2009 at 4:18 pm
GSquared (3/9/2009)
Grant Fritchey (3/9/2009)
All right! Lynn is turning into one of those old school saints who wades in & beats the snot out of the unbelievers.
That is too funny! ...
March 9, 2009 at 4:16 pm
If we can't get this bugger up and running in short order, we'll do the QUOTENAME thing for the export so we don't have to mess with the Format file......
March 9, 2009 at 6:19 am
Heh... dammit... I didn't test it and I forgot about that little nuance... My humble appolgogies...
Here's a new BCP Format file with no "skips"...
9.0
12
1 SQLCHAR 0...
March 9, 2009 at 6:17 am
Yow... sorry Flo... "OP" can mean either "the Original Poster" or the "Original Post" depending on how it's used in a sentance. And, it can also be a bit...
March 8, 2009 at 6:38 pm
I don't mind so long as MS stops deprecating stuff... that's a bloody killer.
March 8, 2009 at 6:35 pm
Heh... dangit, Andrew... you beat me to it. 🙂
March 8, 2009 at 6:30 pm
The "+1100" indicates the time zone of the date. You may have to substract that as a number of hours and minutes from the date and that will give...
March 8, 2009 at 6:28 pm
IF EXISTS(Select 1 from t_Names where id = 1234)
BEGIN
Select isNull(fName, 'N/A') from t_Names where id = 1234
END
ELSE
BEGIN
...
March 8, 2009 at 6:22 pm
Viewing 15 posts - 44,671 through 44,685 (of 59,063 total)