Viewing 15 posts - 316 through 330 (of 429 total)
To avaid loading one file until you clear or process the data in staging table you can use following statement. This will not be possible if you use bcp from...
June 22, 2005 at 6:42 am
Thanks Michael. Let me wait for Vasc's solution fine tuning before making this to C#.
June 22, 2005 at 5:58 am
Use a staging table while loading.
If you are using bcp from command prompt it would be difficult to make sure when one process is running just not to start...
June 21, 2005 at 8:47 pm
Thank You all. Especially Vasc. I had to leave early for Dr's Appt.
Vasc with this change
SELECT @MinValue=SUM(Value) FROM MyTable WHERE Col<=@Pos
SELECT @MinValue=SUM(Value) FROM MyTable WHERE Col<
June 21, 2005 at 8:39 pm
Thank You Vasc 263 is fixed with that.
Any value that needs to compute with max value returns blank.
June 21, 2005 at 2:29 pm
Yes Remi I got it with
SELECT SUM(value) FROM [MyTable] WHERE COL < 20
Question to Vasc
Can we ignore this tw steps as I make sure The table queried will not have...
June 21, 2005 at 1:37 pm
Sorry Vsac I am really embarrassed since still I did not get your logic and just testing your code. So I am bothering you again to fine tune.
For 88 and...
June 21, 2005 at 1:26 pm
Thanks Vsac. It works cool for most cases now. I think it needs little fine tuning as
For 1206 it gives two hundreds(We have one in the table).
ADD :...
June 21, 2005 at 12:52 pm
Thanks Noel. I would do it by any means either in SQL or Front END through whatever I Can. Still I am totally lost with the logic to do that....
June 21, 2005 at 12:45 pm
Thanks Vasc. It will take a while for me to get this logic.
But When I tried this
DECLARE @myAmount NUMERIC(12,2) SET @myAmount = 500 -- SET THIS VALUE AS VALUE TO...
June 21, 2005 at 12:39 pm
No need to write the format files for entire 50 fileds. You have to mention poition of the column and column names you have to load. Just play around with...
June 21, 2005 at 11:39 am
Micael if you can post te VB code that would be great. I need the first matched value not all of them. I can do that at client side.
If...
June 21, 2005 at 10:53 am
You would want to use Format Files -f"FormatFileName"
Use Host file field order and Server column order, Name to specify the order and data.
June 21, 2005 at 10:44 am
Vasc I did that Algoritham First (See the code) It Fails if the values are apart in scatered 3 places. It works for consecutive #s great
IF (SELECT SUM(Value) FROM @Values)...
June 21, 2005 at 10:35 am
If you meant the values yes Same values can repeat.
Out of 20 we can remove all the values that exceeds the Input value so that would reduce 20 to some...
June 21, 2005 at 10:23 am
Viewing 15 posts - 316 through 330 (of 429 total)