binding pivotchart with sql server in vb.net

O

omar_aa

hi !

i have written the following code to programmatically bind the pivot chart
with sql server but till now i m not getting any success. i am pasting my
code below.plz help me .thanks.



Dim oconnection As SqlClient.SqlConnection = New
SqlClient.SqlConnection("Server=awais;Database=statlogs;integrated
security=true")

oconnection.Open()

Dim oselectcommand As New SqlClient.SqlCommand("select date from
designfile", oconnection)

Dim odataAdapter As New SqlClient.SqlDataAdapter(oselectcommand)

ptable.ConnectionString = "Server=awais;Database=statlogs;integrated
security=true"

Dim odataset As New DataSet("ptable")

odataAdapter.Fill(odataset, "abc")

ptable.DataMember = "196$"

cspace.DataSource = ptable

oconnection.Close()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top