Advertisement
|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| 04/22/2008 at 08:40AM PDT, ID: 23343365 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: |
create trigger icrmsubscriptionsv1_1 on crmsubscriptionsv1_1
after insert
as
begin
INSERT [Subscriptions].[dbo].[CRMSubscriptionsV1_NEW]([Order_Name], [Order_CreatedOn],
[Order_CustomerAccountName], [Order_OrderID], [Order_CustomerAccountID], [Order_CustomerContactID],
[Order_OurRef], [Order_Status], [Order_AuthenticationType], [Order_IP_low1], [Order_IP_high1],
[Order_IP_high2], [Order_IP_low2], [Order_IP_high3], [Order_IP_low3], [Order_ConcurrentLimit],
[Order_SubscriptionType], [OrderProduct_ServiceFrom], [OrderProduct_ServiceTo], [OrderProduct_Product],
[Product_GracePeriod], [Product_ModuleName], [User_ContactID], [User_AccountName], [User_AccountID],
[User_FullName], [User_LogonName], [User_Password], [User_EmailAddress], [Account_Addr_Line1], [Account_Addr_Line2],
[Account_Addr_Line3], [Account_Addr_City], [Account_Addr_Province], [Account_Addr_Country],
[Account_Addr_Postcode], [Order_OrderProductID], [Product_IsHitBased], [Order_HitsPurchased],
[Equipment_ID], [EquipmentGroup_Name], [Equipment_Name], [EquipmentGroup_ID], [Options_ID],
[Options_FullLifeBase], [Options_HalfLifeBase], [Options_CurrentValues], [Options_FutureValues],
[Options_HistoricalValues], [Options_LeaseRate], [Options_MarketRate], [Equipment_Manufacturer],
[Equipment_Type], [Equipment_Series])
SELECT i.[Order_Name], i.[Order_CreatedOn],
i.[Order_CustomerAccountName], i.[Order_OrderID], i.[Order_CustomerAccountID], i.[Order_CustomerContactID],
i.[Order_OurRef], i.[Order_Status], i.[Order_AuthenticationType], i.[Order_IP_low1], i.[Order_IP_high1],
i.[Order_IP_high2], i.[Order_IP_low2], i.[Order_IP_high3], i.[Order_IP_low3], i.[Order_ConcurrentLimit],
i.[Order_SubscriptionType], i.[OrderProduct_ServiceFrom], i.[OrderProduct_ServiceTo], i.[OrderProduct_Product],
i.[Product_GracePeriod], i.[Product_ModuleName], i.[User_ContactID], i.[User_AccountName], i.[User_AccountID],
i.[User_FullName], i.[User_LogonName], i.[User_Password], i.[User_EmailAddress], i.[Account_Addr_Line1], i.[Account_Addr_Line2],
i.[Account_Addr_Line3], i.[Account_Addr_City], i.[Account_Addr_Province], i.[Account_Addr_Country],
i.[Account_Addr_Postcode], i.[Order_OrderProductID], i.[Product_IsHitBased], i.[Order_HitsPurchased],
i.[Equipment_ID], i.[EquipmentGroup_Name], i.[Equipment_Name], i.[EquipmentGroup_ID], i.[Options_ID],
i.[Options_FullLifeBase], i.[Options_HalfLifeBase], i.[Options_CurrentValues], i.[Options_FutureValues],
i.[Options_HistoricalValues], i.[Options_LeaseRate], i.[Options_MarketRate], i.[Equipment_Manufacturer],
i.[Equipment_Type], i.[Equipment_Series]
FROM CRMSUBSCRIPTIONSV1_1,inserted I
WHERE CRMSUBSCRIPTIONSV1_1.PRODUCT_MODULENAME = i.PRODUCT_MODULENAME AND
CRMSUBSCRIPTIONSV1_1.ORDER_HITSPURCHASED = i.ORDER_HITSPURCHASED AND
CRMSUBSCRIPTIONSV1_1.USER_LOGONNAME = i.USER_LOGONNAME AND
CRMSUBSCRIPTIONSV1_1.USER_PASSWORD = i.USER_PASSWORD AND
CRMSUBSCRIPTIONSV1_1.ORDER_ORDERPRODUCTID = i.ORDER_ORDERPRODUCTID AND
NOT EXISTS
(SELECT * FROM CRMSUBSCRIPTIONSV1_NEW,inserted i WHERE
CRMSUBSCRIPTIONSV1_NEW.PRODUCT_MODULENAME = i.PRODUCT_MODULENAME
AND CRMSUBSCRIPTIONSV1_NEW.ORDER_HITSPURCHASED = i.ORDER_HITSPURCHASED AND
CRMSUBSCRIPTIONSV1_NEW.USER_LOGONNAME = i.USER_LOGONNAME AND
CRMSUBSCRIPTIONSV1_NEW.USER_PASSWORD = i.USER_PASSWORD AND
CRMSUBSCRIPTIONSV1_NEW.ORDER_ORDERPRODUCTID = i.ORDER_ORDERPRODUCTID)
end
|