troubleshooting Question

Creating a Virtual Table in a Stored Procedure

Avatar of CMES-IT
CMES-ITFlag for United States of America asked on
Microsoft SQL ServerMicrosoft SQL Server 2005
7 Comments3 Solutions529 ViewsLast Modified:
Hi,

Please see question #: https://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SQL-Server-2005/Q_22774332.html

I have a Stored Procedure that is using an IN clause, but it's having a problem converting data types. One solution was given using EXEC(), and while it works, I cannot use that solution because it requires relaxing my security settings. Another solution was given - parsing a string variable, putting the parsed variables into a virtual table, and then using that virtual table to complete the stored procedure. This question is devoted to the second solution (or an alternate that does not require relaxing my security settings).

So, can someone please create some code that would demonstrate how to use the virtual table? Thanks.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 3 Answers and 7 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros