I have a service broker (MSSQL 2008) with thousands of messages in the queue for some forensics, I have the top # 10,000 messages are selected in the ## Temp table. I have successfully bcpd global temp table in a file successfully. Now I have to take BCP in a new table in the local MSSSUl instance. The table should be kept in the same schema queue.
However, I can not know what the structure of the new table should be.
I did this:
exec tempdb..sp_columns '##x' and then try to create a new table With a table statement, but BCP-in does not seem to work.
I think that the queue's schema should be somewhere in MSDB, or there should be a way to clearly get the column type
any help from a service broker queue Could?
Thank you.
If you already have a temporary table and have proper permissions.
Comments
Post a Comment