Thanks for the quick reply. I'm using the stock Pubs database and the code posted above by Mahesh with no changes. If I copy the code above, paste it into...
I've found the code posted by Mahesh in 2 places on the web and neither of them work. I've copied and pasted the Create Procedure code into the Pubs...