J
John
I'd like to create a typed dataset based on a db-defined structure (ie
defined in records in the db, not in metadata!)
I tried a stored procedure (SQL Server 2005) that's creating some dynamic
sql based on the queried structure, something like:
create procedure test as
exec ('select cast(1 as int) as [first field], select cast(1 as bigint)
as [second field]')
return 0
(the real sproc generates the string dynamically of course). However I can't
seem to create a typed dataset from this!
Any hints?
The other approach I guess would be to just build the XSD file based on
query result, bypassing the visual designer altogether..? Loading and saving
arn't an issue - I just need the structure.
Thanks,
John
defined in records in the db, not in metadata!)
I tried a stored procedure (SQL Server 2005) that's creating some dynamic
sql based on the queried structure, something like:
create procedure test as
exec ('select cast(1 as int) as [first field], select cast(1 as bigint)
as [second field]')
return 0
(the real sproc generates the string dynamically of course). However I can't
seem to create a typed dataset from this!
Any hints?
The other approach I guess would be to just build the XSD file based on
query result, bypassing the visual designer altogether..? Loading and saving
arn't an issue - I just need the structure.
Thanks,
John