Forum Replies Created

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

  • RE: SQL code issue

    Welsh Corgi (8/3/2011)


    Do you know what DDL and sample data is?

    No actually my English is not good neither are my SQL skills...I do know what a stored procedure is though...

  • RE: SQL code issue

    pwalter83 (8/3/2011)


    John Mitchell-245523 (8/3/2011)


    OK, I think we've come as far as we can without your providing any table DDL and sample data. Please post the former in terms of...

  • RE: SQL code issue

    John Mitchell-245523 (8/3/2011)


    OK, I think we've come as far as we can without your providing any table DDL and sample data. Please post the former in terms of CREATE...

  • RE: SQL code issue

    John Mitchell-245523 (8/3/2011)


    Iulian -207023 (8/3/2011)


    or instead of :

    ARRIVAL_SCHEDULE_DT <= dateadd(mm, 3, getdate())

    you can use this condition too:

    datediff(mm, ARRIVAL_SCHEDULE_DT, getdate()) <= 3

    Iulian

    I would advise against doing that, since it would make...

  • RE: SQL code issue

    John Mitchell-245523 (8/3/2011)


    Something like this?

    SELECT <column list>

    FROM MyTable

    EXCEPT

    SELECT <column list>

    FROM MyTable

    WHERE PORT_CD = 'BEZEE'

    AND ARRIVAL_SCHEDULE_DT < dateadd(mm, 3, getdate())

    John

    I hope this would explain it better. Below are the conditions...

  • RE: SQL code issue

    Dwayne Dibley (8/3/2011)


    WHERE PORT_CD = 'BEZEE'

    AND ARRIVAL_SCHEDULE_DT < = dateadd(mm, 3, getdate()

    Thanks for your reply but I hope it was that easy. Actually the thing is I need to...

  • RE: Using trigger to execute an SSIS job

    Kiara (7/26/2011)


    pwalter83 (7/26/2011)


    GSquared (7/26/2011)


    SSIS can't access the data inside the trigger. Nothing except the trigger can do that. That's why you'll need to stage the data into a...

  • RE: Using trigger to execute an SSIS job

    GSquared (7/26/2011)


    SSIS can't access the data inside the trigger. Nothing except the trigger can do that. That's why you'll need to stage the data into a table that...

  • RE: Using trigger to execute an SSIS job

    GSquared (7/26/2011)


    pwalter83 (7/26/2011)


    steveb. (7/26/2011)


    You can setup one-way transactional replication.

    Also I don't see how running an SSIS packages is any more secure..

    this is really ridiculous, i specifically mentioned above that...

  • RE: Update, Insert or delete data from table on another server

    Gianluca Sartori (7/26/2011)


    Did you register the linked server?

    I have a couple of questions now based on your question :

    1. Does the other server need to be registered ?

    2. How do...

  • RE: Update, Insert or delete data from table on another server

    Gianluca Sartori (7/26/2011)


    This should do:

    Select *

    Into #TempA

    From TB_ARTICLE

    Where ARTICLE_ID not in (Select ARTICLE_ID from remote_server_name.database_name.schema_name.TB_ARTICLE)

    EXEC('USE database_name; set identity_insert TB_ARTICLE on') AT remote_server_name

    Insert into remote_server_name.database_name.schema_name.TB_ARTICLE

    Select * From #TempA

    Hope this helps

    Gianluca

    Hi Gianluca,

    Thanks...

  • RE: Update, Insert or delete data from table on another server

    Gianluca Sartori (7/26/2011)


    Looks like a good place for replication.

    Have you checked that option?

    Actually this option has been discussed before and rejected by the IT support team here due to some...

  • RE: Using trigger to execute an SSIS job

    steveb. (7/26/2011)


    You can setup one-way transactional replication.

    Also I don't see how running an SSIS packages is any more secure..

    this is really ridiculous, i specifically mentioned above that the only...

  • RE: Using trigger to execute an SSIS job

    Elliott Whitlow (7/25/2011)


    I walked through this thread and have to agree that a trigger to do this is a particularly bad design choice. Now I know you said that...

  • RE: Using trigger to execute an SSIS job

    GSquared (7/25/2011)


    What business problem are you trying to solve?

    Even though you may not know a better solution, it's likely someone does. Knowing the underlying problem will give insight into...

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