Use ADO. See the Connection Strings section for the string for SQL Server and other code at: http://www.erlandsendata.no/english/...php?t=envbadac