Quote Originally Posted by sattu View Post
first i had tried that way to execute that query the way you have mentioned. But it doesn't work that way.
Well, it works. Could you say what does not work? What have you tried/how looks your code like? What is the shema of your mssql database?

...and a predefined function does not exists.