Viewing 15 posts - 1 through 15 (of 19 total)
This is a simple example, and could be used if you know the phrase you are looking for. You could expand on it to be more dynamic. Others can chime...
March 2, 2016 at 3:06 pm
In the end I used the straight forward use of a temp table to use as a selection source to update my 2 tables.
Thanks for all the info. 🙂
December 6, 2011 at 8:17 am
Ninja's_RGR'us (12/5/2011)
amos-870870 (12/5/2011)
unfortunatly ether/or table that gets updated will remove them from the view.I'd still try repeatable reads in a single transaction... just out of curiosity ;-).
I have not used...
December 5, 2011 at 11:43 am
Ninja's_RGR'us (12/5/2011)
amos-870870 (12/5/2011)
You know what the problem was, I was using references that were outside SQLServerCentral.No sure what you mean by this?
What I mean is SQLServerCentral has a great community,...
December 5, 2011 at 11:34 am
unfortunatly ether/or table that gets updated will remove them from the view.
December 5, 2011 at 11:31 am
Yea I used the view because I thought maybe I could update the two tables that way.
You know what the problem was, I was using references that were outside SQLServerCentral.
December 5, 2011 at 11:28 am
Reverse the updates?? Is there some tactick you refer to?
This was done to 1 test record in a test DB before I unleashed it on my live DB, if that...
December 5, 2011 at 11:22 am
That to was suppose to be two in that post you quoted me on. I edited that post to reflect that.
Anyhow here are the results...
View or function 'view_set_DispInvNoComp' is not...
December 5, 2011 at 11:07 am
Complete is part of a different table that the rest of columns.
View or function 'view_set_DispInvNoComp' is not updatable because the modification affects multiple base tables.
December 5, 2011 at 11:04 am
I do believe this was the first thing I tried, but was under the impression that even in the view I still could not update to (* typo here, I...
December 5, 2011 at 10:53 am
so...
I guess how do I do that, subquery the second update at the end of the first?
December 5, 2011 at 10:34 am
I added the view to the previous post.
I ran this as a test, and the first update made its changes and the second one did not, so I pose the...
December 5, 2011 at 10:29 am
I suppose some code is in order.
This was the state of the code before the weekend.
View
ALTER view [dbo].[view_set_DispInvNoComp] AS
SELECT Dispatch.Dispatch, Dispatch.Invoice, Dispatch.RecDate, Dispatch.Complete, DispTech.Status, DispTech.Complete AS...
December 5, 2011 at 10:11 am
Given the information that is recorded it seems to me it would have been more usefull to store the datetime just as that datetime, not date with zero hours, and...
September 24, 2009 at 12:45 pm
This is why I need to combine the 2 fields. Unfortunatly this is a small time, industry specific database / software package. They split the time the way they did...
September 23, 2009 at 9:01 am
Viewing 15 posts - 1 through 15 (of 19 total)