Forum Replies Created

Viewing 15 posts - 226 through 240 (of 1,048 total)

  • RE: Which trigger should choose?

    Koen Verbeeck (8/26/2013)


    Regarding the script you posted (while I was typing my previous reply), you don't use the INSERTED or DELETED system tables. Those might come in handy.

    Can you please...

  • RE: Which trigger should choose?

    Koen Verbeeck (8/26/2013)


    You are trying to insert duplicates.

    Check the source data and your code to make sure you are not duplicating rows somewhere.

    even when I am doing any updation in...

  • RE: Which trigger should choose?

    For table CLCProcessUnitDetailsCompany which is blank right now..

    Create table CLCProcessUnitDetailsCompany

    (

    ProjectID int NOT NULL,

    ProsposalID int NOT NULL,

    SolutionID int not null,

    UnitID int NOT NULL,

    DevDateChanged DATETIME,

    QuotDateChanged DATETIME,

    ApprovalDateChanged DATETIME,

    AddedBy nvarchar(50),

    DateAdded datetime,

    ChangedBy nvarchar(50),

    DateChanged datetime,

    CONSTRAINT PK_CLCProcessUnitDetailsCompany...

  • RE: Which trigger should choose?

    Koen Verbeeck (8/26/2013)


    Regarding the script you posted (while I was typing my previous reply), you don't use the INSERTED or DELETED system tables. Those might come in handy.

    is it necessary...

  • RE: Which trigger should choose?

    Will this script work to accomplish my scenario?

    Create Trigger Trg_DeviationRequestDetails_Ins

    ON DeviationRequestDetails

    After INSERT AS

    BEGIN

    MERGE INTO CLCProcessUnitDetailsCompany T

    USING (SELECT drd.ProjectID, drd.ProposalID, drd.SolutionID,drd.UnitID

    FROM DeviationRequestDetails drd)S

    ON S.ProjectID = T.ProjectID AND

    S.ProposalID...

  • RE: Transaction Trio

    Good question to start Monday morning 🙂

  • RE: trying to match up two tables

    Oracle765 (8/22/2013)


    Hi Errland

    I have just actually posted a query regarding this.

    I have just done that but my query seems to return to many rows eg

    select count(*) from dbo.newtable

    returns...

  • RE: query returning to many rows

    you are getting so much rows because you are doing CROSS JOIN...

    I have modified your query, execute it and lemme know if you still find that issue-

    select n.*,d.category

    from newtable n

    JOIN...

  • RE: Search Value

    Thanks..

    I wil donwlaod it and work on it 😛

  • RE: Normal Forms and Data Integrity

    Danny Ocean (8/22/2013)


    Tough question for me. :blink:

    +1

  • RE: Fetch numeric values from string using SSIS

    you can write a stored procedure for this and then call that stored procedure using Execute Sql task component........

  • RE: Search Value

    Yes, its a bit complicated thing....

    I have around 1k procedures and if follow thats steps its going to be like a summer vacation home work 😛

  • RE: Result that matches all the values from a list

    John Mitchell-245523 (8/22/2013)


    Here you go. Obviously it doesn't return any rows for your sample data, but if it did, you could join back to A if you need the...

  • RE: Result that matches all the values from a list

    how are you passing value to the list...

    if you pass values to list in this manner list(2,5) then you can create a procedure for this...

  • RE: Argument data type datetime is invalid for argument 1 of substring function

    I have changed the query as per my understanding of the probleem...

    Please let me know if you faced any issue -

    ;WITH cte AS

    (

    select * from (SELECT

    distinct pehPaydate

    ,case Datepart(mm,pehPaydate)

    --eft(substring(pehPErcontrol,5,len(pehPErcontrol)),2)

    ...

Viewing 15 posts - 226 through 240 (of 1,048 total)