I have an application which sets up and configures a database. I need to set the max server memory value now. I know that this can be done using the osql command line tool, are there any built in .NET framework objects so that I can do this easier than resorting to running a command line utility through .NET and then parsing the output?

Is there an object which wraps the osql tool?

Thanks,

Jacob438