Viewing 8 posts - 1 through 9 (of 9 total)
Ok.....
I've edited the test data to include another transaction for the same 'Facility_id' (In the live data there would be 100's of Facility_ids with multiple transactions)
The test data include the...
January 17, 2011 at 6:35 am
Well it did and it didnt? The only issue i discovered when i ran it against the full datset was the final record for each "Facility_ID" didnt get an update!!!...
January 17, 2011 at 2:31 am
Jeff,
Thanks for the information about UPDATE queries only updating a row once, I never realised this but now everything makes sense.
Looks like i'll be writting a loop and firing off...
January 17, 2011 at 1:25 am
Yes it does work, cant beleive I missed the '=' in your original reply..
Just out of curiosity why doesnt between work?
Thanks again, i'll try this on the whole dataset as...
January 14, 2011 at 9:59 am
In my head the column is updated with a 2 initially then its overwritten with a 3 when the next line of data is pulled down from the update query!
Try...
January 14, 2011 at 9:43 am
Thanks for your help, i hope all this works....
-- this table is the one that needs updating.....
CREATE TABLE [dbo].[test_days](
[facility_id] [varchar](20) COLLATE Latin1_General_CI_AS NULL,
[in_date] [datetime] NULL,
[mhsection] [varchar](50) COLLATE Latin1_General_CI_AS NULL
) ON...
January 14, 2011 at 9:21 am
Thanks for the reply,
Yep i've tried that and i get the same result, its almost like ignores the previous row as its just been updated?
I've used this type of query...
January 14, 2011 at 8:36 am
Thanks Stewartc,
The SSIS route worked fine, its just a pain I have to create a package for every load. I'm guessing there's no way to do this via the import/export...
July 13, 2010 at 6:32 am
Viewing 8 posts - 1 through 9 (of 9 total)