Drop Distribution DB, Publications, Subscriptions, jobs, agents etc.,

Looks like my replication set up is all messed up. I like to cleanup all the existing setup and startover. How do I do that?
First I am not able to delete the subscriptions,
Getting the error "Invalid Object Name 'dbo.MSmerge_agents'

Great, so now all the publications and subscriptions are gone. Let's work on the distribution database now.
Issue a call to sp_helpdistpublisher on the problem server. This will give you a list of the publishers which are using this server for its distribution database.
Then issue calls to sp_helpsubscriberinfo to return a list of subscribers. For each one issue the below call
sp_dropsubscriber 'SubscriberName'
Then issue a call to sp_helppublisher to get a list of publishers which use this distributor as its distributor and then issue calls to exec sp_dropdistpublisher  for each publisher.
After that is done try this:
exec sp_dropdistributiondb @database = N'distribution'
GO
exec sp_dropdistributor @no_checks = 1, @ignore_distributor = 1
GO
looking for a book on SQL Server replication? http://www.nwsu.com/0974973602.html
looking for a book on SQL Server 2008 Administration? http://www.amazon.com/Microsoft-Server-2008-Management-Administration/dp/067233044X
looking for a book on SQL Server 2008 Full-Text Search? http://www.amazon.com/Pro-Full-Text-Search-Server-2008/dp/1430215941

Similar Messages

  • Move subscription jobs from SQLServer Box to Report Server.

    environment info:
    All SQL Server 2008 r2 on Windows server 2008 r2.
    Reporting Services (SSRS instance) name: SSRSServerR
    There is no SQL Server installed on the reporting server.
    Production SQL Server instance Name: SQLServerP
    Now the person who installed the SQLServerP under a mistake installed the whole suite and installed the reporting services too on this machine.
    Scenario:
    Since the production sql server instance (SQLServerP) has the reporting services installed too
    AND
    The report server (SSRSServerR) doesnot have the SQLServer installed on it, this has resulted the subscription jobs on the production server.
    I want to migrate these subscription Jobs from SQLServerP to SSRSServerR
    I belive the following should be the steps:
    1. Install the SQL Server on the reporting server so that it may host the report server and report server tempDB databases.
    2. Restore the reportserver database on the reporting server. This will automatically put all of the subscriptions on the Report server.
    3. Schedule the reports again so that the jobs will be created again.
    Now the questions:
    1.    Is the above thought correct.  Please let me know if you want to add anything.
    2.     Since the new SQL Server installed on the report server will host the reportserver and reportserver tempdb databases, what edition of sql server is required. Will standard edition be enough.
    3.    To move the reporting subscription jobs, can I just script those from the SQLServerP and restore them on the newly installed sql instance on SSRSServerR.

    Hi Aanya,
    Your approach overall seem to be ok, a couple of things:
     - Once you restore the ReportServer database on the SSRS server, you don't need to schedule the reports as the schedules will be restored
    as well.
    - As part of the restore, all the SQL Agent jobs(related to subscriptions) will be copied over as well.
    - Once you finish restoring the ReportServer database on the SSRS server, you'll need to do some basic configuration as explain in the below
    MSDN article.
    I suggest you to go though this article -
    Moving the Report Server Databases to Another Computer
    Hope this helps.
    Shahfaisal Muhammed http://shahfaisalmuhammed.blogspot.com

  • ERecruitment: Job Agents in the carrer opptns of candidate.

    Hi All,
    There is an job agent view in the career oppurtunities where the candidate can select the job search criteria and save them as the job agent and there is also option of notifiying by email when the information in the job posting matches the info in the job agent.
    I wanted to know how this piece of functionality works, my doubts are like will the candidates gets the notifications once the publication/posting instance is released or after the rls of the req...
    Tried to find the info on this in Sdn but in vain..
    Can any one pls let me know how this piece of functianality is working.. is there any config to be done for this.
    Thanks & Regards,
    Dipu.B

    Hello Dipu,
    the job agent is nothing else than a search for publications run in background. The candidate saves more or less a variant for the search mask. A peridical service is processing a search based on these variant and sends the results in a smartform to the candidate. So it is publication based. The information is processed when it is published.
    Only special here is that for any unknown reason this is not done by the standard periodical services but by an own one. You find the settings for it under E-recruiting -> Talent Warehouse -> Candidate -> Candidate Services -> Jobservice
    Best regards
    Roman

  • The drop down view by menu (Song, album, etc) at the right side of the iTunes window is like a ghost. It flashes into view for a millisecond once in awhile but never lets me click on it. Anyone know what this is about and what to do?

    The drop down view by menu (Song, album, etc) at the right side of the iTunes window is like a ghost. It flashes into view for a millisecond once in awhile but never lets me click on it. Anyone know what this is about and what to do?

    Short answer:
    Click Hide Song(s), it is what you wanted to do...
    Long answer:
    iTunes in the Cloud is a feature of your iTunes store account that allows you to redownload or stream your past purchases. When you delete a purchased track that is downloaded to your computer (like the first one shown here) you are asked if you also want to hide the song from iCloud. This would remove it from the computer and also stop it showing up with the iCloud symbol as the other tracks from that album (which are not downloaded) do.
    If a track shows with the cloud symbol you can play (stream) it by double-clicking the title, or click the cloud symbol to download a local copy to your library. If you try to delete one of these tracks you get a slightly different message confirming that you want to hide the track. Clicking hide will remove the listing from the library and any other device that shows your past purchases.
    Should you want to retrieve any item hidden in this way at a later date use Store > View My Account > iTunes in the Cloud > Hidden Purchases > Manage.
    To hide all your previous purchases that are not downloaded to your computer use Edit > Preferences > Store and untick Show iTunes in the Cloud purchases.
    tt2

  • Credential problem while running with SQL job agent

    Hi,
    SQL job agent fails to run when I change my computer login (Password) credentials information often.
    How I can run the SQL job agent with Database login credentials.
    Regards
    Venkatesh S

    Hi Venkatesh,
    If I understand correctly, you are using a proxy account has your login credential to run a step of SQL Agent Job. So when you change the login’s password, the credential of the proxy account has an expired password, then the proxy account doesn’t work in
    your job.
    As per my understanding, we can only use SQL Server Agent Service Account or Proxy Account to run the SQL Server Integration Services Package steps in SQL Agent Job. Since the SQL Server Agent Service Account may not have required permissions to access the
    resources in the packages, we recommend use Proxy Account. To create Proxy Account, we should create a credential first. To create a credential, we should specify a Windows user account. So we cannot use a SQL Server authentication login to run the job.
    A good workaround is use a windows user account with a password that never expire or changes rarely or update the password of credential followed by your login.
    Reference:
    How to: Automate SSIS Package Execution by Using the SQL Server Agent (SQL Server Video)
    How to: Run a Package
    How to: Create a Proxy (SQL Server Management Studio
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Query on Job agent functinality in e recruitment

    <b></b>
    Hi All,
    Could any body provide me insight on the Job agent functionality in SAP E- recruitment.
    I need to know what is it and how is it used for and it is available in which all versions.
    If we are on lower versions are there any support packs available to install this
    Thanks and best regards
    Rajeev Chhabra

    The Job Agents solution is available as of EHP3 and only for the candidate role in WebDynpro.
    It is used to send alerts to candidates when new postings are created within the system without the need for the candidate to log into the system. Job Agents enable candidates to be notified via email of new job postings that match their search criterion on time and also ensures candidates do not get repetitive mails. This is achieved by creating and scheduling a batch job.

  • Create a job without sql job agent

    Hi
    I want to create a job to exec stored procedure once in day with out using job agent. Is there anyway to do it?
    Thanks,

    Hello,
    You can use Windows Scheduler + SqlCmd Utility for this; example see
    How to schedule and automate backups of SQL Server databases in SQL Server Express
    (the Express Edition don't have the SQL Server Agent)
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Schedule Script to Run without Job Agent

    We do not have Job Agent available but need an event to trigger on a schedule. I did find a posting in here, which kind've shows how to do it. The syntax is below.
    WHILE 1 = 1
    BEGIN
    WAITFOR DELAY '00:30:00';
    EXEC sp_dbhelp;
    END
    My question is what would you save the above as, so it would know to execute the stored procedure every 30 minutes? I do not want to this from Windows Scheduler. Any assistance would be appreciated.

    If you were asking this question on SQL EXPRESS forums, then you probably get a simple solution.
    SQL Server EXPRESS do not have an Agent and My prefer solution for jobs is using SERVICE BROKER for that :-)
    This solution might fit your needs as well.
    Check this link (I did not read it all but it look like it give this solusion):
    http://www.sqlteam.com/article/scheduling-jobs-in-sql-server-express
      Ronen Ariely
     [Personal Site]    [Blog]    [Facebook]

  • What is Publication, Subscription, Site, Replication

    Hello,
    What is Publication, Subscription, Site.  what is diff between publication and subscription.
    ram

    Hi,
    here you will find the answer to all of your questions.
    [http://help.sap.com/saphelp_crm60/helpdata/en/7e/df9e38a5d62632e10000009b38f8cf/frameset.htm]
    Regards,
    Wolfhard

  • HT201364 I have a 2013 iMac, with OS X version 10.8.5.  Have been trying to download OS X Mavericks without success; error message "we could not complete your purchase, the product distribution file could not be verified, etc".  Please help; TQ

    I have a 2013 iMac, with OS X version 10.8.5.  Have been trying to download OS X version 10.9 (OS X Mavericks) without success; error message "we could not complete your purchase, the product distribution file could not be verified, etc".  Please help; TQ

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you boot, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, reboot as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Mail server failure. connection refused. too manay connections - when using sp_send_dbmail with job agent

    Hello All,
    I've a weird problem when I'm using "SP_Send_dbmail" to send a simple e-mail to two recipients using job agent.
    The code i write is:
    exec msdb.dbo.sp_send_dbmail
        @profile_name= 'Send Reports',
        @recipients = '[email protected] ; [email protected]',
        @Copy_recipients = '[email protected]',
        @Body = 'Whatever will be here',
        @subject = 'Daily Reports',
        @file_attachments = 'd:\MyFolder\MyFile.txt';
    The error i receive is:
    The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 1 (2015-03-03T14:57:17). Exception Message: Cannot send mails to mail server. (Service not available, closing transmission channel. The server response
    was: service not available (connection refused, too many connections)).
    Does any one know why i get such error???
    Please advise.
    Hany Mounir

    Hello,
    Please consider any Windows Firewall, security hardware/software, policies on your organization’s mail
    server.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Windows Job Agent Limits

    What is the limit of Jobs from a Windows Job Agent for Tidal 6.1? We have been hitting the default 10 job limit and get warnings in the last month. I have increased the limit to 15 concurrent jobs but want to know the real limit.
    Thanks                  

    There really is no fixed limit.  It's more a matter of what you server can handle.  You need to monitor server performance over several days.  If you are only using peaking at 90% capacity, then you are probably at your limit.  If you are only at 20%, then you can obviously increase the Job Limit.
    If all jobs running on the agent place the same demands upon resources this is all you need to do.  If there are some jobs that require significantly more resources, then you may want to use Tidal's Resources functionality to optimize utilization.
    You can also use Queues to limit the number of high resource jobs running at any one time.
    Thanks.

  • Relationship between subscription and agent job

    Hi, 
    When I create a transactional subscription (SQL 2008R2) I also get a SQL agent job.  Is it safe to rename this agent job to something else as the name is awful and it has an incremental number at the end. 
    Thanks

    Yes you can change them but Not a very good idea, because the new name is not the standard name for replication jobs, any new person will not really know about this.
    These kind of personilations are what causes issues for new dba's who inherit SQL systems.
    If you try to understand its really easy to find what they are and if I remember correctly the incremental number should be the agent_id for the replication agent.
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • I updated firefox to 4.0 and then to 5.0 and it doesn't look like it is supposed to, I still have the navigation tool bar at the top of my page and the drop down boxes too (file, edit, view etc). Why is this an how can I get the proper new versions?

    When I updated firefox to 4.0 the only things that really changed were a couple of buttons and the position of the tabs, the blue navigation bar and the drop down menus for file etc didn't change at all.
    My computer also freezes when visiting certain websites with firefox, not Every time I visit but frequently. The websites are usually commonly visited websites (Gmail, stuff.co.nz) and don't do it when I am using internet explorer or another computer. This started when I downloaded the upgrade.
    I use a net-book with Windows XP.

    To get the new style UI you need to hide the menu bar. To do that in the View menu select Toolbars, then click on the "Menu Bar" entry.
    If you need access to the menus you can press either Alt or F10 to temporarily display them.

  • Drop/Create sequence using Oracle Job Scheduler

    IDE for Oracle SQL Development: TOAD 9.0
    Question: I am trying to do the following:
    1. Check if a certain sequence exists in the user_sequences table
    2. Drop the sequence if it exists
    3. Re-create the same sequence afterward
    All in a job that is scheduled to run daily at 12:00 AM.
    What I would like to know is if this is even possible in the first place with Oracle jobs. I tried the following:
    1. Create the actual "BEGIN...END" anonymous block in the job.
    2. Create a procedure that uses a dynamic SQL string using the same "BEGIN...END" block that drops and recreates the sequence using the EXECUTE IMMEDIATE commands
    But I have failed on all accounts. It always produces some sort of authorization error which leads me to believe that DDL statements cannot be executed using jobs, only DML statements.
    BTW, by oracle jobs, I mean the SYS.DBMS_JOBS.SUBMIT object, not the job scheduler.
    Please do not ask me why I need to drop and recreate the sequence. It's just a business requirement that my clients gave me. I just want to know if it can be done using jobs. If not, I would like to know if there are any work-arounds possible.
    Thank you.

    Please do not ask me why I need to drop and recreate the sequence. It's just a business requirement that my clients gave me. I just want to know if it can be done using jobs. If not, I would like to know if there are any work-arounds possible.Well, I won't ask you then, but can you ask your clients why on earth they would want that?
    Do they know that doing DDL 'on the fly' will invalidate the dependent objects?
    Best shot you can give at it is reset the sequence. And you could do it in a job, yes, as long as it's interval is during some maintenance window (no active users).
    Regarding resetting a sequence, you, (and your clients) should read this followup:
    http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:1119633817597
    (you can find lots more info on sequences and jobs by doing a search from the homepage http://asktom.oracle.com)
    Regarding the authorization errors: your DBA should be able to provide you the nessecary privileges.
    But in the end, this is something I'd rather not would like to see implemented on a production system...

Maybe you are looking for

  • How can i set a form to read only when a checkbox it checked?

    How can i set a form to read only when a checkbox it checked?

  • Date Picker no longer works in applications converted from v 3 to v4

    We cloned our current server and upgraded it to v4.0.2 of APEX. We now get this error on all the pages that have a date picker: ORA-01460: unimplemented or unreasonable conversion requested ORA-02063: preceding line from PMO_PROD Unable to fetch row

  • The MOF Compiler could not connect with the WMI server

    I am trying to add node2 to SQL  cluster (2008)  However, I kept running into errors with the following error message: "The MOF Compiler could not connect with the WMI Server. This is either because of a semantic error such as an incompatibility with

  • False heartbeat failure error messages

    Hello Everyone, I am receiving  false heartbeat failure error messages from all the agents in our environment.All servers are reachable and online at that time. The alerts get auto closed after 2-3 mins without any troubleshooting. Can you please let

  • No handles on shapes

    I have a legacy document, a huge complex map, that I am updating. I am having trouble because I cannot see handles on the shapes unless I roll my cursor over them. I had 2 interns work on the document this past summer and who knows what they have don