Forum Replies Created

Viewing 15 posts - 2,116 through 2,130 (of 3,233 total)

  • RE: Loading a New Database

    Not quite.  They backup file that you have is a SQL Server backup.  The physical file names you see in the options tab are the physical Data and Log file...

  • RE: Loading a New Database

    No, it does not. 

  • RE: Loading a New Database

    Well, what errors are you getting?  Lemme guess, filenames?  Look in the options tab for the Restore Database As section.  The logical file name and it's physical location will be...

  • RE: Loading a New Database

    Move the backup file to your backup server and use SQL Enterprise Manager to restore the database.  Are you familiar with EM?  If not, right click on the Databases...

  • RE: insert join????

    Well, do you want to insert new rows into Document_Image or update existing rows in the table?  This will tell you which type of statement you need to start with,...

  • RE: Loading a New Database

    What do you mean by 'load'? 

  • RE: Can this query be optimized

    Sameer, scratch my example and go with Peter's.  In my haste to get an example out, I overlooked how simple this one was to eliminate the unwanted rows in the...

  • RE: Help me understand @@error

    In that case, I usually check both @@ERROR and the return value from the stored procedure. 

     

    DECLARE @intReturnValue int

    EXEC @intReturnValue = proc_Call_Some_StoredProcedure

    SET @intSQLErrorNumber = COALESCE(NULLIF(@intReturnValue,0),@@ERROR,1001)

    IF @intSQLErrorNumber <> 0......

     

     

  • RE: Subquery returned more than one value - not permitted

    You have declared your cursor to be a SELECT *, but your FETCH is only using the e-mail.  Change your cursor declaration to be SELECT email from temp_free2.

     

    P.S. - I...

  • RE: Can this query be optimized

    Sameer,

    Here's an example of a derived table used in the OUTER JOIN.  This should work for you, but I have not been able to test it as I do...

  • RE: Subquery returned more than one value - not permitted

    The problem is in your SET @GridDude = (SELECT....) section.  All of those SELECTs in your SET statements have the ability to return more than one value.  You cannot assign...

  • RE: Stored Procedure Performance

    I do a combination of both.  Execution plan is important, but so is logical reads.  Stored procedure performance is subjective.  What are you trying to accomplish?

  • RE: Help me understand @@error

    You are correct.  What you want to do is to assign @sError = @@ERROR and then test for @sError <> 0.

  • RE: restore indexes

    You'll have to recreate them.  Do you have an empty schema DB or a backup of your DB you could look at to see what the indexes were?

  • RE: Query

    A bit more information here would be real helpful.  Can you post the relevent table DDL for all tables involved as well as sample data for each table and an...

Viewing 15 posts - 2,116 through 2,130 (of 3,233 total)