DataSet ds = new DataSet();
SqlCommand cmd = new SqlCommand("select
* from usersInfo", con);
SqlDataAdapter da=new SqlDataAdapter(cmd);
da.Fill(ds);
string str = ds.GetXml();
|
Dim ds As New DataSet()
Dim cmd As New SqlCommand("select
* from usersInfo", con)
Dim da As New SqlDataAdapter(cmd)
da.Fill(ds)
Dim str As String = ds.GetXml()
|
|
If you enjoyed this post, please support the blog below. It's FREE! Get the latest Asp.net, C#.net, VB.NET, jQuery, Plugins & Code Snippets for FREE by subscribing to our Facebook, Twitter, RSS feed, or by email. |
|||
Subscribe by RSS
Subscribe by Email
|
|||
|
|
Subscribe by RSS
Subscribe by Email
0 comments :