all groups > sql server dts > january 2006 >
You're in the

sql server dts

group:

Transfer SQL Server Objects Task - Source Object Owner Problem


Transfer SQL Server Objects Task - Source Object Owner Problem GavinM
1/20/2006 11:37:02 PM
sql server dts:
We are attempting to use the Transfer SQL Server Objects Task to migrate
tables (schema, indexes, triggers & data) from SQL Server 2000 to SQL Server
2005.

It works fine if we are able to log into the source database as dbo but that
is often not possible.

The problem can be reproduced as follows:

Create a SQL Server 2000 database named source.
Create a SQL Server 2005 database named dest.
Add a table named source.dbo.table1 with a primary key and add a few rows.
Create a login named testlogin using SQL Server authentication, with source
as the default database, testlogin as the user name and in the public role.
Grant testlogin select permission on source.dbo.table1

Create a new Integration Services project.
Add a Transfer SQL Server Objects Task to the Control Flow
Set the Source connection to the server, using the testlogin account.
Set the source database to source.
Set the destination connection to the server, using Windows authentication.
Set the destination database to dest.
Set CopyData = True and CopySchema = True
Expand ObjectsToCopy and select Table1

Run the task.

It fails with the error: -1073548445,0x,Table "Table1" does not exist at
the source.

A trace on the source database reveals that the following query was executed
immediately prior to the error:

SELECT
stbl.name AS [Schema],
tbl.name AS [Name]
FROM
dbo.sysobjects AS tbl
INNER JOIN sysusers AS stbl ON stbl.uid = tbl.uid
WHERE
((tbl.type='U' or tbl.type='S'))and(tbl.name=N'Table1' and
stbl.name=N'testlogin')

Table1 is not owned by testlogin. The query always returns zero rows.

This appears to be a bug. Please let me know what our options are.

Thank you.

RE: Transfer SQL Server Objects Task - Source Object Owner Problem MarkGsch
2/6/2006 4:03:27 PM
Gavin,

I am getting the same problem. Has MSFT verified the bug, or provided a
workaround ? Thanks

[quoted text, click to view]
RE: Transfer SQL Server Objects Task - Source Object Owner Problem GavinM
2/6/2006 4:43:28 PM
Mark,

I called Microsoft professional support on January 24 and opened case
#SRX060124604812.

It is currently assigned to Gary Whitley.

So far he has been able to reproduce the problem but has not provided
confirmation that it is a bug or a reasonable workaround.

For the moment, we have resorted to copying objects using the following steps:

1. Script all the objects
Right click on the database in management studio object explorer and select
Tasks -> Generate Scripts.

2. Execute the scripts in the target database

3. Transfer the data
Right click on the database in management studio object explorer and select
Tasks -> Export data.

The problem with #3 is that you have to click the Edit button and enable
identity insert individually for every table that has an identity column.
This is no fun at all when there are hundreds of tables to be transfered.

Gavin M
AddThis Social Bookmark Button