suicidaltendencies
Programmer
I'd like to pull data from my SQL Server into a DataSet and retrieve the XML data from it. Then use XSLT to transform the XML. Does any have any clues on this exact situation?
Thanks,
Harold
Thanks,
Harold
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dim oCon As SqlConnection = New SqlConnection("... your connection string ...")
Dim daCmd As SqlDataAdapter = New SqlDataAdapter("... your select command ...", oCon)
Dim dsTest As DataSet = New DataSet
Dim theError As String
Try
oCon.Open()
daCmd.Fill(dsTest, "Test")
Dim doc As XMLDataDocument = New XMLDataDocument(dsTest)
Dim writer As XMLTextWriter = New XMLTextWriter("C:\inetpub\[URL unfurl="true"]wwwroot\MyDocs\test.xml",[/URL] nothing)
writer.Formatting = Formatting.Indented
doc.Save(writer)
writer.Close()
Catch ex As Exception
theError=ex.Message()
Finally
oCon.Close()
End Try