Hi, I've been wrestling for a few weeks now, trying to create an OnlineTransfer Database task inside an SSIS package.
My findings are as follows:
Firstly, I got a lot of these errors: "[User] is not a valid login or you do not have permission" This seems to be because it won't work if there are any SQL logins (note Logins, not users) in the source server/database that don't already exist
in the destination server. I tried a transfer logins task beforehand but it didn't seem to transfer the SQL logins.
I was manually able to get over this error by creating all the SQL logins manually on the destination server. Once all the logins were in place, I then got this error:
Error: The Execute method on the task returned error code 0x80131500 (ERROR : errorCode=0 description=Invalid column name 'Space'. helpFile= helpContext=0 idofInterfaceWithError={C81DFC5A-3B22-4DA3-BD3B-10BF861A7F9C}). The Execute method must succeed, and
indicate the result using an "out" parameter.
Am I just wasting my time? Does this not actually work? Or am I doing it wrong? The source database has a few Primary/foreign key constraints but I don't see anything in the documentation (from a book I'm reading) or from books online that suggests that
you can't do an online copy from a database with PK/FK constraints.
Any advice you can offer would be greatly appreciated. Maybe the offline method works better, but I can't do anOffline copy because the source is a live database that needs to be online 24/7.