Hi there<BR><BR>We currently have an ASP page that calls functions from an activeX dll. The function inside the dll connects to an SQL server using a DSN ans RDO. Everytime we try to connect an error occurs: <BR><BR>8004 Login failed- user: reason:not defined as a valid user of a trusted SQL Server connection.<BR><BR>If I compile and run an exe that uses this dll, everything works just fine.<BR><BR>we set up the DSN through settings-&#062;control panel-&#062;ODBC<BR><BR>Is this a SQL server user-configuration problem or is it a dll problem or is it something else? HELP<BR><BR>thanks in advance.