Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi....I am creating one function inside that function i am executing the sql query using EXECUTE @SQL command here @sql contain sql query to create a view.but
I am getting the following error while executing my function .

"Invalid use of a side-effecting operator 'EXECUTE STRING' within a function."



How can i execute my sql query inside function.
Posted

1 solution

Here is the link for you

http://www.4guysfromrolla.com/webtech/102300-1.shtml[^]

Thanks
--RA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900