Connecting to SQL Server using non-visual components

Creating a non-visual MTS component to access a SQL Server database.  I use
a MTS Data Module to drop on the TDatabase and TQuery.  I can set the
TDatabase.Connected to true so I know we can access the SQL Server.  The
component compiles cleanly, however, while running a test program to call
this component, it bombs as soon as it tries to access the TDataModule and
any of the properties.  Any thoughts???

Emily J. Bochy