Solved

How to retrive data  inrow/column view

Posted on 2009-05-07
4
162 Views
Last Modified: 2012-05-06
My question is this

I have a database table that contains 1m's of rows. Each row has a product, queue and column value. I need to obtain data from this in a spreadsheet type of view order by product

               column   column  column
queue
queue
queue

What is the best way to obtain this data in a format simular to the above
0
Comment
Question by:robert_a_jenkin
  • 2
  • 2
4 Comments
 
LVL 42

Expert Comment

by:EugeneZ
ID: 24326488
use Export\import utility
from SSMS->right click your  DB-> tasks-> Export data->.... select Write query to specify the data to transfer...

http://www.databasejournal.com/features/mssql/article.php/3580216/SQL-Server-2005-Import--Export-Wizard.htm


or use bcp

http://social.msdn.microsoft.com/forums/en-US/transactsql/thread/31a15a51-f557-499c-96a9-df7faccde98d
0
 

Author Comment

by:robert_a_jenkin
ID: 24326524
My question was not clear I am looking to have this data returned to crystal reports for a report reflecting the data in a grid design.

I am guessing that the crystal report would have to call a stored procedure that would return the results to the report like so

product, queue, column 1, column 2, column 3.... column 8
0
 
LVL 42

Accepted Solution

by:
EugeneZ earned 500 total points
ID: 24329733
for CR :
you can
 or
get Tables : and in place and run select statement\design report from the table fields, etc
or
 as you said
the better solution (if it is good for your report requirements)
Stored procedure..
0
 

Author Closing Comment

by:robert_a_jenkin
ID: 31579022
I went with a stored procedure approach
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Server Degrading on Write 13 63
CROSS APPLY 4 45
Can Unique column have more than one Null? 8 45
Replace Dates in query 14 15
When writing XML code a very difficult part is when we like to remove all the elements or attributes from the XML that have no data. I would like to share a set of recursive MSSQL stored procedures that I have made to remove those elements from …
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

911 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now