[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.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

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!

8.2

Trigger Not Working

Asked by matrix_aash in MS SQL Server

Hi All,

I am using the below trigger to insert new data from one table to another.

The logic behind the tirgger is as soon as new data is inserted into one table same data should be entered into second table

But for some particular reason as soon as the insert takes place trigger is not working.

Thanks.
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
[+][-]04/22/08 09:21 AM, ID: 21412693

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]04/22/08 09:22 AM, ID: 21412707

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]04/22/08 09:33 AM, ID: 21412832

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/22/08 09:34 AM, ID: 21412847

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/22/08 09:35 AM, ID: 21412857

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/22/08 09:38 AM, ID: 21412891

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/22/08 09:39 AM, ID: 21412904

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/22/08 09:41 AM, ID: 21412924

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/22/08 09:44 AM, ID: 21412957

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/22/08 09:44 AM, ID: 21412958

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/22/08 10:33 AM, ID: 21413486

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/22/08 11:01 AM, ID: 21413747

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/22/08 11:14 AM, ID: 21413851

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/22/08 11:34 AM, ID: 21414013

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/22/08 11:38 AM, ID: 21414061

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/22/08 11:43 AM, ID: 21414118

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/22/08 11:44 AM, ID: 21414132

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/22/08 11:53 AM, ID: 21414209

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/22/08 12:04 PM, ID: 21414319

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/22/08 12:31 PM, ID: 21414628

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MS SQL Server
Sign Up Now!
Solution Provided By: mark_wills
Participating Experts: 3
Solution Grade: A
 
 
 
Loading Advertisement...
20091111-EE-VQP-91 / EE_QW_EXPERT_20070906