>just a start: you can use SQL Server's sp_executesql SP or the EXECUTE to execute dynamic SQL. To find out the PK you can use sp_primarykeys. See BOL or MSDN Library for more details.
Executing "dynamic" SQL sounds promising. sp_primarykeys does too. I'll check them out when I get back to my own machine on Sunday. Thanks.
Alex
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only