Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)

  • RE: HELP osql

    If the machine name was changed after the SQL server have been installed some connnections will fail. Check these :

    sp_helpserver 'SERVERNAME'

    Select SERVERPROPERTY ('SERVERNAME')

    SELECT SERVERPROPERTY ('SERVERNAME')

    SELECT @@SERVERNAME

  • RE: Error handling in stored procedure

    You cannot catch that error from inside the SP because its execution will never reach IF @@ERROR ...

    But you can catch that error from the calling stored procedure or connection.

    DECLARE

Viewing 2 posts - 1 through 2 (of 2 total)