I am using ODBC to connect to an MSSQL database. I am polling the database every 100ms to check sensor data that is being logged. I really want to minimize the resources that the program uses as much as possible.
Right now I am using an odbc.DataReader and an odbc.OdbcCommand to pull the data from the table. I don't have a need to hold the data in a DataSet. I pull the data, do some basic calculations, and come around for the next sample. Does anyone have suggestions about how to pull this data as efficiently as possible and avoid any memory leaks?
Right now I am using an odbc.DataReader and an odbc.OdbcCommand to pull the data from the table. I don't have a need to hold the data in a DataSet. I pull the data, do some basic calculations, and come around for the next sample. Does anyone have suggestions about how to pull this data as efficiently as possible and avoid any memory leaks?