Hi, I am seeing a lot of nuances in the use of this task. However it works sometimes but in one case it's getting me some strange result that smell like a bug:
Visual Studio 2012
Task Transfer Database from A (SQL 2008r2) to B (SQL 2012)
Overwrite: false
I run the package (it has this only task) and it stops with the obscure message
Error: The Execute method on the task returned error code 0x80131500 (An error occurred while transferring data. See the inner exception for details.). The Execute method must succeed, and indicate the result using an "out" parameter.
Nothing to do, I must cacth the error all by myself, hence I run the Profiler and this is the situation in the B server:
Batch Started
CREATE DATABASE [FixTest] ON PRIMARY
( NAME = N'XXXX', FILENAME = N'H:\Databases\MSSQL11.DB3\MSSQL\Data\FixTest.mdf' , SIZE = 4096000KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1048576KB ),
( NAME = N'XXXX_2', FILENAME = N'H:\Databases\MSSQL11.DB3\MSSQL\Data\FixTest_2.ndf' , SIZE = 16559936KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1048576KB )
LOG ON
( NAME = N'XXXX', FILENAME = N'H:\Logs\MSSQL11.DB3\MSSQL\Data\FixTest_1.ldf' , SIZE = 4194304KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1048576KB ),
( NAME = N'XXXX', FILENAME = N'H:\Logs\MSSQL11.DB3\MSSQL\Data\FixTest_2.ldf' , SIZE = 4194304KB , MAXSIZE = 2048GB , FILEGROWTH = 1048576KB )
COLLATE SQL_Latin1_General_CP1_CI_AS
Batch Completed
CREATE DATABASE [FixTest] ON PRIMARY
( NAME = N'XXXX', FILENAME = N'H:\Databases\MSSQL11.DB3\MSSQL\Data\FixTest.mdf' , SIZE = 4096000KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1048576KB ),
( NAME = N'XXXX_2', FILENAME = N'H:\Databases\MSSQL11.DB3\MSSQL\Data\FixTest_2.ndf' , SIZE = 16559936KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1048576KB )
LOG ON
( NAME = N'XXXX', FILENAME = N'H:\Logs\MSSQL11.DB3\MSSQL\Data\FixTest_1.ldf' , SIZE = 4194304KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1048576KB ),
( NAME = N'XXXX', FILENAME = N'H:\Logs\MSSQL11.DB3\MSSQL\Data\FixTest_2.ldf' , SIZE = 4194304KB , MAXSIZE = 2048GB , FILEGROWTH = 1048576KB )
COLLATE SQL_Latin1_General_CP1_CI_AS
Audit Logout
Null
Audit Login
-- network protocol: TCP/IP
set quoted_identifier on
set arithabort off
set numeric_roundabort off
set ansi_warnings on
set ansi_padding on
set ansi_nulls on
set concat_null_yields_null on
set cursor_close_on_commit off
set implicit_transactions off
set language us_english
set dateformat mdy
set datefirst 7
set transaction isolation level read committed
Batch Starting
USE [master]
Batch Completed
USE [master]
Batch Starting
IF EXISTS (SELECT name FROM sys.databases WHERE name = N'FixTest')
DROP DATABASE [FixTest]
Batch Completed
IF EXISTS (SELECT name FROM sys.databases WHERE name = N'FixTest')
DROP DATABASE [FixTest]
So, as I was able to see in the two folders (data and log), the database is created but suddenly is dropped. And I repeat, the overwrite is set on false.
Bug??