December 12, 2012 at 4:47 am
I came acroos a problem shared by a developer in my firm,
He cretaes a SP & generates a report, now while doing this the columns of the reports are dynamically created & hence the max limit reaches upto 1024 columns..
But he wanted to add some more colimns in it.. how can this be solved :w00t:
Any help
************************************
Every Dog has a Tail !!!!! :-D
December 12, 2012 at 5:09 am
I would look at why you think you need more than 1024 columns in a report.
Cursors never.
DTS - only when needed and never to control.
December 12, 2012 at 5:19 am
Actually the information in the report which is required itself is more than 1024 columns...
how to get rid of this?
************************************
Every Dog has a Tail !!!!! :-D
December 12, 2012 at 5:25 am
you can maintain the column's list in dtaabase and fetch with the help of additional parameter (says reportID ) in stored proc. see below
table defintion (ColumnID, ColumnName , reportID)
table will have
1, 'EmpName' , 45 (reportID)
2, 'salary' , 45
etc
So NOw with the help of additional param in SP , you cna retrieve the column list and use in your dynamically.
column addition can be done in above whenever developer ask
-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done;-)
December 12, 2012 at 5:29 am
bhuvnesh, u mean to say that by adding an additional parameters in sp we can extend the columns more than 1024?
************************************
Every Dog has a Tail !!!!! :-D
December 12, 2012 at 2:03 pm
I think someone needs to rethink the idea that human beings are going to be able to make much use of a report with 1024 + columns. The idea that anyone could possibly need all 1,024 + all at the same time is absurd, unless they plan on subjecting that data to analysis in Excel or some other analysis tool, in which case maybe it's time to find out what the analysis needs to be and re-think what the report really needs to do. Maybe it should be an ETL process instead that loads a spreadsheet with the data, but a report with that many columns makes absolutely no sense at all.
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply