Default Values using Stored Procedure

rmatthew

Well-known member
Joined
Dec 30, 2002
Messages
115
Location
Texas
I have output from a stored procedure that I desperately need to use as the default value of a column...

I cannot seem to write the sp as a UDF due to the use of a temporary table and exec sp_executesql as follows:

insert into #Foo exec sp_executesql @statement=@SQLQuery

Please help
 
I think you could create a stored proc that would contain the code from the first stored proc where you get your value(s) and after that the insert statement...
 
Back
Top