Forum Replies Created

Viewing 15 posts - 61 through 75 (of 131 total)

  • RE: Try catch in a SP

    nitinpatel31 (3/5/2009)


    It has some errors.

    - It is RAISERROR not RAISEERROR.

    - Function can be passed as argument.

    Use below code for it

    DECLARE @Error VARCHAR(150)

    SET @Error = ERROR_MESSAGE()

    RAISERROR (@Error,16,1)

    Thanks for your help. Now...

  • RE: Try catch in a SP

    nitinpatel31 (3/5/2009)


    Use RAISERROR statment inside CATCH block.

    How could I add the RAISEERROR stmt in the above CATCH block.

    If I add it before END CATCH stmt, it is showing the error___

    Msg...

  • RE: Try catch in a SP

    Hi,

    Thanks for you reply.

    But I didn't get what I want in the above code.

    I want to insert the errors into a error_log table when the insertion to a table fails....

  • RE: Try catch in a SP

    OK.... sorry....

    I found the problem.

    There is an extra ;(semicolon) came in the line ERROR_MESSAGE()

    It looks simple but I struggled to find out.

    Thanks for your help,

    Venki.

  • RE: Negative numbers......

    GilaMonster (2/20/2009)

    While it's not perfect, try using ISNUMERIC and see if there are any columns that it considers not numbers.

    Thanks GilaMonster.

    It is due to some nonnumeric data I believe. I...

  • RE: Schedule DTS package in SQL Server 2005

    Greg Charles (2/13/2009)


    You can't right-click on a package in SQL 2005 Management Studio and create a job like you could in SQL 2000 Enterprise Manager. In SQL 2005, you...

  • RE: Schedule DTS package in SQL Server 2005

    Thanks a lot for your quick replies.

    I didn't change the DTS to SSIS. I kept as it is.

    When I am trying to schedule it i.e. I tried add it as...

  • RE: Table meta data

    Adi Cohn (2/13/2009)


    SQL Server doesn’t store this information. If you need to know who updated a table and when it was updated, you need to implement your own mechanism...

  • RE: Ignore apostrophe(') in SQL Server

    I am doing a vb program which requires this one.

    I will first taking that employee name into a variable and checking for apostrophe(') and if it is there then replace...

  • RE: Ignore apostrophe(') in SQL Server

    GSquared (2/9/2009)


    If you put two apostrophes in a row in that, SQL will allow it.

    Thanks for your response.

    But my question is I want to do it in single stmt.

    Actually, I...

  • RE: problem with sizes

    Hi,

    I got a small doubt. Let me explain the process and then my doubt.

    I am tranferring the data from couple of tables to another table.

    I am using temporary tables called...

  • RE: problem with sizes

    Thanks a lot for your valuable suggestions.

    I am checking the data and sizes and adjust accordingly.

    Best wishes,

    Venki.

  • RE: problem with sizes

    steveb (1/29/2009)


    If the data size is to big for the column then the insert will fail.

    Otherwise if is the the same size or less then it will succeed.

    This does depend...

  • RE: Create database using Backup file

    steveb (11/19/2008)


    venki (11/19/2008)


    Perry Whittle (11/18/2008)


    venki

    you can of course also use the management studio if you prefer GUI interraction

    How can we do with SQL Server Management Studio?

    Right Click on databases node...

  • RE: SP for row count of tables

    Is the DBA unwilling to grant the VIEW DATABASE STATE permission to you? If so, that will limmit your options here.

    I am not sure I have this Permission. I...

Viewing 15 posts - 61 through 75 (of 131 total)