I'm building a web service which needs check the SQL Server. Now, I finished the code for SQL Server. Everything is ok if it is a windows form application. I simply copied the code to a function in the Web Service, however, it reports error when I invoke the service function. Where can I find some examples like that?

thanks