Transfer SQL Server Objects Errors

Hi. I'm totally new to SSIS (SP1), and I'm having a raft of troubles transferring DB's using the 'Transfer SQL Server Objects Task', which seems to be the closest replacement for the old DTS Transfer Objects tool.

I'm trying to transfer a DB from an SQL Server 2000, where I only have SQL Server authentication (it's a shared hosting environment) to my local SQL Server 2005 server, where I'm logged in using Windows Authentication (although I have the same issues if I use SQL Authentication locally).

Here's the list of errors I'm getting.

  1. If I don't select 'copy all tables', I receive a "table does not exist at source" error. If I do copy all tables, suddenly it can find the same table.
  2. If I select "Drop objects first", and the object doesn't exist in the destination, in throws an error.
  3. The "replace data" doesn't appear to work - it throws a "cannot insert duplicate key" error if the table I'm copying already contains data.
  4. If I copy Primary Keys, and one of the tables doesn't have a primary key, I get a "set identity" error, presumably because it's trying to set an ID on that table at the destination.
  5. Finally, if I delete all data at the destination, I'm currently receiving a "Invalid character value for cast specification". Which I don't get at all - why is it casting at all, if it's copying objects - they should be identical on both sides?
Any and all suggestions would be really appreciated. I'm also having (different) problems transferring objects between SQL Server 2005 servers, but nothing in production, so it's less important.

Cheers,

Steve.

[1862 byte] By [Coreth] at [2007-12-20]
# 1
Steve,
Try the backup and restore option. Right click the database you want to copy go into Task and click backup. Then Copy the backup file to your destination server and restore it. This should copy all the objects including roles.

Asher

asher101 at 2007-9-9 > top of Msdn Tech,SQL Server,SQL Server Integration Services...
# 2
I have posted my comments on the known issues in transferring objects from SQL Server 2000 to SQL Server 2005 in a earlier post available at http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=367885.

Please review that.

KaarthikSivashanmugam at 2007-9-9 > top of Msdn Tech,SQL Server,SQL Server Integration Services...
# 3
BTW, if you want to transfer the entire database, try using "Transfer Database" task.
KaarthikSivashanmugam at 2007-9-9 > top of Msdn Tech,SQL Server,SQL Server Integration Services...
# 4
Hi Asher101.

Yeah, unfortunately, I don't have rights to backup the DB on the shared server. My hosting company is quite happy to charge me $10 to do it, but it's not terribly practical on an ongoing basis.

Steve.

Coreth at 2007-9-9 > top of Msdn Tech,SQL Server,SQL Server Integration Services...
# 5
Thanks, I'll try that now.

Steve.

Coreth at 2007-9-9 > top of Msdn Tech,SQL Server,SQL Server Integration Services...
# 6
Hi. So I tried running this task, and I get the following error:
'Error: The Execute method on the task returned error code 0x80131500 (Drop failed for Database '[dbname]'. ). The Execute method must succeed, and indicate the result using an "out" parameter. '

I've done a little poking about as to what might cause this, with no answers found - if you don't have any suggestions for this, I'll come back to investigate it further tomorrow..

Thanks for your help,

Steve.

Coreth at 2007-9-9 > top of Msdn Tech,SQL Server,SQL Server Integration Services...

SQL Server

Site Classified