Forum Replies Created

Viewing 15 posts - 391 through 405 (of 463 total)

  • RE: combine two tables

    You mean to say you need to merge these two tables, or join them?

    ---------------------------------------------------------------------------------

  • RE: Combining returned List of rows in a Where Clause using AND operator

    The subquery here is acting as an 'expression' and I think since this is returning more than one value, it can not be used as an expression. Query would throw...

    ---------------------------------------------------------------------------------

  • RE: Combining returned List of rows in a Where Clause using AND operator

    There could be ways to do this without the dynamic query also, but i can think of this at the moment,

    declare @wheresql nvarchar(max)

    declare @selectsql nvarchar(max)

    declare @sql nvarchar(max)

    Set @selectsql =...

    ---------------------------------------------------------------------------------

  • RE: Combining returned List of rows in a Where Clause using AND operator

    ( Profession= CASE when @Profession 0 then

    -- (select Profession from BK_TagSMS_Access

    ----select value from BK_TagSMS_ParameterSplit(@Profession,',')))

    @Profession

    else Profession end)

    AND

    Not sure if I understood your requirement correctly but if this part of...

    ---------------------------------------------------------------------------------

  • RE: Need help for SQL query

    Paul White (9/7/2009)


    PP (9/7/2009)


    I just ran the script given by Paul completely, I was just trying to understand how thats happening.Thats it.

    I mean, there were 114 records with 2009 as...

    ---------------------------------------------------------------------------------

  • RE: Need help for SQL query

    Thanks Bob for the reply,

    I just ran the script given by Paul completely, I was just trying to understand how thats happening.Thats it.

    I mean, there were 114 records with...

    ---------------------------------------------------------------------------------

  • RE: Need help for SQL query

    Dear Paul,

    Can you please help me understand how this is happening? :hehe:

    SELECT count(*)

    FROM dbo.DateIndexTest -- returns 1000 records

    SELECT count(*)

    FROM dbo.DateIndexTest

    WHERE any_date_year = 2010...

    ---------------------------------------------------------------------------------

  • RE: Is there column level trigger in sql 2005

    Thanks GSquared 🙂

    yeah, snehal.gamaji.career should not be bothered about the value for which the trigger fires as long as the purpose is achieved unless there is any special reason why...

    ---------------------------------------------------------------------------------

  • RE: insert into

    Gianluca Sartori (9/3/2009)


    INSERT INTO TABLE1 select *, date_deleted

    from TABLE2

    Where KEY_ID In (Select KEY_ID From table3 Where Invoice_Num in (select Invoice_num from #TempDelete))

    I suggest that you replace the *...

    ---------------------------------------------------------------------------------

  • RE: Package hanging when running as a job

    Yes, I know its bit less elegant. Execute task should have worked! I dont know whats happening. Just to reproduce the problem, I tired to create execute task with my...

    ---------------------------------------------------------------------------------

  • RE: Package hanging when running as a job

    Anything that you could see in eventvwr?

    ---------------------------------------------------------------------------------

  • RE: Package hanging when running as a job

    sorry I am not sure exactly what could be the problem and could not reproduce it, but I do have similar setup where I do the zipping, I am using...

    ---------------------------------------------------------------------------------

  • RE: Package hanging when running as a job

    Is there a logging option in that zipping tool?

    ---------------------------------------------------------------------------------

  • RE: Package hanging when running as a job

    Scott (9/2/2009)


    The job step never completes so there's nothing in the history (apart from the stop job request I have to issue). The package runs in a couple of minutes...

    ---------------------------------------------------------------------------------

  • RE: Is there column level trigger in sql 2005

    GSquared (9/2/2009)


    create trigger dbo.NameStuff on dbo.MySourceTable

    after insert

    as

    set nocount on;

    insert into dbo.MyTargetTable (Name)

    select Name

    from inserted

    where Name is not null;

    It'll look something like that. If you select from the "inserted" table...

    ---------------------------------------------------------------------------------

Viewing 15 posts - 391 through 405 (of 463 total)