Viewing 15 posts - 2,221 through 2,235 (of 59,082 total)
Needed result: bcp "select id,name,Dept from [db].dbo.table1" queryout "G:\Test-Bak\Data\db_Load\table1.txt" -S"server" -U"sa" -P"password" -n -c -t^| -T -o"G:\Test-Bak\Log\db\table1_log.txt"
Lordy... and people wonder why their systems get hacked. 🙁
--Jeff Moden
Change is inevitable... Change for the better is not.
December 27, 2022 at 4:09 pm
@ Venugopal Saride,
I have to say that is IS a very interesting way to try to do this but I have to agree with Eirikur... It doesn't meet the promises...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 27, 2022 at 3:51 pm
@ Jonathan, Ken, and Steve,
Thank all 3 of you for lending and ear and basically confirming that this is actually a real booger of a problem. I really appreciate it,...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 27, 2022 at 3:23 pm
@ Steve Collins ,
Agreed and, except for RBAR or "Quirky Update" solutions, I'm not seeing a way to do this. This is also kind of like the "Bin Fill" problem. ...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 27, 2022 at 3:19 pm
@ Peter Larsson...
You've been popping up on some of the formula related posts that I've posted to and you're listed as a "follower". Any ideas/solutions here?
--Jeff Moden
Change is inevitable... Change for the better is not.
December 27, 2022 at 3:03 pm
@ken McKelvey. Thanks for looking and thanks for the confirmation in a couple of areas, here, Ken.
I've seen some mathematical magic in the past with "Gaps and Islands", which this...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 27, 2022 at 3:01 pm
p.s. Your "Group 2" is incorrect according to the requirements. Just to be sure, they're based on WHOLE days and the date span must be 5 days or less based...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 26, 2022 at 4:48 pm
What SQL did you use to solve it?
Ah... sorry. Like I said, I used the "Quirky Update" method, which allows variables to interplay with columns as each row passes,...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 26, 2022 at 4:43 pm
It sounds like the dynamic technique of using a CROSSTAB would fit the bill here. Have a look at the following article as an introduction and let me know...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 25, 2022 at 6:24 am
Yes and the Value field is varchar(02), it needs to hold "1", "2", or "NA".
It would save 2/3rds of the memory required if it could be a...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 25, 2022 at 1:42 am
Heh... Edge. Take a look at Task Manager when that puppy is open with even just 1 window.
--Jeff Moden
Change is inevitable... Change for the better is not.
December 25, 2022 at 1:29 am
Damn forum software ate my response due to paging... hopefully, this post will make it appear.
Yep... that did the trick.
--Jeff Moden
Change is inevitable... Change for the better is not.
December 24, 2022 at 10:35 pm
Yes and the Value field is varchar(02), it needs to hold "1", "2", or "NA".
It would save 2/3rds of the memory required if it could be a numeric 0,...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 24, 2022 at 10:27 pm
Sorry, you're right.
This is what the "base table" I have looks like.

There will be over 2 million IDs and each ID will have the same exact...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 24, 2022 at 9:42 pm
I mean I can on my last day and my last minute of my contract..........lol
😀 I'm just curious why the customer says they need this? This could be done...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 23, 2022 at 9:51 pm
Viewing 15 posts - 2,221 through 2,235 (of 59,082 total)