开发者

Copy MS-SQL table to local array

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜