473,396 Members | 1,997 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.

Triggers


I'm just starting to use triggers in my databases and find the support
in Enterpise Manager lacking.

Using Enterprise Manager and Query Analyzer you can maintain the
triggers, but it's cumbersome.

Are there better tools for creating and managing triggers?

Mark Flippin

Jul 20 '05 #1
4 2503
Mark Flippin (me******@comcast.net) writes:
I'm just starting to use triggers in my databases and find the support
in Enterpise Manager lacking.

Using Enterprise Manager and Query Analyzer you can maintain the
triggers, but it's cumbersome.

Are there better tools for creating and managing triggers?


You don't specify what is cumbersome, but I can't see that trigger should
be any more cumbersome to use than stored procedure. That's true, that
maintaining anything from Enterprise Manager is cumbersome, and I usually
recommend people to stay awau from it...

In our shop we use a third-party text editor for all our SQL editing. This
editor, Textpad, has no special SQL capabilities, but is just a good editor.
As a devloper I load the SQL file through a command-line utility that
I fire off from within Textpad.

All our files are under source control. If we have a table widgets, the
definition for that table is in widgets.tbl. Indexes are in widgets.ix,
foreign keys are in widgets.fkey and triggers in widgets.tri. Normally
we have one object per file, with the name macthing the object, but
triggers are an exception. All triggers for one table is one file.
--
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 20 '05 #2
Hi

To add to Erlands comments you can script triggers to a window in the object
browser in QA, therefore there you can stay away from EM!!

John

"Mark Flippin" <me******@comcast.net> wrote in message
news:m9********************************@4ax.com...

I'm just starting to use triggers in my databases and find the support
in Enterpise Manager lacking.

Using Enterprise Manager and Query Analyzer you can maintain the
triggers, but it's cumbersome.

Are there better tools for creating and managing triggers?

Mark Flippin

Jul 20 '05 #3

Sorry,

By cumbersome, I meant finding the triggers and reviewing them. In EM,
there's too many steps, and you really can't get a feel for the
triggers for each table. The interface just doesn't flow.

I didn't realize that the triggers would show up in the QA object
browser. Thanks John.

This is more of what I was looking for, a quick graphical
representation of the triggers for a table, with the ability to
maintain them

The plus (to me anyways) is that the object browser provides that same
type of support for indices, constraints, and dependencies; items
that I've never really enjoyed maintaining with EM.

I've always used QA to develop and test my queries, procedures, udf's,
etc., but I've never really used the object browser. Ooops

I believe my use of EM is going to be significantly reduced.

Mark Flippin

Jul 20 '05 #4
Hi

Don't forget Erlands recommendation for using source code control. Using VC
and breaking down your objects into autonomous scripts, takes you away from
the need for using EM or even QA to find them. You gain auditability, the
ease of rolling back changes, ability to build any version of your database,
and reduced debugging time (especially in the scenarios where it had
previously seemed to work!). It's a very easy step to move to automated
builds at whatever frequency you require (and so catch problems earlier,
reduce your release process time and improved robustness and confidence).

John

"Mark Flippin" <me******@comcast.net> wrote in message
news:59********************************@4ax.com...

Sorry,

By cumbersome, I meant finding the triggers and reviewing them. In EM,
there's too many steps, and you really can't get a feel for the
triggers for each table. The interface just doesn't flow.

I didn't realize that the triggers would show up in the QA object
browser. Thanks John.

This is more of what I was looking for, a quick graphical
representation of the triggers for a table, with the ability to
maintain them

The plus (to me anyways) is that the object browser provides that same
type of support for indices, constraints, and dependencies; items
that I've never really enjoyed maintaining with EM.

I've always used QA to develop and test my queries, procedures, udf's,
etc., but I've never really used the object browser. Ooops

I believe my use of EM is going to be significantly reduced.

Mark Flippin

Jul 20 '05 #5

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

Similar topics

11
by: raulgz | last post by:
I need audit triggers that change columns value in the same record that fire trigger. I need how to do.. Thanks..
1
by: jason_s_ford | last post by:
I have several sql server databases that were recently moved to a new server. In the process of migrating the databases, any triggers and constraints attached to tables were removed on accident. ...
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...
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...
0
debasisdas
by: debasisdas | last post by:
This thread contains some useful tips/sample codes regarding TRIGGERS in oracle, that the forum members may find useful. TRIGGERS: =============== Database trigger is a PL/SQL block that is...
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?
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: 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: 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
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.