RE: Contruct grid with stored procedure
From: John Bell (JohnBell_at_discussions.microsoft.com)
Date: 10/14/04
- Next message: Roji. P. Thomas: "Re: Error -2147217900 (80040e14)"
- Previous message: John Bell: "RE: INSERT from EXEC sp_change_users_login 'Report'"
- In reply to: Mark Gilbert: "Contruct grid with stored procedure"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 14 Oct 2004 01:39:07 -0700
Hi
Sounds like you need a dynamic pivot table!
Did you check out:
http://www.sqlteam.com/item.asp?ItemID=2955
In general you are better leaving this sort of thing to the client.
e.g.
http://www.rac4sql.net/
John
"Mark Gilbert" wrote:
> I'm trying to work out the best way to store tables of data in SQL. By
> tables i mean, the data is intended for a grid of data (a html table).
>
> The tricky thing is, the tables are going to vary in number of columns
> and datatypes (some string, some numeric).
>
> Currently i have setup db tables similar to the following...
>
> tblColumn
> =========
> ColumnID - numeric (key)
> CellProdID - (The product the table is for, will tie everything
> together)
> ColumnNumber - int (column position)
> ColumnTitle - varchar
> ColumnType - bool (string or int)
>
> tblCell
> =======
> CellID - numeric (key)
> CellColumnID - (Column it falls under)
> CellLineNumber - (line number, to tie the cells for this line in the
> table)
> CellText - varchar (if type is string)
> CellNumber - int (if type is int)
>
>
> Is it possible to create a stored procedure which will construct a
> table of rows suitable for binding to a dataview?
>
> I can't get my head around it, at the moment i have a load of messy
> code in vb to do it.
>
- Next message: Roji. P. Thomas: "Re: Error -2147217900 (80040e14)"
- Previous message: John Bell: "RE: INSERT from EXEC sp_change_users_login 'Report'"
- In reply to: Mark Gilbert: "Contruct grid with stored procedure"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|