Navigation:  OVERVIEW > 2.3 NAMESPACES >

2.3.5 ManagingEnergy DataMSSQL Namespace

Previous page Next page
  rev. 2010-10-07        

An implementation of the IManagingEnergyDataAdaptor interface which interacts with a Microsoft SQL database has been implemented in the API as ManagingEnergy.Data.MSSQL.SQLAdaptor.

Simply pass the database connection string to the constructor and a connection will be made.

// Create an instance of the MSSQL implementation of the IManagingEnergyDataAdaptor

ManagingEnergy.Data.IManagingEnergyDataAdaptor sqlDataAdaptor = new ManagingEnergy.Data.MSSQL.SqlAdaptor("Data Source=sqlserver;Integrated Security=True;");



2.3.5_ME_DataMSSQL_Namespace         ©2017 Managing Energy Inc.