Help with creating a sql file that will capture any database table changes.
We are in the process of creating DROP/Create tables, and using exp/imp data into the tables (the data is in flat files).
Our client is bit curious to work with. They do the alterations to their database (change the layout, change the datatype, drops tables) without our knowing. This has created a hell lot of issues with us.
Is there a way that we can create a sql script which can capture any table changes on the database, so that when the client trys to execute imp batch file, the sql file should first check to see if any changes are made. If made, then it should stop execution and give an error message.
Any help/suggestions would be highly appreciable.
Thanks,
Just to clarify...
1. DDL commands are like CREATE, DROP, ALTER. (These are different than DML commands - INSERT, UPDATE, DELETE).
2. The DDL trigger is created at the database level, not on each table. You only need one DDL trigger.
3. You can choose the DDL commands for which you want the trigger to fire (probably, you'll want CREATE, DROP, ALTER, at a minimum).
4. The DDL trigger only fires when one of these DDL commands is run.
Whether you have 50 tables or 50,000 tables is not significant to performance in this context.
What's signficant is how often you'll be executing the DDL commands on which the trigger is set to fire and whether the DDL commands execute in acceptable time with the trigger in place.
Similar Messages
-
I've created a script to copy large files from one system to another system. Unfortunately the transaction language of that system isn't feature rich, so I can't code a loop to copy multiple files to move concurrently. My goal is to create a batch file that
will do the loop of copying multiple files, after being called by the application that is copying the large files one at a time. Can I get some pointer on how to do this? Basically, the code is like this:
Copy from \\Server_1\directory\sent_file.xyz
To \\Server_2\Directory\received_file.abc
So the purpose is to perform the successful copy, then if the copy is good, execute the loop until completed.Might look around here.
http://gallery.technet.microsoft.com/scriptcenter/site/search?f%5B0%5D.Type=RootCategory&f%5B0%5D.Value=storage&f%5B0%5D.Text=Storage
Or ask over here.
MSDN Scripting forum
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows]
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights. -
hi sorry if this is not the place to post the topic but was not sure where to post it.
i have make an application that has some images and a database but i would like to make a "exe" or somthing so that the client dose not have to open an ide and click run. they can just double click on somting. am not sure about how most of you distrbute your apps. can you help me please.
the client will be useing windows 95.
i know that a jar file can do this but i am not sure on how to change the refrences in the code to include the images and every thing. and how would i go about getting it into jar form
thanks niburYou can create an executable jar.
Note that even if you do this, the user will need to have a JRE installed on their machine for this to run.
Here's how you can make this executable jar:
Replace all code that refers to the filesystem (like if you do "File f = new File("c:\myDirectory\file.txt");") to use resources:
http://java.sun.com/j2se/1.4.2/docs/guide/resources/index.html
Create a manifest file that has a Main-Class: attribute.
Then use the "jar" tool to create the jar:
http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/jar.html
That doc has "see also" links at the bottom that can tell you about executable jars and manifest files.
If you're using an IDE, the IDE probably has a tool to create jars for you. In Eclipse, it's under File -> Export. Check your IDE's docs for details. -
I've got a game that has a folder with Saved Games (Okay, it's Minecraft). I don't always have my external drives because I take my Mac Mini from my house to my friend's house and of course back after we finish playing.
There are times where I want a back up so that if something happens we can restore it as easily as possible.
What I've been doing is copying the particular saved game and pasting it to my desktop, replacing the new backup over the old backup. I'd like to be able to create a "batch file" so that I can just double-click on it and it will copy and paste overwriting the old version.
Since this is being automated I've been thinking. It would be nice to have 10 backups which I would like to have numbered from 1 to 10 (and not 0 to 9).
I'd like the batch file to delete backup 10 then rename backup 9 to 10 and 8 to 9 and so forth until backup 1 becomes backup 2 and then my live copy then gets copied to my desktop. I guess that one really doesn't need a number after it. It can have the exact same name.
Don't worry about automating the restore. I just want the backup part of it automated. I'm not a UNIX guy but I've tried to figure it out and it is just not working. So ... if someone out there can reply with a solution for me that would be great.
Extra credit for automatically compressing the backups with the built in compression utility so my backups use less space.
Thanks in advance.I have another psd (adjustment_layer.psd) file that only has one layer, and it is an adjustment layer. .
That is possible. An adjustment layer must be over a layer. The layer that it is over can have its visibility off but there needs to at least two layers in your (adjustment_layer.psd) file. For you can not have and adjustment layer without a layer to adjust.
Are all your PSD file the same in size x px by y px at z DPI?
It would be easy to create an action just to add the adjustment layer you want if your (adjustment_layer.psd) file adjustment layer, layer mask is a reveal all or hide all mask. You can Batch the action or use the Image processor script and have it include your action that add the adjustment layer you do not need to write a script.
I would also record that action to add the adjustment layer clipped to the layer below. There is a bug in CS4 and CS5 Action Player. Actions that have recorded adding adjustment layers to be applied to all layers below may play incorrectly. You will have to pay to get a fix for this bug for Adobe is not going to apply a fix the the current releases of Photoshop. The bug is so far slated to be fixed in CS6 time will tell. -
Help with working on Word files that were created in Framemaker and saved as PDF
Please help. I was given a pdf from a vendor that they created in Framemaker. The pdf was 2+MB. I saved it as a Word doc so I could delete sections that I don't need for our folks but the file is saving at over 20MB (after I deleted a lot of pages from it). It is so large that I cannot even email it. I've tried to zip it and also convert it back to a pdf and in both cases the file only decreases by a few hundred KB while still leaving it over 20+MB. Any idea how I can work this file to take the sections I need without it creating such a large file size? Thank you. Brian
The contractual requirements between the vendor and your company may be the key. The contract may or may not discuss whether the vendor's permission to modify the material includes an obligation to make the documents usable. "Usable" may be construed to mean providing original files. If the vendor is required to provide originals, they may or may not be required to provide them in a common format, like MS Word, rather than the proprietary FrameMaker format they use. Their providing a PDF may completely satisfy their obligation; your lawyers may be helpful here.
HTH
Regards,
Peter
Peter Gold
KnowHow ProServices
bmr0330 wrote:
I did ask them for the source file but they haven't been forthcoming with that. I may look into the evaluation copy of FM anyway but considering the price ($868 USD through our catalogue supplier) I doubt I would be able to get a licensed copy once the evaluation runs out. I do appreciate the suggestion though. Thank you. Brian -
How can I create a jar file that will run automatically on double click
all the jars I created run only from the command-line.
how can I make it run by double-click on it?First you will need to associate .jar files with the javaw.exe program in order to just be able to double click on the jar and run it from within a windows explorer application. Next you will need to set the main class attribute of the manifest file. My understanding is that the value of this attribute is used by the launcher to know which class to load. In other words, which is your main application class. To specify this attribute open your manifest file in a text editor. You will find this file located within the jar at META-INF/MANIFEST.MF. Then, add the line,
"Main-Class:<relative path to the main class>" However, remember not to add the .class extension to the end of the class name.
In Windows 2000 you can associate jar files with javaw by finding a jar file in Windows Explorer and right clicking it. This will give you a context menu which should have an Open With... option (if you are not using Windows 2000 and don't see the 'open with' menu item, try holding down the shift button while right click on the file). Select the Open With... option, then, when the dialog appears highlight javaw and select the "Always use this program to open these files" checkbox. When you hit the OK button you should have all your jar files associated with the javaw process.
Once you've done this, you should be able to double click on your jar file and run your application.
Regards,
Daniel Walsh -
Need Help with Creating the SQl query
Hi,
SQL query gurus...
INFORMATION:
I have two table, CURRENT and PREVIOUS.(Table Defs below).
CURRENT:
Column1 - CURR_PARENT
Column2 - CURR_CHILD
Column3 - CURR_CHILD_ATTRIBUTE 1
Column4 - CURR_CHILD_ATTRIBUTE 2
Column5 - CURR_CHILD_ATTRIBUTE 3
PREVIOUS:
Column1 - PREV_PARENT
Column2 - PREV_CHILD
Column3 - PREV_CHILD_ATTRIBUTE 1
Column4 - PREV_CHILD_ATTRIBUTE 2
Column5 - PREV_CHILD_ATTRIBUTE 3
PROBLEM STATEMENT
Here the columns 3 to 5 are the attributes of the Child. Lets assume that I have two loads, One Today which goes to the CURRENT table and one yesterday which goes to the PREVIOUS table. Between these two loads there is a CHANGE in the value for Columns either 3/4/5 or all of them(doesnt matter if one or all).
I want to determine what properties for the child have changed with the help of a MOST efficient SQL query.(PARENT+CHILD is unique key). The Database is ofcourse ORACLE.
Please help.
Regards,
ParagHi,
The last message was not posted by the same user_name that started the thread.
Please don't do that: it's confusing.
Earlier replies give you the information you want, with one row of output (maximum) per row in current_tbl. There may be 1, 2 or 3 changes on a row.
You just have to unpivot that data to get one row for every change, like this:
WITH single_row AS
SELECT c.curr_parent
, c.curr_child
, c.curr_child_attribute1
, c.curr_child_attribute2
, c.curr_child_attribute3
, DECODE (c.curr_child_attribute1, p.prev_child_attribute1, 0, 1) AS diff1
, DECODE (c.curr_child_attribute2, p.prev_child_attribute2, 0, 2) AS diff2
, DECODE (c.curr_child_attribute3, p.prev_child_attribute3, 0, 3) AS diff3
FROM current_tbl c
JOIN previous_tbl p ON c.curr_parent = p.prev_parent
AND c.curr_child = p.prev_child
WHERE c.curr_child_attribute1 != p.prev_child_attribute1
OR c.curr_child_attribute2 != p.prev_child_attribute2
OR c.curr_child_attribute3 != p.prev_child_attribute3
, cntr AS
SELECT LEVEL AS n
FROM dual
CONNECT BY LEVEL <= 3
SELECT s.curr_parent AS parent
, s.curr_child AS child
, CASE c.n
WHEN 1 THEN s.curr_child_attribute1
WHEN 2 THEN s.curr_child_attribute2
WHEN 3 THEN s.curr_child_attribute3
END AS attribute
, c.n AS attribute_value
FROM single_row s
JOIN cntr c ON c.n IN ( s.diff1
, s.diff2
, s.diff3
ORDER BY attribute_value
, parent
, child
; -
Systemd - help with creating a service file
Hi, I am trying to make a service file to execute "devmon --no-mount --exec-on-audio abcde". Basicly I want abcde to run when an audio cd is inserted into a headless computer. I have tried some udev rules but had no luck with that.
I then found udevil and devmon, and it seems to do exectly what I want.
So Ive made a systemd service file and put it in to /usr/lib/systemd/system
here is it:
/usr/lib/systemd/system/abcde-auto.service
[Unit]
Description=Virtual Distributed Ethernet
[Service]
Type=simple
ExecStart=/usr/bin/devmon --no-mount --exec-on-audio abcde
[Install]
WantedBy=multi-user.target
I have started this with
systemctl start abcde-auto.service
and I see that a devmon process has started with the same arguments I gave in the service file, so all is good.
But now, I am not too sure about the "Type" in the service file, devmon starts abcde, but:
systemctl stop abcde-auto.service
does not stop abcde, only devmon.
Is there a way to setup the service file so that abcde will end as well as devmon?
*Edit
Ive read this http://www.freedesktop.org/software/sys … rvice.html but Im still not too sure. Dont really know what most of it means.
Last edited by jrussell (2012-10-20 18:09:23)I use type 'oneshot' and add an ExecStop= to start and stop scripts.
Like here is the unit file I use to start and stop arno-iptables-firewall
[Unit]
Description=Arno iptables firewall
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/sbin/arno-iptables-firewall start
ExecStop=/usr/sbin/arno-iptables-firewall stop
[Install]
WantedBy=multi-user.target -
I have files that will open in Quicktime, but not itunes. Anyone that can help, please?
run the MP3's by MP3 Validator and see what happens.
-
how do i manage syncing to allow to merge or sync to iTunes or sync to iPad? i have a lot of music in my iPad which when i iwant to sync with iTunes in the desktop that will be erased as it is not available in my iTunes music file?
is there any important stuff saved to your emails? if so you could log on to your emails from a seperate device and back them up. im not sure what else you could do :/
-
Help with Creating a Jeopardy Game for Classroom Teacher
Hi,
I am a middle school teacher and would like to create a Flash Jeopardy game for the teachers at our school to use on our school website. I would like a game similar to the game on http://www.superteachertools.com/jeopardy/.
I have been able to successfully create a flash jeopardy game that uses a xml file. My problem is that I have to have a swf file and an xml file for every game we create. I want to be able to have one swf file that will load many different Jeopardy games.
I am using Flash CS3, Dreamweaver CS3, and MySQL. The files I have created are here: http://www.marylynnewilliams.com/MaryLynneWilliams/test/DownloadZIP/JeopardyGames.php
There is also a zip file: http://www.marylynnewilliams.com/MaryLynneWilliams/test/DownloadZIP/Jeopardy.zip
If anyone has time to help me with this it would be greatly appreciated.
Thank you,
Mary LynneHi
I've had a look at your zip files, and with the best will in the world what your asking for is way beyond what one individual here is willing to invest.
First of all, this is AS2.0 on the Timeline, most Coders don't do this anymore. It's AS3.0 and Classes now.
If your able to invest a little time and patient in learning AS3 the rewards are far greater.
I'm sorry this might not be the answer you where looking for, but it's best you find out now than waiting indefinitely and getting no further with your project.
Best Regards
The Feldkircher -
Help with AS3, loading multiple files into a movieclip in specific order in scrollbar
Hello! I am in need of some advice. We are trying to build a site with these features:
Our site will be built in Actionscript 3.
1. A navigation menu that, when a button is clicked, will scroll the site quickly to a specific Y position using swfaddress.
2. The entire site is controlled by a flash scroll bar, which will be scrolling a single movieclip.
2A. The movieclip will load content corresponding to the navigation categories, all which is organized into zipped files (using this to extract the contents of each section, example: about.zip for the about section of the site)
2B. The movieclip will load multiple zipped files one by one that correspond to the navigation, in order, making the site appear to be very tall.
**What we are in need of is understanding how to load multiple zipped files into a movie clip, in a specific order, and having them scroll between one another through the navigation. The separate navigation categories can be in movieclips instead of zipped files if that is easier.
Here is a reference of something that works like this: http://swfc-shanghai.com/#/about/Hello kglad! I have set aside the idea of using zipped files, and am now just using multiple external swfs that I'd like to load into the movieclip in a specific order. Any thoughts?
I'm new to AS3, and I'm attempting to create a scrolling movieclip that will load multiple external files, in order, into that movieclip. I'm using XML as well. At this point, nothing is loading into my movieclip (contentMain) and it's a bit frustrating! Thank you for your help!
Current error: 1180: Call to a possibly undefined method load.
AS3:
//XML Loader
var myXML:XML = new XML();
myXML.ignoreWhite = true;
myXML.load ("master.xml");
myXML.onLoad =function(sucess) {
if (sucess) {
contentMain.loadAll();{
load("1_Overview.swf")
load("2_Webcam.swf")
load("3_Twounion.swf")
load("4_Oneunion.swf")
load("5_Retail.swf")
load("6_Nearby.swf")
load("7_Courtyard.swf")
load("8_Map.swf")
load("9_Conference.swf")
load("10_News.swf")
load("11_Sustainability.swf")
load("12_Contact.swf")
addEventListener("complete",onLoad)
onLoad();{
//load all
}else {
trace("ERROR LOADING XML"); -
How do I create a .llb file that includes only the subVIs used in a VI?
hi....
can anybody help me ...i wanna creat a library file that holds only the sub-VIs that are running in particular main VI .
are there options for that in labview??I don't think understand the answer. From just the top level VI, do like I said and an llb will be created with the top level and all subVIs. You can also edit the llb (Tools>Edit VI Library) and make your main VI top level. A note of caution. An llb was originally designed as a means of storing VIs with extended names. With modern OS's allowing long file names, an llb is less useful except as a convenient means of distributing a group of VIs from one location to another. This would be done as a final distribution such as an instrument driver or to another developer who would then convert the llb to a folder. There are several problems with keeping the development VIs in an llb. One is that it doesn't work with any form of source code cont
rol. Another is that a corrupt VI in an llb can and has made the entire llb unreadable so unless you are absolutely religous about backups, you made find yourself in deep trouble some day. -
Help with converting a Nero file
I have previously converted a dvd insert designed with Nero into a pdf using adobe acrobat in order to send to someone else. When I tried to do the same thing today with a new Nero designed insert the conversion wouldn't work. The message said adobe didn't support the program that created the file. Any ideas?
thanks for your response.
When I create a dvd insert or cd label etc using Nero the file extension is nct - nero cover template. The printer wants the file as a pdf as he can't open Nero files. I have version 9.3 of acrobat.
Date: Mon, 18 Jan 2010 21:43:47 -0700
From: [email protected]
To: [email protected]
Subject: help with converting a Nero file
Nero is simply a CD/DVD burning application and should have no effect on the type of files that will eventually be on the CD/DVD.
What type of files are you trying to convert and exactly how are you trying to convert them? Plus, it would help to know the version of Acrobat you are using.
> -
Help with editing a plist file
Hello,
I'm new to scripting and would appreciate any help I can get.
I need to create a shell script that will modify one part of an AD plugin plist file in 10.7. The plist file contains, among other things, this part which is supposed to contain GUID's for AD security groups:
<dict>
<key>ActiveDirectory</key>
<dict>
<key>network admin groups</key>
<array/>
</dict>
I need the file to be modified to contain this, instead:
<dict>
<key>ActiveDirectory</key>
<dict>
<key>network admin groups</key>
<array>
<string>exampleGUID-1</string>
<string>exampleGUID-2</string>
</array>
</dict>
I need to modify it through a shell script or unix command so that it can be automated and run on many machines, without modifying the rest of the file that contains other data unique to each machine.
Here's what I've been playing around with... it will remove the existing entry, and create a string with value "test" properly, but I am stuck on how to create an array containing multiple strings.
#!/bin/bash
#Deletes the existing network admin groups entry
/usr/libexec/PlistBuddy -c "Delete :ActiveDirectory:'network admin groups'" /path/to/file/ourdomain.plist
#Adds entry and sets string to "test"
/usr/libexec/PlistBuddy -c "Add :ActiveDirectory:'network admin groups' string test" /path/to/file/ourdomain.plist
Anybody have suggestions for how this could be done? I'm sure this is simple for somebody out there
Thanks!Awesome- Thanks for your help... I knew I was just missing something small.
I got it working using the following:
#!/bin/bash
#Deletes the existing entry
/usr/libexec/PlistBuddy -c "Delete :ActiveDirectory:'network admin groups'" /path/to/file/ourdomain.plist
#Adds array element
/usr/libexec/PlistBuddy -c "Add :ActiveDirectory:'network admin groups' array" /path/to/file/ourdomain.plist
#Adds 1st entry and sets string
/usr/libexec/PlistBuddy -c "Add :ActiveDirectory:'network admin groups':0 string test" /path/to/file/ourdomain.plist
#Adds 2nd entry and sets string
/usr/libexec/PlistBuddy -c "Add :ActiveDirectory:'network admin groups':1 string test two" /path/to/file/ourdomain.plist
Maybe you are looking for
-
Running InDesign in background
So I wrote an automerge script for InDesign CS5.5 with ExtendScript and javascript. It works fine opening the document and merging records then save and close... Is there a way to have this run in the background instead as like a background task?
-
How do notifications work in Windows Phone 7?
Android and iOS both now have a "notification center" where all of your missed alerts go and you can see them all in one place. Does Windows Phone 7 have anything like this? Or is it more like the old notification system in iOS?
-
Safari crashes every time i open after latest office update
Safari worked fine until this past week. My only thought is that it happened after the latest Microsoft Office software update. Is it connected? Safari opens and 2 seconds later crashes. Uses Firefox in the mean time
-
hello I have a problem with xserver. Everything seems to be working ok, however, one day system started to break down. I cannot connect to the server through *screen sharing* neither through internet, nor through local net. Even after restart login w
-
My fieldpoint modules(Fp-2000, FP-AI,FP-AO,FP-RLY,FP-TC) worked well before. As my computer crashed down frequently. So I changed a new computer. When I transferred my developed labview program to this new computer. It is reported that creat tag vi c