Hi all!
I have a MySQL linked server (MYSQLLNKD) in my SQL Server 2005. I need to get the xml output of a SQL Server view, convert it in a text variable (because it is more than 8000 chars), and than execute a procedure in MySQL having it as parameter.
In order to execute a procedure in MySQL, I have to launch this query in SQL Server:
EXECUTE('CALL mysql_proc(''' + @xmlText + ''')') AT MYSQLLNKD
but I know I can't concatenate text and strings. I also can't convert text to varchar, because I have more than 8000 chars...
So, how can I solve this issue??
Thanks a lot in advantage for your help!