No authorized routine named "GETVARIABLE" of type "FUNCTION" having compatible arguments was found

1.4k views Asked by At

I migrated a schema of DB2 v9.1.700.855 to SQL Server 2012 using the tool "SSMA (Microsoft SQL server migration Assistant) for DB2", I can establish a connection, but it shows an error :"Error occurred while collecting data". I checked the log file and it shows the below message

No authorized routine named "GETVARIABLE" of type "FUNCTION" having compatible arguments was found.

How can I resolve this error?

1

There are 1 answers

4
Laughing Vergil On BEST ANSWER

IBM DB2 Session variables have no direct equivalent in SQL Server. You will have to look up the GETVARIABLE command, see what information is being retrieved, and find the SQL Server equivalent (if any).