General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Title:
Calling a SP from an SP...
Hi All,
I am writting a stored procedure where I want to determine the PK of a table. It seems that sp_pkeys is just the ticket. However, this SP returns a result set, with a column named 'COLUMN_NAME' that contains the PK name.
If I call sp_pkeys in a stored procedure, how can I access the result set it returns to get the value of column name?
Thanks,
BOb
Next
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