Click here to Skip to main content
15,892,697 members
Articles / Database Development / SQL Server

SQL Reporting Services with Dynamic Column Reports

Rate me:
Please Sign up or sign in to vote.
4.15/5 (32 votes)
8 Aug 20053 min read 364.5K   1.8K   56  
An article on generating dynamic column reports.
��/*This procedure is for Showing an example and You have to following your own standards and Author is

not giving any guarantee that this code will work*/





if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tblDynamic]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)

drop table [dbo].[tblDynamic]

GO



CREATE TABLE [dbo].[tblDynamic] (

	[Col1] [char] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,

	[Col2] [char] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,

	[Col3] [char] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,

	[Col4] [char] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,

	[Col5] [char] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL 

) ON [PRIMARY]

GO



By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United States United States
Jeykey is a software engineer working for an MNC and he has been to programming from 1999.
His programming experience includes Dot net, Java, VB 6.0 SQL AND ASP. He is into playing chess, football, cricket and badminton.He is interested in human psychology and farming.

Comments and Discussions