Solved

ASP.net SQL and pivot tables

Posted on 2014-01-22
7
1,091 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
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 

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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

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