Forum Replies Created

Viewing 15 posts - 181 through 195 (of 455 total)

  • RE: Transaction inside a cursor?

    Ok, Check this SET @ErrorNum = @@ERROR

    IF @ErrorNum <>0

    BEGIN

     ROLLBACK TRANSACTION

    END

     

    Prasad Bhogadi
    www.inforaise.com

  • RE: replication error

    You need to delete your existing SQL Server registration and Register afresh using the actual name of the system/instance of SQL Server.

     

    Prasad Bhogadi
    www.inforaise.com

  • RE: Transaction inside a cursor?

    Hi Chris,

    You check for the Error count after every Insert or update statement and do a rollback on each check if the count is greater than zero also check the...

    Prasad Bhogadi
    www.inforaise.com

  • RE: SQL to T-SQL conversion

    What is that you are trying to do.

    You can use the basic syntax

    SELECT DISTINCT <ColumnName>

    FROM

    <TableName>

    ORDER BY

    <ColumnName> <SortOrder>

     

     

    Prasad Bhogadi
    www.inforaise.com

  • RE: FOR XML

    What is the Front end tool that you are using for this application for invoking the process.

     

    Prasad Bhogadi
    www.inforaise.com

  • RE: while creating an ODBC !!

    I agree with Sugesh, its something to do with your SQL Server configuration settings. Please follow the instructions from the below link and I hope you will be able to...

    Prasad Bhogadi
    www.inforaise.com

  • RE: Problem Restoring Over Existing DB

    I completely agree with what David has suggested.

    For restoring a database by overwriting the existing database, you need exclusive locking until the restore process is completed. So run a sp_who...

    Prasad Bhogadi
    www.inforaise.com

  • RE: Migration of complete sql server objects alongwith data to new machine

    There are several articles that could help you in accomplishing your job. I am posting URLs of couple of articles that may help you.

    http://www.sqlservercentral.com/columnists/cBunch/movingyouruserswiththeirdatabases.asp

    http://vyaskn.tripod.com/moving_sql_server.htm

     

     

    Prasad Bhogadi
    www.inforaise.com

  • RE: FOR XML

    You can aswell use a DTS Script or Import/Export wizard from your SQL Server to accomplish your data transfer from SQL Sever DB to Access DB unless you are looking...

    Prasad Bhogadi
    www.inforaise.com

  • RE: Dynamic Order By and Sort

    If you have definite set of options its always better to use CASE in order by clause and define the conditions and coming to Sort Order, I don't see a...

    Prasad Bhogadi
    www.inforaise.com

  • RE: Distinct performance???

    Can you please post your table structure and the query. Your question makes sense as it should not really take so much time.

     

    Prasad Bhogadi
    www.inforaise.com

  • RE: Distinct performance???

    As posted by Sergiy, Your DISTINCT clause would implement a GROUP BY implicitly and does a scan of the results, so in the query analyzer if you look at the...

    Prasad Bhogadi
    www.inforaise.com

  • RE: Working with Text data in T-SQL

    Are you talking about the result displayed in your query analyzer? Check if you have Maximum Characters Per Column value under Tools-Options- Results tab.

     

    Prasad Bhogadi
    www.inforaise.com

  • RE: Multiple actions in case statement possible?

    You are trying to return mutliple columns inside your CASE, it is not supported, as per your requirements it is better to use IF ELSE Blocks. You can nest multiple...

    Prasad Bhogadi
    www.inforaise.com

  • RE: GETUTCDATE()

    SELECT CAST(GETUTCDATE() AS SMALLDATETIME)

    SELECT CONVERT(VARCHAR(16),GETUTCDATE(),20)

    Prasad Bhogadi
    www.inforaise.com

Viewing 15 posts - 181 through 195 (of 455 total)