Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SELECT after INSERT does'nt return resultset in Stored P
Message
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Miscellaneous
Thread ID:
00522072
Message ID:
00528096
Views:
20
I fixed this. Thanks.

Problem was with a filter I was passing as an argument, like:
sp_test "NAME='O'BRIEN'"

should have been:
sp_test "NAME='O''BRIEN'" -- forgot to add additional single quotes

The Stored Procedure in turn uses an EXEC, with the filter:
EXEC( 'select * from test where ' + filter )
Bharat Sanghvi
Vice President, Information Technology
Deyta
Continuous Quality Measurement Systems
Previous
Reply
Map
View

Click here to load this message in the networking platform