Hi,
I'm in charge of an oracle db where we don't have any documentation (at all). And at the moment I need to know HOW a table is getting populated.
Ideally, I'd like to know from which procedure, trigger, whatever... this table gets its data from.
Any idea would be much appreciated.
Thanks.
...
Hi All,
Hope you can help.
Is there a way to reliably detect when a stored proc is being run on SQL Server without altering the SP itself?
Here's the requirement. We need to track users running reports from our enterprise data warehouse as the core product we use doesn't allow for this. Both core product reports and a slew of in-hous...
I have the following schema:
Database: test.
Table: per_login_user, Field: username (PK), password
Database: wavinet.
Table: login_user, Field: username (PK), password
What I want to do is to create a trigger. Whenever a password field on table per_login_user in database test get updated, the same value will be copied to field...
Lets consider a Table STUD and a ROW-Level TRIGGER is implemented over INSERT query.. My scenario goes like this, whenever a row is inserted, a trigger is fired and it should access some script file which is placed in the hard disk, and ultimately should print the result. So, is this thing is possible? and if yes, then this thing should ...
I am trying to activate the native hover effect of a div from another div. I understand that I could do this all in jQuery and add the styles in there, but would rather leave the native :hover in the CSS. I'm just wondering if there is a way for this to work:
$("#div1").live("mouseenter", function() {
$("#div2").trigger("mouseenter");...
i use the statement drop trigger if exist TRIGGER in sqlite but sql server doesnt like the if statement. (i guess exist is the offending word). I do this right next to my create trigger statement because i want to drop older triggers with the same name so i can replace it with this new one.
How do i do this in SQL server?
...
The first line seems to be correct. The second line was my SQLite code. With code i get an exception about an error near trigger. In VS it says the multipart identifier could not be bound. With SQLite the new stands for the row being insert. So i would like to increase the count of whomever the subscription recipient is. How do i do that...
Guys, I have a table called tblNames and one of my fields in this table is called 'UpFileName'. Is it possible to create an insert trigger that would automatically replace all '%20' in the UpFileName field to underscores '_'?
I'm using SQL Server 2005.
...
The line cmd.ExecuteNonQuery();
cmd.CommandText
CREATE TRIGGER subscription_trig_0 ON subscription AFTER INSERT AS UPDATE user_data SET msg_count=msg_count+1 FROM user_data
JOIN INSERTED ON user_data.id = INSERTED.recipient;
The exception:
Incorrect syntax near the keyword 'TRIGGER'.
Then using VS 2010, connected to the ve...
First of, a simplified version: I am wondering if I can create a trigger to activate during INSERT (it's actually LOAD DATA INFILE) and NOT enter records for an RMA already in my table?
I have a table that has no records that are unique. Some may be legitimate duplicates but there is one field that I can use to know if the data has bee...
I ran into a problem as I tried to create two TIMESTAMP columns in my database. One called created and one called updated. I figured it would be easy to set the default value of both to CURRENT_TIMESTAMP and then ON UPDATE CURRENT_TIMESTAMP for the updated column. But for some reason MySQL means that's a bad idea... so I have been lookin...
I have written this trigger in mysql 5:
create trigger changeToWeeklly after insert on tbl_daily for each row
begin
insert into tbl_weeklly SELECT * FROM vehicleslocation v
where v.recivedate < curdate();
delete FROM tbl_daily where recivedate < curdate();
end;
i want to archive records by date, move yesterday inserte...
Using MySQL 5.1.x
Trying to add a trigger to a table:
DELIMITER $$
CREATE TRIGGER group AFTER INSERT ON dataTable
FOR EACH ROW BEGIN
UPDATE dataTable SET groupName = mid(longName,1,4) WHERE groupNAME IS NULL;
END$$
When I insert a record there is no update made. Is there a syntax error? Or can I not run the Update query on the aft...
Here's an example of what I'm trying to accomplish:
<Window x:Class="CheckBoxBinding.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<StackPanel>
<CheckBox Name="myCheckBox">this</CheckBox> ...
Is there a way to attach a trigger (and a subsequent animation) to a control which has a property databound, and have that trigger fire when the value of that databound property changes (to ANY value). I don't care what value it is, I just want to show a notification when the value changes to something else.
Might be very obvious, but I...
Hello,
I have a strange wird problem with a trigger:
I set up a trigger for update other tables after an insert in a table.
If i make an insert from mysql console, all works fine, but if i do inserts from external python script, trigger does nothing, as you can see bellow.
When i insert from console, works fine, but insert THE SAME D...
I need to be able to change the style of a control when a property and data value are true. For example, my bound data has an IsDirty property. I would like to change the background color of my control when IsDirty is true AND the control is selected. I found the MultiTrigger and MultiDataTrigger classes...but in this case I need to some...
Hey,
I have a DropDownList, and when SelectedIndex is changed any event is triggered.
I'm putting on it for exemple msgbox, but it's not working.
What's the problem ?
EDIT;
now that's working after doing AutoPostBack = True.
I did this, but i't giving me always '0' as result
Protected Sub VD_SelectedIndexChanged(ByVal sender As O...
As it seems like I have found a bug in jquery:
http://stackoverflow.com/questions/2916152/jquery-draggable-throws-error-when-mouseup-is-triggered
Can I get some advice on how to implement the following functionality without using the trigger?
I want to be able to stop an element to be dragged when a condition has been reached, I have bee...
Is there any possibility to display selected item of the ComboBox (after popup closing) in a way that is different from its displaying in DropDown List (There are players number and name in the dropdown list, but after list closing I want to see only its number).
How can I change a background for the player with some Flag?
As far as I...