Store a cache COPY of table locally SQL Server
Is it possible to store a cache copy of the table data locally to avoid t开发者_如何学运维ransfer (data does not change, This I assure it!) in
SQL Server
. SoC++, C#
can know the data stored by SQL in cache and then read the data in cache and compute some things with the table?Is it possible this kind of communication between
SQL Server and C++ or C#
via cache memory copy of table data?- If this is possible, What would be the steps?
ADO.You need to use ADO.NET (Disconnected) DataSets:
1) Create a Dataset
DataSet dsCustomers = new DataSet();
2) Create a DataAdapter, specifying what data to get
SqlDataAdapter daCustomers = new SqlDataAdapter(
"select CustomerID, CompanyName from Customers", conn);
3) Fill the Dataset
daCustomers.Fill(dsCustomers, "Customers");
After which you can Query your Dataset.
精彩评论