hi neena,
<%@ language="VBscript" %>
<%
conn="driver={drivername};server=212.636.636.9;UID=;PWD=;databse=;option=";
Set aconn=Server.CreateObject("ADODB.Connection")
aconn.Open conn
query="Select * From ...."
Set rs=aconn.Execute(query)
%>
neena,
I think this will work with any kind of DB I mean even remote database of different type like SQL,ORACLE,MySQL ..provide you specify the correct driver and this is a DSN less connection..
By the way if you are working on the same server and the DB server is already integrated with it then you need not mention all of them
just create a server object
conn=Server.CreateObject("ADODB.Connection");
conn.open(DSN=;UID=;PWD=)
I hope that will help you..if you are working on remote databases see that the DB Server has set the privelege to access from remote servers by default this permission is not given unless you ask for it..
Good Luck!.
s.r.k@onebox.com
s.r.k.reddy