Quote Originally Posted by gandolf989 View Post
It seems like you want dynamic sql. But who can tell.

Hey the first code u gave is working absolutely fine. Thanks for that.