Solved

ASP.net SQL and pivot tables

Posted on 2014-01-22
7
1,104 Views
Last Modified: 2014-01-27
Hi

I need to pivot data on my ASP.net web page pulled in via a VB.net data
bind to a cloud SQL database.
I just need a little advice on the best way to go about this.
My SQL query is in VB.net and not inside the SQL database
0
Comment
Question by:murbro
  • 4
  • 2
7 Comments
 
LVL 35

Expert Comment

by:YZlat
ID: 39802696
so where is the data stored? From which source will you be getting the data?

If it is stored in one of the .NET structures such as DataSet, you might not be able to pivot it
0
 

Author Comment

by:murbro
ID: 39802711
The data is stored in a cloud SQL database. I use the  SQLClient with connectin strings to query this
0
 
LVL 35

Expert Comment

by:YZlat
ID: 39803707
What exactly you need? Do you want to re-write the SQL query?
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 

Author Comment

by:murbro
ID: 39803759
I wanted any example in VB.net of pivoting data coming from SQL
0
 

Author Comment

by:murbro
ID: 39805832
Hi YZLat. I have the data in a dataset, which comes from SQL. Is it possible to pivot a dataset?
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 39806192
Example here is in C# but should give you an idea of how pivoting is done on a datatable

http://www.codeproject.com/Articles/46486/Pivoting-DataTable-Simplified
0
 

Author Closing Comment

by:murbro
ID: 39811412
Thanks very much
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question