473,396 Members | 1,968 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Can you qry sys tbls to find Triggers, Constrants etc?

I have just been handed a HUGE dB with 100's of SP, TBLs UDF etc etc.

I need to add 1000's of records from a flat file accross dozens of
related tbls ASAP! (You know the drill)

The dB was built with a lot of Business Logic, Constraints etc.

I am a Web APP developer and know a lot of TSQL and can also build
basic triggers and some pretty complex SP and have built solid dB from
scratch but I usually handle business logic and data intergrity before
it even gets to the dB (or at least I like to think I do).

With that said there is no documentation (of course)and I need to
reverse engineer this beast ASAP.

I was hoping there is a way to qry the SYS tbls or some tricks to get
all this info I am looking for.

I use the ALT+F1 short cut on tables all the time and am looking for a
solution along those lines.

Any help would be great and whom ever gives me the key(s) to unlocking
this mess I will give them a free access to a New RSS Fantasy Football
site launching this summer! If you're not into FF then you can give it
to a friend or something.

Jul 23 '05 #1
2 1938
Why don't you download an evaluation version of Sybase PowerDesigner or
simular tool and get that to do the work for you.

I am coding a replacement for Enterprise Manager and can tell you that
getting the table schema from the database requires you to build it
yourself by linking to a few system tables.

The syntax for the procedures, views and indexes are found in the
syscomments table.

The sysobjects table contains the objects names and types in it.

--
David Rowland
http://dbmonitor.tripod.com

Jul 23 '05 #2
gmlear (go*********@gmail.com) writes:
I have just been handed a HUGE dB with 100's of SP, TBLs UDF etc etc.
Huge database? Sounds like a small database to me.
I need to add 1000's of records from a flat file accross dozens of
related tbls ASAP! (You know the drill)

The dB was built with a lot of Business Logic, Constraints etc.

I am a Web APP developer and know a lot of TSQL and can also build
basic triggers and some pretty complex SP and have built solid dB from
scratch but I usually handle business logic and data intergrity before
it even gets to the dB (or at least I like to think I do).

With that said there is no documentation (of course)and I need to
reverse engineer this beast ASAP.

I was hoping there is a way to qry the SYS tbls or some tricks to get
all this info I am looking for.


While a crash-course in system tables might help you, it sounds to me
like you need a data-modelling tool with reverse-engineering capabilities.
Enterprise Manager comes with Visual Modeler. That is a light-weight tool,
but it may take some part of the way.

For more heavy duty stuff there is PowerDesigner from Sybase, Erwin
from Computer Associates and ER/Studio from Embrocadero. Of course,
they come with a hefty license, but at least PowerDesigner is availble
for a 15-day trial. (Although using the trial for production things
may violate the license agreement.) You can get PowerDesigner rrom
www.sybase.com.

But you should not really complain about the constraints being io the
database. Those will tell where not to store the data. :-)
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: tim.pascoe | last post by:
I'm trying to generate scrips for a database, and everything so far has worked fine, except for the triggers. When I try and script existing triggers, all I get is a blank file - no SQL script. I...
4
by: stacdab | last post by:
We have a partitioned view with 4 underlying tables. The view and each of the underlying tables are in seperate databases on the same server. Inserts and deletes on the view work fine. We then...
5
by: Bruce | last post by:
I have several user defined functions which are referenced in triggers and views. For software upgrades, I need to be able to drop the triggers and views which reference these user defined...
0
by: Bruno Lavoie | last post by:
Hello, i'm etablishing a naming convention for a new project under postgresql. For tables, sequences, views, that's ok! I used good naming conventions for this in the past and i'll keep these...
5
by: Simon Jans | last post by:
Hello I'm having serious troubles creating a seach form showing data from multiple tbls, I'll try to explain my problem using a simple example by the way I'm using Acces 2003 tblEquipment ...
0
debasisdas
by: debasisdas | last post by:
trigger sample code Ex#10 ======================= INSTEAD OF TRIGGER ---------------------------------------- create or replace trigger mytrig instead of delete or insert or update on eview...
4
by: --CELKO-- | last post by:
I need to convert a bunch of DB2 triggers to Oracle. Is there any kind of tools for this?
1
by: anuragshrivastava64 | last post by:
I am new to SQL Server. I have got a project where lot of stored procedures ,UDF's and triggers are used. The problem is I am finding all the functions and procedures but not been able to find any...
2
by: Olumide | last post by:
Hello, I've got this nice inner class that I'm holds a set of "FrontPoint" objects as shown below. Unfortunately, the find and insert methods trigger massive C2784 errors. Would someone please...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.