Re: create/using type dynamically
- From: "Jim Kennedy" <jim dot scuba dot kennedy at gee male dot com>
- Date: Fri, 3 Mar 2006 16:51:18 -0800
"hitchhikar" <reachsonu@xxxxxxxxx> wrote in message
news:1141418779.293361.261830@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Ok Morgan..the busines case is like i hav gt 100 key. Each key has oneDrop the IM speak or I'll resort to using Latin.
or more value. Each key is associated with its own table.
Now i am looping thru the keys in a proc .Now for a key, based on the
keytablename ,i want to create a type and then iteriatin thru all the
values of that key want to use dynamic SQL and FORALL to update that
table ..and thn go on fr scnd key n so on.
I dun want to hardcode the types as tomoro i can add more keys OR
rename a key's table name, which means ill hav to update my sql code
also (the proc is gettin an XML which contains all info of the keys).
So i think u get the idea now
If you are renaming tables then you have a bigger problem. You didn't state
the business case you stated the solution. In engineering the hardest part
is identifying the problem with sufficient detail to work towards a
solution. Please state the business case or business problem you are trying
to solve. (not the engineering solution).
Jim
.
- Follow-Ups:
- Re: create/using type dynamically
- From: hitchhikar
- Re: create/using type dynamically
- References:
- create/using type dynamically
- From: hitchhikar
- Re: create/using type dynamically
- From: DA Morgan
- Re: create/using type dynamically
- From: hitchhikar
- create/using type dynamically
- Prev by Date: Re: ** help with query?
- Next by Date: Re: problem with stored procedure
- Previous by thread: Re: create/using type dynamically
- Next by thread: Re: create/using type dynamically
- Index(es):
Relevant Pages
|