Click here to Skip to main content
15,893,337 members

Comments by Member 9320578 (Top 9 by date)

Member 9320578 9-Jun-16 14:07pm View    
I tried this but nothing happens

AFTER UPDATE
AS
SET NOCOUNT ON;
UPDATE si
SET QuoteNumber = a.QuoteNumber
FROM dbo.AccountInfo a
INNER JOIN inserted t ON t.ShippingIdentity = a.ShippingIdentity
INNER JOIN dbo.ShippingInfo si ON si.ShippingIdentity = t.ShippingIdentity
Member 9320578 9-Jun-16 13:00pm View    
Thanks for your reply. I got it to stop putting the same QuoteNumber for all the records but it is still putting the QuoteNumber in it's own row instead of where the ShippingIdentity match

ALTER TRIGGER ShippingQuoteNumber
ON ShippingInfo
after UPDATE
AS
BEGIN

UPDATE ShippingInfo SET QuoteNumber = a.QuoteNumber
FROM AccountInfo a
INNER JOIN inserted t ON t.ShippingIdentity = a.ShippingIdentity
END
Member 9320578 9-Jun-16 12:45pm View    
When I used the UPDATE it changed all the records in the ShippingInfo table to the same QuoteNumber instead of just the record where ShippingIdentity == QuoteNumber on the same record.

ALTER TRIGGER [dbo].[ShippingQuoteNumber]
ON [dbo].[ShippingInfo]
FOR INSERT
AS
BEGIN

UPDATE ShippingInfo SET QuoteNumber = a.QuoteNumber
FROM AccountInfo a
INNER JOIN inserted t ON t.ShippingIdentity = a.ShippingIdentity
END
Member 9320578 6-Jun-16 22:01pm View    
Now User is show something wrong with it. Message says: Cannot Access non-static property 'User' in static context
Member 9320578 6-Jun-16 19:33pm View    
Deleted
I have another issue I was wondering if you could help with? Someone offered a solution but it not what I'm trying to do, or I just not seeing it right. This is the link: http://www.codeproject.com/Questions/1104742/Im-trying-to-redirect-user-to-page-depending-on-ro I'm trying to go directly to a page depending on the role as soon as I click the login button.