Forum Replies Created

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

  • RE: SQL 2012 Grant execute rights to user on specific SQL Agent Job

    You can try adding execute as owner while creating the procedure, so that the user can impersonate your permissions.

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: How can restore deleted sql job

    The agent jobs and schedules are stored in msdb database. So if you can restore the msdb, you can get the job back.

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: How can restore deleted sql job

    If you have a backup of msdb, you can restore it in a development box and try scripting out the job.

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Backing up DBs prior to removal

    Thanks for coming back with the clarification.

    Looks like your database is mainly read-only not heavily used. So you would be good with a full backup.

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Backing up DBs prior to removal

    The full backup will be good enough to restore it back to a consistent state.

    You do not need to do anything separately for the transaction log.

    But can you be...

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Renaming serfers

    I have faced this same issue long back with replication and solved with rename.

    As per the link I shared you you need to reestablish the mirroring with new name.

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Renaming serfers

    If you run sp_helpserver the one with id 0 is it still having the old name?

    If yes, try renaming this way

    https://msdn.microsoft.com/en-us/library/ms143799.aspx

    edit: added link

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Alter table table_name REbuild need downtime

    Sean, I think dastagiri is asking about rebuilding indexes.

    Unless you give online option, the table will be locked until the clustered index is rebuilt.

    With online option there will locks towards...

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Row Count for each tables for entire Server

    What issues you got with msforeachdb?

    One quick and dirty solution, please make your own changes

    IF object_id('tempdb..##AllDBTablesRowcnt') is not null

    Drop table ##AllDBTablesRowcnt

    Select db_name() DBName,Object_name(object_id) TableName,rows into ##AllDBTablesRowcnt from sys.partitions where...

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: How to understand this deadlock

    You should be looking at the section with delete and insert. Two concurrent session got through the delete, may be got page locks due to lock escalation, and both wait...

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Byte Me: Supervirus

    Somebody once warned me while handing over a CD that had been in the shelf for so long

    "Be careful it might have caught some virus" :hehe:

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Please help, as it is an urgent thing

    So the current active version is server 2. This might have moved on with new transactions from application

    so you need to sync server 1 first. To minimize down time you...

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: How to skip the file?

    Create event handler for OnError for the data flow task set Propagate to false. This will prevent the error from propagating to the foreach loop container.

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Please help, as it is an urgent thing

    Hi Ajay,

    When you say 'as earlier' if you mean making the primary server to be used back again from your application, you would need to take the database back there....

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Please help, as it is an urgent thing

    Where is your DBA? Who created the log shipping in first place.

    You have to configure log shipping back again, this might not be very complex, but you should be thorough...

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

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