I think it is possible with ASP (Not sure about ASP.NET, I haven't used either). Have a look here: http://www.webwizguide.com/kb/asp_tutorials/connecting_to_a_database.asp
But I don't think it's possible with PHP. Why don't you just use MySQL instead?