Uzytkownik "David Portas" <REMOVE_BEFORE_REPLYING_dportas@acm.org> napisal w
> Where are the names from these objects coming from
from text file I got
> if you have so many schemas that you need a loop
first idea is to build scripts in engineer maneer (reusing code blocks - not
to copy them - so managing any changes is better)
second reason - I got my analysis data model in RaRose, which doesn't really
support automatization of creating data model. I use creating
quasi-sqlserver scripts, so I have object names and so. It's not really
large amount of objects (a few schemas, about 100 tables) - but it does
change any time.
Sorry if it sounds a bit werid :-) I'm a newbie
third idea was to create that way descriptions to my obiects (tables,
attributes) in a loop (having descriptions in xls file, for example)
All hints will be appeciated.
ps:
> then you definitely have too many schemas...
you are definitely right.
> are using them in a highly unconventional manner.
like, let's say - to make some perfiormance tests/statistics? (I really
don't do so :-))
Erland Sommarskog - 28 Dec 2006 22:33 GMT
> Uzytkownik "David Portas" <REMOVE_BEFORE_REPLYING_dportas@acm.org> napisal
>> Where are the names from these objects coming from
>
> from text file I got
But text file is not SQL, but you have to transform it to SQL?
Doing this from SQL is not really fun. If you are on SQL 2005, you
could do this through the CLR, but you would still go through hoops.
Do this from a client application: Perl, VBscript or whatever your
favourite may be.

Signature
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
fireball - 29 Dec 2006 09:22 GMT
Uzytkownik "Erland Sommarskog" <esquel@sommarskog.se> napisal w wiadomosci
> But text file is not SQL
well, the point is to put it into script.sql any way which I will be able to
fetch it into my loop
Erland Sommarskog - 29 Dec 2006 09:53 GMT
> Uzytkownik "Erland Sommarskog" <esquel@sommarskog.se> napisal w wiadomosci
>
>> But text file is not SQL
>
> well, the point is to put it into script.sql any way which I will be
> able to fetch it into my loop
Without having seen your file, it's difficult to tell, but it does not sound
as if trying to read it from SQL is a very good idea. You probably much
better off doing this in a client language.

Signature
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx