Forum Replies Created

Viewing 15 posts - 166 through 180 (of 1,158 total)

  • RE: How to find out who disabled/enabled a SQL agent job.

    No.

    You could create a custom trigger on the msdb.dbo.sysjobs table to log when a change occurs.

  • RE: Regarding tempdb usage

    As already stated, the tempdb is instance specific.

    The only way to do something similar is to have 2+ instances and isolate them onto their own drives. You would still...

  • RE: Try to add a column

    karim.boulahfa (12/3/2013)


    MysteryJimbo (12/3/2013)


    You're inserting a value into incident_ref.

    You're primary key (incident_id) is not set as an identity so you need to insert a unique value since you cannot have a...

  • RE: Try to add a column

    Knight (12/3/2013)


    If it was an identity column though surely you wouldn't receive this error.

    Eureka! 😀

  • RE: Try to add a column

    Knight (12/3/2013)


    No I don't. I think you need to revisit what you are trying to do.

    Perhaps you should be UPDATE'ing that field? Your INSERT statement implies you just want...

  • RE: Try to add a column

    You're inserting a value into incident_ref.

    You're primary key (incident_id) is not set as an identity so you need to insert a unique value since you cannot have a NULL primary...

  • RE: Make a new replication with exsist table.

    I think the reason you have no replies is you aren't completely clear.

    Replication does not drop tables on the publisher.

    The default on the subscriptions is to "drop existing" and is...

  • RE: regarding backups

    How big are the tables? If the are each several GB each then I'd consider going with backup/restore then drop the extra tables.

    If they are relatively small I...

  • RE: Automate Pulling off agent Jobs to File

    I have a couple of powershell scripts which I can use to do this. I use them when I take over a role if there is little source control...

  • RE: Replication- distribution server crashed

    In theory this should work as a two stage process.

    Restore the SQL server as the host using master and msdb recovery

    Restore the distributor using the distribution db.

  • RE: Maintaining the Value of My Primary Key Question

    adams.squared (11/25/2013)


    I have a table of 200,000 records. The natural primary key for this table is the combination of columns A1, B2, C3 and D4. I want to...

  • RE: Replication- distribution server crashed

    MysteryJimbo (11/25/2013)


    This is good, as it means once recovered, the log reader will know everything that still needs to replicate.

    I should have been clearer. You continue to stand a...

  • RE: Replication- distribution server crashed

    deep_kkumar (11/25/2013)

    We have the latest backup of distribution database. But the data on publisher changes every minute

    If you cannot restore the distribution db, you will have to reintialise...

  • RE: Replication- distribution server crashed

    If you plan on restoring the distribution db on the same distribution server you shouldn't need to cleanup replication on the publisher/subscriber. You would only need to do that...

  • RE: Replication- distribution server crashed

    Are there any distribution db backups? If so there is an MS article on how to restore it.

    Will the data have changed on the published databases? If not, you...

Viewing 15 posts - 166 through 180 (of 1,158 total)