Anything that you find in SQL object scripts, you can also find them in system tables?



I tried all the INFORMATION_SCHEMA on SQL 2000 and
I see that the system tables hold pretty much everything I am
interested in: Objects names (columns, functions, stored procedures, ...)
stored procedure statements in syscomments table.

My questions are:

If you script your whole database everything you end up having
in the text sql scripts, are those also located in the system tables?
That means i could simply read those system tables to get any information
I would normally look in the sql script files?

Can i quickly generate a SQL statement of all the indexes on my database?

I read many places that Microsoft
says not to modify anything in those tables and not query them since their
structure might change in future SQL versions.

Is it safe to use and rely the system tables?

I basically want to do at least fetching of information i want from the
system tables rather than the SQL script files.
I also want to know if it's pretty safe for me to make changes in these
tables.
Can i rename an object name for example an Index name, a Stored Procedure
name?
Can i add a new column in the syscolumns table for a user table?

Thank you


.



Relevant Pages

  • RE: Can inner join be done on queries?
    ... Thanks for your alternate SQL script, ... Do you know if the query (as ... SELECT [0106 treat srcedat gwsw 3].* ...
    (microsoft.public.access.queries)
  • Re: = Null problem
    ... In the end it is always the SQL engine running it - ... I have a Stored procedure which works fine when I ... > properly when I use ADO.NET connection. ... Or there is no other option rather than change the sql script in Stored ...
    (microsoft.public.dotnet.framework.adonet)
  • = Null problem
    ... Am using ADO.NET connection from my ASP.NET application to connect to MS ... SQL SERVER 2000. ... I have a Stored procedure which works fine when I directly ... Or there is no other option rather than change the sql script in Stored ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Incorrect DTS package version run by scheduled job
    ... Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.SQLDTS.com - The site for all your DTS needs. ... > I would prefer it if the Generate SQL Script option did not generate an> encrypted command line. ... I never use the functionality of right>>>clicking on a package and use the Schedule Package. ...
    (microsoft.public.sqlserver.dts)
  • Counting expression doesnt work when sorted by count - Access 200
    ... However the following SQL script doesn't work. ... In design view the first query is as ... Sort - Descending ...
    (microsoft.public.access.queries)