Forum Replies Created

Viewing 15 posts - 76 through 90 (of 134 total)

  • RE: MERGE Statement assistance

    Brilliant I think we both got there at the same time.

    It works now

    - thanks for your help.

    ________________________________________________________________________________________________
    Regards
    Steve
    SQL 2008 DBA/DBD - MCTS/MCITP

    Please don't trust me, test the solutions I give you before using them.

  • RE: Temp Table Column name or number of supplied values does not match table definition

    This is correct - additional columns were added for 2012 version.

    If you are creating Temp Tables - then they will need to be revisited for the results set to be...

    ________________________________________________________________________________________________
    Regards
    Steve
    SQL 2008 DBA/DBD - MCTS/MCITP

    Please don't trust me, test the solutions I give you before using them.

  • RE: synonyms for table column

    Unfortunately - you will need to create views to reflect the field names atht you require.

    ________________________________________________________________________________________________
    Regards
    Steve
    SQL 2008 DBA/DBD - MCTS/MCITP

    Please don't trust me, test the solutions I give you before using them.

  • RE: Importing data via ODBC (from mozaic) to SQL

    Another option might be to use SSIS and craete an update package ?!

    ________________________________________________________________________________________________
    Regards
    Steve
    SQL 2008 DBA/DBD - MCTS/MCITP

    Please don't trust me, test the solutions I give you before using them.

  • RE: Temp Table Column name or number of supplied values does not match table definition

    Can you display the code you are trying to use ?

    ________________________________________________________________________________________________
    Regards
    Steve
    SQL 2008 DBA/DBD - MCTS/MCITP

    Please don't trust me, test the solutions I give you before using them.

  • RE: synonyms for table column

    Do you have an example of what you are trying to acheive ?

    ________________________________________________________________________________________________
    Regards
    Steve
    SQL 2008 DBA/DBD - MCTS/MCITP

    Please don't trust me, test the solutions I give you before using them.

  • RE: Use an AD group for SQL Authentication

    Ahh right - glad you're sorted.

    I too am running Syspro - version 6.1 SP1 - without any issues.... so far 🙂

    Regards

    ________________________________________________________________________________________________
    Regards
    Steve
    SQL 2008 DBA/DBD - MCTS/MCITP

    Please don't trust me, test the solutions I give you before using them.

  • RE: Use an AD group for SQL Authentication

    Hi - Are you still having problems with your Syspro - SQL validation ?

    ________________________________________________________________________________________________
    Regards
    Steve
    SQL 2008 DBA/DBD - MCTS/MCITP

    Please don't trust me, test the solutions I give you before using them.

  • RE: SQL Query question

    What do you expect to see in the result set ?

    Do you want to display records that are contained in the "IN" clause - and then display records that are...

    ________________________________________________________________________________________________
    Regards
    Steve
    SQL 2008 DBA/DBD - MCTS/MCITP

    Please don't trust me, test the solutions I give you before using them.

  • RE: Trigger After Update - Values from inserted table

    Thanks -

    Yes unfortunately the ERP system does, Inventory, Customer, Suppliers, but not LEDGER chanegs - which is a blackhole - so I have just replicated that they do and ......

    ________________________________________________________________________________________________
    Regards
    Steve
    SQL 2008 DBA/DBD - MCTS/MCITP

    Please don't trust me, test the solutions I give you before using them.

  • RE: Trigger After Update - Values from inserted table

    as an aside - I have checked the "Main Audit" table - which contains over 200 fields and have 275,000 records over the 3 years of using the system, which...

    ________________________________________________________________________________________________
    Regards
    Steve
    SQL 2008 DBA/DBD - MCTS/MCITP

    Please don't trust me, test the solutions I give you before using them.

  • RE: Trigger After Update - Values from inserted table

    I see where you are coming from - honestly do appreciate your input.

    However, we currently have this style of "audit table" setup from our ERP system, so I am in...

    ________________________________________________________________________________________________
    Regards
    Steve
    SQL 2008 DBA/DBD - MCTS/MCITP

    Please don't trust me, test the solutions I give you before using them.

  • RE: Returning Windows Logon Credentials to a SQL Query

    Just to keep the post live - I have answered my own question already.

    DECLARE @CurrentLogon Char(50)

    Set @CurrentLogon = SUSER_SNAME()

    SELECT SUSER_SNAME()

    ________________________________________________________________________________________________
    Regards
    Steve
    SQL 2008 DBA/DBD - MCTS/MCITP

    Please don't trust me, test the solutions I give you before using them.

  • RE: Trigger After Update - Values from inserted table

    Sean Lange (1/28/2013)


    SteveEClarke (1/28/2013)


    I have managed to answer my own question - through a little digging -

    Using the DELETED table as the before data.

    New Trigger;

    ALTER TRIGGER [dbo].[trgGenMasterUpdate]

    ...

    ________________________________________________________________________________________________
    Regards
    Steve
    SQL 2008 DBA/DBD - MCTS/MCITP

    Please don't trust me, test the solutions I give you before using them.

  • RE: Trigger After Update - Values from inserted table

    I have managed to answer my own question - through a little digging -

    Using the DELETED table as the before data.

    New Trigger;

    ALTER TRIGGER [dbo].[trgGenMasterUpdate]

    ON ...

    ________________________________________________________________________________________________
    Regards
    Steve
    SQL 2008 DBA/DBD - MCTS/MCITP

    Please don't trust me, test the solutions I give you before using them.

Viewing 15 posts - 76 through 90 (of 134 total)