I need to connection to a database using

<SCRIPT Language="VBScript">
Sub DoJob(iID)
'How do I connect to a SQL2000 database from here. I can do it no problem just using straight forward ASP coding, but its been quite some time since I've used VB script.
End Sub
</SCRIPT>

It has to be like this as this function is called when the browser is closed.