1. To specify a DSN-less connection using the Data control, set its Connect property as follows:
Data1.Connect="ODBC;DSN=;Driver={SQL Server}; Server=YourSqlServer;Database=YourDatabase;UID=Dat abaseUserName;pwd=DatabasePassword;"
2. Btw why do you want to use DAO to connectr to SQL Server? If you have a choice I suggest you go for ADO as it is designed for this .. while DAO is designed for Access db.
Best Regards
Vadivel
MVP ASP/ASP.NET
http://vadivel.thinkingms.com