Things to consider when removing from AD domain a SQL Server 2008 which includes Reporting Services

Do any one have a link to a list of things to consider when removing from AD domain a SQL Server 2008 which includes Reporting Services, Analysis Services and Integration Services?
I am taking from an Active Directory domain several servers with SQL 2008 and Reporting Services, Analysis Services and Integration Services. The server will stay on its own without association to any domain, the server will keep its IP address and
the server will not change names.
I have done some research and I got the basic steps including, removing the user accounts from the domain, changing the services accounts, changing jobs and databases from being owned by users from the domain. But...
Are there other things in Reporting Services, Analysis Services and Integration Services internal databases that have an association with the domain AND that will fail after no longer being in the domain?
I've heard of Reporting Services subscriptions failing when the domain user account is no longer there...Are there any other got ya's that any one has encountered?
Please advice.
Note: I am posting in this forum basically because of what I heard on Reporting Services, but it may be a better idea to post into a more broad forum such as SQL Server Migration section.
Thanks beforehand
Paulino

Do any one have a link to a list of things to consider when removing from AD domain a SQL Server 2008 which includes Reporting Services, Analysis Services and Integration Services?
I am taking from an Active Directory domain several servers with SQL 2008 and Reporting Services, Analysis Services and Integration Services. The server will stay on its own without association to any domain, the server will keep its IP address and
the server will not change names.
I have done some research and I got the basic steps including, removing the user accounts from the domain, changing the services accounts, changing jobs and databases from being owned by users from the domain. But...
Are there other things in Reporting Services, Analysis Services and Integration Services internal databases that have an association with the domain AND that will fail after no longer being in the domain?
I've heard of Reporting Services subscriptions failing when the domain user account is no longer there...Are there any other got ya's that any one has encountered?
Please advice.
Note: I am posting in this forum basically because of what I heard on Reporting Services, but it may be a better idea to post into a more broad forum such as SQL Server Migration section.
Thanks beforehand
Paulino

Similar Messages

  • Getting error code 1 when calling SSIS package from a stored procedure (SQL Server 2008 R2)

    Hello,
    I am trying to execute a SSIS package from SQL Server 2008 R2 stored procedure but getting error code 1 (as per my knowledge, error code description is as below:
    0 The package executed successfully.
    1 The package failed.
    3 The package was canceled by the user.
    4 The utility was unable to locate the requested package. The package could not be found.
    5 The utility was unable to load the requested package. The package could not be loaded.
    6 The utility encountered an internal error of syntactic or semantic errors in the command line.
    Details:
    I have a stored procedure named "Execute_SSIS_Package" (see below sp) which executes 'Import_EMS_Response' SSIS package (when I execute this package directly from SQL Server BID it works fine it means package itself is correct) and calling
    it from SQL as:- EXEC Execute_SSIS_Package 'Import_EMS_Response'.
    Here I receives error code 1.
    Can anyone help me to resolve this issue please?
    Thanks in advance!
    CREATE PROCEDURE [dbo].[Execute_SSIS_Package]
     @strPackage nvarchar(100)
    AS
    BEGIN
     -- SET NOCOUNT ON added to prevent extra result sets from
     -- interfering with SELECT statements.
     SET NOCOUNT ON;
     DECLARE @cmd VARCHAR(8000)
     DECLARE @Result int
     DECLARE @Environment VARCHAR(100)
        SELECT @Environment = Waarde
     FROM  Sys_Settings
     WHERE Optie = 'Omgeving'
     --print @Environment
     SET @strPackage = '"\W2250_NGSQLSERVER\BVT\' + @Environment + '\' + @strPackage + '"'
     SET @cmd = 'dtexec /SQL ' + @strPackage +  ' /SERVER "w2250\NGSQLSERVER"  /Decrypt "BVT_SSIS" /CHECKPOINTING OFF /REPORTING E'
     --print @cmd
     EXECUTE @Result = master..xp_cmdshell @cmd, NO_OUTPUT
     --print @Result
    END

    It has something to do with the security.
    E.g. cmdshell is not enabled or the caller has not rights over the package.
    There could be a syntax error, too.
    I suggest you make the package runnable off a SQL Agent job then trigger the job from the stored proc with
    sp_start_job <job name>
    Arthur
    MyBlog
    Twitter

  • Upgrade DTSX packages from VS 2010 with SQL Server 2008 to VS 2013 and SQL Server 2014

    Hello everyone,
    I’m very new to SSIS world. I’ve been assigned a task to upgrade the existing packages running in VS 2010 with SQL Server 2008 to VS 2013 and SQL Server 2014. And then submit the migration report to my client.
    On very quick search at Google, I've found the following link. It seems like I just need to open the existing SSIS project in VS 2013 and follow the wizard.
    https://msdn.microsoft.com/en-us/library/cc280547.aspx
    Can anybody please advise, are there any other things need to be taken care while doing this up gradation process?
    Please share your experience.
    Any help would be much appreciated.
    Thanks, <b>Ankit Shah</b> <hr> Inkey Solutions, India. <hr> Microsoft Certified Business Management Solutions Professionals <hr> http://ankit.inkeysolutions.com

    Hello Arthur,
    Thank you for the response.
    I just got an access of the packages. They are of VS 2008 and not 2010.
    Do you know how to upgrade VS 2008 packaged to VS 2013?
    When I tried to open the solution file in VS 2013, it says "incompatible".
    Any help would be much appreciated.
    Thanks,
    Ankit
    Thanks, <b>Ankit Shah</b> <hr> Inkey Solutions, India. <hr> Microsoft Certified Business Management Solutions Professionals <hr> http://ankit.inkeysolutions.com

  • How to connect from Oracle 11g to SQL Server 2008 R2

    Hi,
    Is it possible to connect from Oracle 11g on AIX to SQL Server 2008 R2? If so, what is the preferred method?
    SQL Server has the original table. From Oracle 11g, we want to access data which is in SQL Server real time.
    Thank You
    Sarayu

    Hi,
    Have a look at these Oracle notes for the full information on the gateways -
    Master Note for Oracle Gateway Products (Doc ID 1083703.1)
    Functional Differences Between DG4ODBC and Specific Database Gateways (Doc ID 252364.1)
    Gateway and Generic Connectivity Licensing Considerations (Doc ID 232482.1)
    How to Setup DG4MSQL (Oracle Database Gateway for MS SQL Server) 64bit Unix OS (Linux, Solaris, AIX,HP-UX) (Doc ID 562509.1)
    How to Configure DG4ODBC on 64bit Unix OS (Linux, Solaris, AIX, HP-UX Itanium) to Connect to Non-Oracle Databases Post Install (Doc ID 561033.1)
    The Database Gateway for SQL*Server (DG4MSQL) needs a separate license but the Database Gateway for ODBC (DG4ODBC) is included in your RDBMS license. You only need to provide the third party ODBC driver needed by DG4ODBC.
    Regards,
    Mike

  • Opening Excel Workbook Fails when run from Scheduled Task on Windows Server 2008 Rw

    Hi,
    I have a little vbs script that instantiates the Excel.Application object and then opens a work book to perform some tasks on it. The script runs fine when run from the command line. When I attempt to run it as a scheduled task (it is supposed to update
    data that is pulled from a SQL Server at regular intervals), it fails with the following error:
    Microsoft Office Excel cannot access the file 'c:\test\SampleWorkbook.xlsm'. There are several possible reasons: .....
    The file does exist. The path reported in the error is correct. The account under which the task is running is the same account I use to run it from the command line. User Account Control is not enabled, and the task is set up to run with highest privileges.
    When I run the same script through the Task Scheduler from a Windows Server 2003 machine, it works without issue.
    I was just wondering if somebody on this forum has run into a similar issue in connection with Windows Server 2008 R2 and figured out what the magic trick is to make it work. I'm sure it is rights related, but I haven't quite figured out what which rights
    are missing.
    Thanks in advance for any advice you may have.

    This is truly killing me ... trying to get it working on Windows Server 2012 without success.
    I desperately need to automate running Excel macros in a "headless" environment, that is non-interactive, non-GUI, etc.
    I can get it to work using Excel.Application COM, either via VBScript or Powershell, successfully on many other Windows systems  in our environment - Windows Server 2008 R2, Windows 7 (32-bit), etc.,  -BUT-
    The two servers we built out for running our automation process are Windows Server 2012 (SE) - and it just refuses to run on the 2012 servers - it gives the messages below from VBScript and PowerShell, respectively- 
    I have tried uninstalling and re-installing several different versions of Microsoft Excel (2007 Standard, 2010 Standard, 2010 Professional Plus, 32-bit vs. 64-bit, etc.), but it makes no difference.
    Would be extremely grateful if any one out there has had any success in running Excel automation on Server 2012 in a non-interactive environment that they could share.
    ( I have tried adding the "%windir%\syswow64\config\systemprofile\desktop"
    folder, which did fix the issue for me when testing on Windows Server 2008 R2, but sadly did not resolve it on Windows Server 2012 )
    [VBScript error msg]
    Z:\TestExcelMacro.vbs(35, 1) Microsoft Office Excel: Microsoft Office Excel cannot
    access the file 'Z:\TestExcelMacro.xlsm'. There are several possible reasons:
    • The file name or path does not exist.
    • The file is being used by another program.
    • The workbook you are trying to save has the same name as a currently open work
    [Powershell error msg]
    Exception calling "Add" with "0" argument(s): "Microsoft Office Excel cannot open or save any more documents because th
    ere is not enough available memory or disk space.
     To make more memory available, close workbooks or programs you no longer need.
     To free disk space, delete files you no longer need from the disk you are saving to."
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : ComMethodTargetInvocation
    You cannot call a method on a null-valued expression.
        + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
        + FullyQualifiedErrorId : InvokeMethodOnNull

  • DPM 2010 (Domain A), Sharepoint 2010 (Domain A), SQL Server 2008 R2 (Domain B): Protection Group Problem SQL named is in wrong domain format.

    Good Evening,
    So I have 3 Servers in all, with the following configurations:
    Server1: DPM2010.contoso.com (Domain A)
    Server2: Sharepoint2010WFE.contoso.com (Domain A)
    Server3: Sharepoint2010DB.contoso.net (Domain B)
    I have prepared sharepoint2010wfe.contoso.com appropriatly by installing the DPM Agent, running configuresharepoint.exe -enablesharepointprotection & ConfigureSharepoint.exe enableSPSearchProtection.
    I have prepared Sharepoint2010db.contoso.net by installing the DPM agent to the server using the manual installation method and creating local user credentials and connecting to the agent through install > attach agent.
    In DPM all of agents are healthy so I go over to create the protection profile and I recieve the following error: DPM cannot protect your windows sharepoint services farm until you install agents on the following server: Sharepoint2010db.contoso.com (ID:
    956)
    I have already attempted creating an alias on the WFE server for Sharepoint2010db.contoso.com and have it point to Sharepoint2010DB.contoso.net but this did not resolve my issue at all.
    Also please keep in mind that pinging Sharepoint2010db.contoso.com is invalid as there is not a valid DNS entry of any kind, Im not even sure where this name is coming from other than some sort of a mashup. Also I am unable to domain join the SQL server
    to contoso.com because of licensing costs.
    A resolution to this issue woudl be greatly appreciated.

    Hi Deepan,
    I run into exactly the same problem with SharePoint 2013 and DPM 2012SP1. SharePoint servers run in domain a, sql 2012 in domain b. We use a SQL alias SharePoint_PROD that is configured with the fqdn of the sql server (sql20.b.com), but DPM resolves it to
    sql20.a.com when I try to configure SharePoint protection.  Is there any solution yet?
    Here's the details of the vsswriter:
     * WRITER "SharePoint Services Writer"
      - Writer ID   = {da452614-4858-5e53-a512-38aab25c61ad}
      - Writer instance ID = {6652aefc-be3f-48db-933c-5cc245c95fe1}
      - Supports restore events = TRUE
      - Writer restore conditions = VSS_WRE_ALWAYS
      - Restore method = VSS_RME_RESTORE_AT_REBOOT_IF_CANNOT_REPLACE
      - Requires reboot after restore = FALSE
      - Excluded files:
      + Component "SharePoint Services Writer:\SharePoint_PROD\PROD_SharePoint_Config"
       - Name: PROD_SharePoint_Config
       - Logical path: SharePoint_PROD
       - Full path: \SharePoint_PROD\PROD_SharePoint_Config
       - Caption: Configuration Database PROD_SharePoint_Config
       - Type: VSS_CT_DATABASE [1]
       - Is selectable: TRUE
       - Is top level: TRUE
       - Notify on backup complete: FALSE
       - Paths affected by this component:
       - Volumes affected by this component:
       - Component Dependencies:
        - Dependency to "{a65faa63-5ea8-4ebc-9dbd-a0c4db26912a}:\\SQL20\SQL20\SP2013PORTAL\PROD_SharePoint_Config"

  • Shadow system Dispatcher dies when Upgrading to EHP5 on MS SQL SERVER 2008

    Hi I am upgrading ECC 6.0 to EHP5 on MS QL Server 2008.
    The Dispatcher dies with the following error in Dev_w0 trace in Shadown work directory.
    Any Help is highly appreciated.
    calling db_connect ...
    B  Loading DB library 'D:\usr\sap\EHPI\abap\exe\dbmssslib.dll' ...
    B  Library 'D:\usr\sap\EHPI\abap\exe\dbmssslib.dll' loaded
    B  Version of 'D:\usr\sap\EHPI\abap\exe\dbmssslib.dll' is "720.00", patchlevel (0.95)
    C  Callback functions for dynamic profile parameter registered
    C  Thread ID:14964
    C  Thank You for using the SLODBC-interface
    C  Using dynamic link library 'D:\usr\sap\EHPI\abap\exe\dbmssslib.dll'
    C  dbmssslib.dll patch info
    C    SAP patchlevel  0
    C    SAP patchno  95
    C    Last MSSQL DBSL patchlevel 0
    C    Last MSSQL DBSL patchno         95
    C    Last MSSQL DBSL patchcomment R3load import: Invalid field size for datatype (1603882)
    C  ODBC Driver chosen: SQL Server Native Client 10.0 native
    C  Network connection used from HCMWSECDEV to HCMWSECDEV\ECD using tcp:HCMWSECDEV\ECD
    C  Network connection used from HCMWSECDEV to HCMWSECDEV\ECD using tcp:HCMWSECDEV\ECD
    C  Driver: sqlncli10.dll Driver release: 10.00.2531
    C  GetDbRelease: 10.00.2531.00
    C  GetDbRelease: Got DB release numbers (10,0,2531,0)
    C  ERROR: -1 in function CheckCodepageType (SQLExecDirect failed) [line 19432]
    C  (208) [42S02] [Microsoft][SQL Server Native Client 10.0][SQL Server]Invalid object name 'DBPROPERTIES'.
    B  Connection 0 opened (DBSL handle 0)
    C  ERROR: -1 in function StartSelect (execute) [line 12976]
    C  (208) [42S02] [Microsoft][SQL Server Native Client 10.0][SQL Server]Invalid object name 'SVERS'.
    C  ERROR: -1 in function StartSelect (execute) [line 12976]
    Regards,
    Rao D

    Hi Paul,
    The user used for the upgrade may not have rights to read DBPROPERTIES. Have you reviewed this forum entry: [Invalid object name DBPROPERTIES|shadow system problem;
    Not sure if that helps but thought it might provide a clue.
    Thanks!
    J. Haynes

  • Things to consider when moving from Motorola Dual G5 to Intel Core Duo G5

    OK dear forum readers,
    I am planning on upgrading my PowerMac G5 Dual 2.0 to the Intel Core Duo platform. I have no idea where to start. So I am looking for suggestions/short list of what I need to do once I have both computers sitting next to each other. Do I need a cable? Do I need to buy additional software? Just as an FYI I do not backup to .Mac or anything. Though I do regularly do a PSyncX backup to an external hard-drive.
    Your help is greatly appreciated.
    Regards,
    Max
    Power MAC G5 Dual 2.0, 30" ACD, RADEON X8000XT card   Mac OS X (10.4.4)   I also have a IMAC G5

    You can totally bring your Intel to its knees if you merge PPC code, files, caches and such over.
    CoreDuo sounds like iMac (not Mac Pro) so you can't just pull the drive and plug it in. There are SATA cases with FW and SATA interface of course. If you are selling the G5, I'd keep the drive and keep my files. I'd use your backup drive and Migration Assistant .... very caustiously... and reinstall applications.
    Cache folders, drivers, anything that goes into the top level Library and System/Library should not be reinstalled.
    Not all programs that are PPC work under Rosetta.
    MacIntouch and Macfixit have lists of what is compatible or is in UB native format.

  • Resources automatically deactivating when removed from Active Directory

    This is a simplified version of my previous question:
    What causes some resources to successfully deactivate when removed from AD, while other Project Server 2010 accounts have to be made inactive manually?
    Also, if a resource is made inactive or deleted in Project Server, is it expected that their SharePoint account will be completely deleted?
    Thanks!

    When you remove the user from AD group, that account will become inactive in the next AD synchronization in Project Server. When the account is inactive, it will be removed from the PWA as well as all the workspaces.
    In 2007, if you make the user inactive, it will deactivate project server access, but the user can access the project workspaces
    In 2010 onwards, When the account is inactive, it will be removed from the PWA and workspaces.
    Cheers. Happy troubleshooting !!! Sriram E - MSFT Enterprise Project Management

  • Comments not imported from Data Dictionary of SQL Server. SDDM 3.3.0.747

    Hi,
    SDDM 3.3.0.747 32-bit on Windows 7 64-bit.
    Comments are not imported from Data Dictionary of SQL Server 2008. Connection through Microsoft JDBC Driver 4.0 for SQL Server or jTDS 1.2.7
    What I have tried? In SDDM DDL generation, Comments in DBRMS for SQL Server are generated with "EXEC sp_addextendedproperty 'MS_Description' , 'Test Comment' ..." so I added extended property named "MS_Description" into SQL Server database, both on table and column. None of them were imported from Data Dictionary into SSDM. I have tried both drivers stated above. Is it a bug or am I missing something?
    I've found similar question thread Re: Data dictionary import doesn't import column comments for SDDM 3.0.0.665, so I guess it is a bug when importing with JDBC drivers.
    MiGli
    Edited by: MiGli_1006342 on May 25, 2013 8:32 AM
    Edited by: MiGli_1006342 on May 25, 2013 9:02 AM

    Extended properties were not imported correctly from SQLServer databases at DM 3.3.0.747.
    Calls to sp_addextendedproperty and fn_listextendedproperty have been modified.
    I don't think it is a problem with JDBC drivers.
    A bug fix should be available in the next release of DM.

  • Delete emails from server when removed from phone inbox

    I want my server (Verizon Yahoo) to trash and delete messages when I trash or delete them on my 5s. I have gone into my Verizon account on the phone, made sure Trash was selected rather than Archive, selected "Delete from server..."when removed from inbox"", restarted, etc. Everything else works in the account, and when I delete on the server, it is deleted on the phone. I want emails to delete from the server when I remove them from the phone's inbox. Supposed to happen, but doesn't.

    Thanks for the reply. I wasn't very clear, I guess. What I want to do is Trash or Trash>Delete emails on my iPhone 5s and have them go away from the inbox on my Verizon/Yahoo server. That does not happen now, even though I have set the setting on my phone to do so. All the stuff in my inbox on the server reappears the next time my phone inquires, including the emails I've sent to Trash (on the phone) and those I've Trash>Deleted there. Not too worried about permanent, real, NSA-type deletion, because that just isn't going to happen - I am worried about the poor agent at NSA who has to read my boring, mundane emails, though. I just don't want to see stuff I've Deleted from my phone's inbox come back to the inbox. Zombiemail!

  • My HP dv6 1030us laptop becomes slow when removed from AC power

    Hi,
    My HP DV6 laptop has windows 7 operating system and it behaves pretty weirdly .
    It becomes really slow when removed from AC Power and have to restart my system to bring it to normal speed don't know why its behaving like that and help to resolve the problem would be greatly appreciated and also my system gets overheated a lot and I have to use a cooling pad always to keep it cool and running properly along with AC power
    I would greatly appreciate any advice in resolving these issues.
    Thanks in advance.

    for how long have you had this laptop... If you had it for longer than a year you may be dealing with a dust bunny (acumulation of dust in the vent that's right beside the fan). Normally when that vent is clogged you get the type of overhetaing you may be experiencing, so i recomend you to open it up and give it a nice clean as soon as you can. As for your computer slowing down without the ac adapter.
    Do you know under what power option are you running ur computer?

  • Error 18452 "Login failed. The login is from an untrusted domain and cannot be used with Windows authentication" on SQL Server 2008 R2 Enterprise Edition 64-bit SP2 clustered instance

    Hi there,
    I have a Windows 2008 R2 Enterprise x64 SP2 cluster which has 2 SQL Server 2008 R2 Enterprise Edition x64 SP2
    instances.
    A domain account "Domain\Login" is administrator on both physcial nodes and "sysadmin" on both SQL Server instances.
    Currently both instances are running on same node.
    While logging on to SQL Server instance 2 thru "Domain\Login" using "IP2,port2", I get error 18452 "Login failed. The login is from an untrusted domain and cannot be used with Windows authentication". This happened in the past
    as well but issue resolved post insatllation of SQL Server 2008R2 SP2. This has re-occurred now. But it connects using 'SQLVirtual2\Instance2' without issue.
    Same login with same rights is able to access Instance 1 on both 'SQLVirtual1\Instance1' and "IP1,port1" without any issue.
    Please help resolve the issue.
    Thanks,
    AY

    Hello,
    I Confirm that I encountred the same problem when the first domain controller was dow !!
    During a restarting of the first domain controller, i tried to failover my SQL Server instance to a second node, after that I will be able to authenticate SQL Server Login but Windows Login returns Error 18452 !
    When the firts DC restart finishied restarting every thing was Ok !
    The Question here : Why the cluster instance does'nt used the second DC ???
    Best Regards     
    J.K

  • ODBC Error when migrating from SQL Server 2008 to SQL Anywhere 12

    Hello community,
    i have the following requirement:
    I need to migrate a Database with some Demo data into a SQL Anywhere 12 Database. The SQL Anywhere 12 Database is part of the SAP BusinessObjects Enterprise XI 3.1 SP7 installation and came with the same as OEM Product.
    The Environment looks like the following:
    DB1 is a MS SQL Server 2008 R2 64 Bit running on Windows Server 2008 R2 64 Bit.
    DB2 is the SAP BusinessObjects Enterprise XI 3.1 SP7 installation with the shipped SQL Anywhere 12 (12.0.1.3873) Database running on SLES 11.3 64 Bit
    CL1 is my Windows 7 64 Bit Client where Sybase Central is installed in 64 Bit. On CL1 i have a 64 Bit System ODBC Connection connecting to DB1 successfully.
    Basically i followed the following (pretty straight forward) tutorial:
    Migrating a SQL Server Database to SQL Anywhere White Paper-Technical: Mobile Enterprise, Database Management iAnywhere …
    When i want to test the connection from inside Sybase Central (During the migration process) i receive the following error:
    From inside Sybase Central my connection looks as follows:
    And from the ODBC Manager the connection looks as follows:
    Personally i found is strange that the Sybase ODBC Driver Manager drops the error. I would expect that the MS SQL ODBC Driver Manager pops the error it its related to the ODBC DSN to DB1.
    Any ideas?
    Thanks and Regards
    -Seb.

    Hi Sebastian,
    The data from the SQL Server database must be migrated to an existing SQL Anywhere database.  Could you please tell me where this SQL Anywhere database resides and how are you connecting to it?
    The error message is saying that the connection to the SQL Anywhere remote database server is failing, as opposed to the connection to the SQL Server database.

  • Msg 8631 Internal error: Server stack limit has been reached on SQL Server 2012 from T-SQL script that runs on SQL Server 2008 R2

    I have an Script mostly that is generated by SSMS which works with-out issue on SQL Server 2008, but when I attempt to run it on a new fresh install of SQL Server 2012 I get an Msg 8631. Internal error: Server stack limit has been reached. Please look for
    potentially deep nesting in your query, and try to simplify it.
    The script itself doesn't seem to be all that deep or nested.  The script is large 2600 lines and when I remove the bulk of the 2600 lines, it does run on SQL Server 2012.  I'm just really baffled why something that SQL Server generated with very
    few additions/changes AND that WORKS without issue in SQL Server 2008 R2 would suddenly be invalid in SQL Server 2012
    I need to know why my script which is working great on our current SQL Server 2008 R2 servers suddenly fails and won't run on an new SQL Server 2012 server.  This script is used to create 'bulk' Replications on a large number of DBs saving a tremendous
    amount of our time doing it the manual way.
    Below is an 'condensed' version of the script which fails.  I have removed around 2550 lines of specific sp_addarticle statements which are mostly just copy and pasted from what SQL Management Studio 'scripted' for me went I when through the Replication
    Wizard and told it to save to script.
    declare @dbname varchar(MAX), @SQL nvarchar(MAX)
    declare c_dblist cursor for
    select name from sys.databases WHERE name like 'dbone[_]%' order by name;
    open c_dblist
    fetch next from c_dblist into @dbname
    while @@fetch_status = 0
    begin
    print @dbname
    SET @SQL = 'DECLARE @dbname NVARCHAR(MAX); SET @dbname = ''' + @dbname + ''';
    use ['+@dbname+']
    exec sp_replicationdboption @dbname = N'''+@dbname+''', @optname = N''publish'', @value = N''true''
    use ['+@dbname+']
    exec ['+@dbname+'].sys.sp_addlogreader_agent @job_login = N''DOMAIN\DBServiceAccount'', @job_password = N''secret'', @publisher_security_mode = 1, @job_name = null
    -- Adding the transactional publication
    use ['+@dbname+']
    exec sp_addpublication @publication = N'''+@dbname+' Replication'', @description = N''Transactional publication of database
    '''''+@dbname+''''' from Publisher ''''MSSQLSRV\INSTANCE''''.'', @sync_method = N''concurrent'', @retention = 0, @allow_push = N''true'', @allow_pull = N''true'', @allow_anonymous = N''false'', @enabled_for_internet
    = N''false'', @snapshot_in_defaultfolder = N''true'', @compress_snapshot = N''false'', @ftp_port = 21, @allow_subscription_copy = N''false'', @add_to_active_directory = N''false'', @repl_freq = N''continuous'', @status = N''active'', @independent_agent = N''true'',
    @immediate_sync = N''true'', @allow_sync_tran = N''false'', @allow_queued_tran = N''false'', @allow_dts = N''false'', @replicate_ddl = 1, @allow_initialize_from_backup = N''true'', @enabled_for_p2p = N''false'', @enabled_for_het_sub = N''false''
    exec sp_addpublication_snapshot @publication = N'''+@dbname+' Replication'', @frequency_type = 1, @frequency_interval = 1, @frequency_relative_interval = 1, @frequency_recurrence_factor = 0, @frequency_subday = 8,
    @frequency_subday_interval = 1, @active_start_time_of_day = 0, @active_end_time_of_day = 235959, @active_start_date = 0, @active_end_date = 0, @job_login = N''DOMAIN\DBServiceAccount'', @job_password = N''secret'', @publisher_security_mode = 1
    -- There are around 2400 lines roughly the same as this only difference is the tablename repeated below this one
    use ['+@dbname+']
    exec sp_addarticle @publication = N'''+@dbname+' Replication'', @article = N''TABLE_ONE'', @source_owner = N''dbo'', @source_object = N''TABLE_ONE'', @type = N''logbased'', @description = null, @creation_script =
    null, @pre_creation_cmd = N''drop'', @schema_option = 0x000000000803509F, @identityrangemanagementoption = N''manual'', @destination_table = N''TABLE_ONE'', @destination_owner = N''dbo'', @vertical_partition = N''false'', @ins_cmd = N''CALL sp_MSins_dboTABLE_ONE'',
    @del_cmd = N''CALL sp_MSdel_dboTABLE_ONE'', @upd_cmd = N''SCALL sp_MSupd_dboTABLE_ONE''
    EXEC sp_executesql @SQL
    SET @dbname = REPLACE(@dbname, 'dbone_', 'dbtwo_');
    print @dbname
    SET @SQL = 'DECLARE @dbname NVARCHAR(MAX); SET @dbname = ''' + @dbname + ''';
    use ['+@dbname+']
    exec sp_replicationdboption @dbname = N'''+@dbname+''', @optname = N''publish'', @value = N''true''
    use ['+@dbname+']
    exec ['+@dbname+'].sys.sp_addlogreader_agent @job_login = N''DOMAIN\DBServiceAccount'', @job_password = N''secret'', @publisher_security_mode = 1, @job_name = null
    -- Adding the transactional publication
    use ['+@dbname+']
    exec sp_addpublication @publication = N'''+@dbname+' Replication'', @description = N''Transactional publication of database
    '''''+@dbname+''''' from Publisher ''''MSSQLSRV\INSTANCE''''.'', @sync_method = N''concurrent'', @retention = 0, @allow_push = N''true'', @allow_pull = N''true'', @allow_anonymous = N''false'', @enabled_for_internet
    = N''false'', @snapshot_in_defaultfolder = N''true'', @compress_snapshot = N''false'', @ftp_port = 21, @allow_subscription_copy = N''false'', @add_to_active_directory = N''false'', @repl_freq = N''continuous'', @status = N''active'', @independent_agent = N''true'',
    @immediate_sync = N''true'', @allow_sync_tran = N''false'', @allow_queued_tran = N''false'', @allow_dts = N''false'', @replicate_ddl = 1, @allow_initialize_from_backup = N''true'', @enabled_for_p2p = N''false'', @enabled_for_het_sub = N''false''
    exec sp_addpublication_snapshot @publication = N'''+@dbname+' Replication'', @frequency_type = 1, @frequency_interval = 1, @frequency_relative_interval = 1, @frequency_recurrence_factor = 0, @frequency_subday = 8,
    @frequency_subday_interval = 1, @active_start_time_of_day = 0, @active_end_time_of_day = 235959, @active_start_date = 0, @active_end_date = 0, @job_login = N''DOMAIN\DBServiceAccount'', @job_password = N''secret'', @publisher_security_mode = 1
    -- There are around 140 lines roughly the same as this only difference is the tablename repeated below this one
    use ['+@dbname+']
    exec sp_addarticle @publication = N'''+@dbname+' Replication'', @article = N''DB_TWO_TABLE_ONE'', @source_owner = N''dbo'', @source_object = N''DB_TWO_TABLE_ONE'', @type = N''logbased'', @description = null, @creation_script
    = null, @pre_creation_cmd = N''drop'', @schema_option = 0x000000000803509D, @identityrangemanagementoption = N''manual'', @destination_table = N''DB_TWO_TABLE_ONE'', @destination_owner = N''dbo'', @vertical_partition = N''false''
    EXEC sp_executesql @SQL
    fetch next from c_dblist into @dbname
    end
    close c_dblist
    deallocate c_dblist
    George P Botuwell, Programmer

    Hi George,
    Thank you for your question. 
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated. 
    Thank you for your understanding and support.
    If you have any feedback on our support, please click
    here.
    Allen Li
    TechNet Community Support

Maybe you are looking for