开发者

Copy MS-SQL table to local array

开发者 https://www.devze.com 2023-04-06 08:10 出处:网络
Guys! Can anyone tell me what is the best approach in VB.NET to get the entire table from the Ms SQL 2008 R2 database and save it in the program (dynamic?) array or开发者_C百科 something which is eas

Guys!

Can anyone tell me what is the best approach in VB.NET to get the entire table from the Ms SQL 2008 R2 database and save it in the program (dynamic?) array or开发者_C百科 something which is easy to translate into bytes and send to other device via socket communication?


you can use DataSet to keep your Table and write that dataset to XML like bellow

Using Stream = New NetworkStream(socket)
    dataSet.WriteXml(Stream)
End Using
0

精彩评论

暂无评论...
验证码 换一张
取 消