Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Copy Database not functioning

$
0
0

Copy Database not working as mentioned at MSSQL documentation.

https://docs.microsoft.com/en-us/sql/relational-databases/databases/use-the-copy-database-wizard?view=sql-server-2017

Procedure I followed:

1. Select the Transfer Method: Use the SQL Management Object method

2. Select Databases -> Checked on copy single Database out of list

3. If the destination database already exists: Drop any database on the destination server with the same name, then continue with the database transfer, overwriting existing database files.

4. Select Server objects-> Select related objects: Logins

5. Run immediately

   Integration Services Proxy account: SQL Server Agent Service Account

Complete the Wizard:

Click Finish to perform the following actions: 

Source: DB-TESTSRV Other SQL Server Version, Microsoft SQL Server Enterprise Edition (64-bit) , Build 6024, Microsoft Windows NT 6.3 (14393) NT x64
Destination: 172.18.12.14 Other SQL Server Version, Microsoft SQL Server Enterprise Edition (64-bit) , Build 5201, Microsoft Windows NT 6.3 (17763) NT x64
Using SMO online transfer
The following databases will be moved or copied:

Copy:Ecommerce
Destination file will be created: D:\MssqlDataFile\MSSQL13.MSSQLSERVER\MSSQL\DATA\Ecommerce.mdf
Destination file will be created: D:\MssqlDataFile\MSSQL13.MSSQLSERVER\MSSQL\DATA\Ecommerce_log.ldf
Stop transfer if duplicate database name exists at destination


Transfer the following database objects:

Logins used by selected databases (estimated) 
##MS_PolicyEventProcessingLogin##  =>  ##MS_PolicyEventProcessingLogin##  (Already Exists) 
contender  =>  contender  (OK) 
pepaltest  =>  pepaltest  (OK) 
Test  =>  Test  (Already Exists) 

Date11/23/2018 5:01:53 PM
LogJob History (CDW_DB-TESTSRV_SAMEER-DBA_2_1)

Step ID1
ServerSAMEER-DBA
Job NameCDW_DB-TESTSRV_SAMEER-DBA_2_1
Step NameCDW_DB-TESTSRV_SAMEER-DBA_2_1_Step
Duration00:00:00
Sql Severity0
Sql Message ID0
Operator Emailed
Operator Net sent
Operator Paged
Retries Attempted0

Message
Executed as user: NT Service\SQLSERVERAGENT. ...01.2 for 64-bit  Copyright (C) 2016 Microsoft. All rights reserved.    Started:  5:01:53 PM  Error: 2018-11-23 17:01:53.36     Code: 0xC001404B     Source: CDW_DB-TESTSRV_SAMEER-DBA_2 Log provider "{F4A600D2-27D6-45E8-99D5-E4BD22F3CB6C}"     Description: The SSIS logging provider has failed to open the log. Error code: 0x80070005.  Access is denied.  End Error  Error: 2018-11-23 17:01:53.36     Code: 0xC001404B     Source: CDW_DB-TESTSRV_SAMEER-DBA_2 Log provider "{F4A600D2-27D6-45E8-99D5-E4BD22F3CB6C}"     Description: The SSIS logging provider has failed to open the log. Error code: 0x80070005.  Access is denied.  End Error  Progress: 2018-11-23 17:01:53.56     Source: DB-TESTSRV_172_18_12_14_Transfer Objects Task      Task just started the execution.: 0% complete  End Progress  Error: 2018-11-23 17:01:53.66     Code: 0x00000000     Source: DB-TESTSRV_172_18_12_14_Transfer Objects Task      Description: Failed to connect to server DB-TESTSRV.  StackTrace:    at Microsoft.SqlServer.Management.Common.ConnectionManager.Connect()    at Microsoft.SqlServer.Dts.Tasks.TransferObjectsTask.TransferObjectsTask.OpenConnection(Server& server, ServerProperty serverProp)  InnerException-->Login failed for user 'BRAINDIGIT\SAMEER-DBA$'.  StackTrace:    at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)     at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)     at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)     at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)     at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)     at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)     at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)     at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)     at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)     at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)     at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)    at System.Data.SqlClient.SqlConnection.Open()     at Microsoft.SqlServer.Management.Common.ConnectionManager.InternalConnect(WindowsIdentity impersonatedIdentity)     at Microsoft.SqlServer.Management.Common.ConnectionManager.Connect()  End Error  Progress: 2018-11-23 17:01:53.66     Source: DB-TESTSRV_172_18_12_14_Transfer Obj...  The package execution fa...  The step failed.


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>