TSQL to know if an update was run at a specific time
Hello,
I am using SQL 2008 R2 SE and would like to know if I will be able to trace with a tsql if a record in a table was updated from an older time. Like in table abc if a record was updated on jan1, 2014? Is this possible.
Since I am using SE i know I cant use features like change data capture.
Yes. Its an additional overhead. If you've designed tables which has updatetimestamp field and you've logic to do update/Insert statement then it holds good in your case.
I hope this is not in your case hence triggers are the only way to capture the intended results.
--Prashanth
Similar Messages
-
Interface to run at a specific time
Hi
I am trying to let a interface run at a specific time, I have setup the bpm and will probable use the wait step? Is this the way to go, because I was thinking of setting my sender adapter to run let's say every 2 hours and then when it reach 10pm it will let all the data go to the end point?
Thanks in advance
ClintonHi,
you can collect all of your messages
(before BPM) and then at 10 let all then start the BPMs
/people/alexander.bundschuh/blog/2006/01/04/scheduling-messages-in-sap-xi
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a> -
Schedule job to run daily at specific times
Hello,
Not sure if this is the correct forum to post my question. If not, please advise which forum to use.
How can I setup a background job which runs daily day, but only runs between a specific time?
Our request is to have a job to run daily between 0700 - 1700 - then end and restarts again at 0700 the next day. How can we do this?
Kind regardsCheck this
https://forums.sdn.sap.com/search.jspa?threadID=&q=backgroundANDjobANDschedule&objID=f50&dateRange=all&numResults=15
PS Please make a search this forum before posting
a® -
Run .app at specific time
How do I get an app I have made in Automator to run at a specific time?
I want to do something like cron jobs.Use Lingon or set an iCal alarm to launch it.
(41445) -
How to know a configuration template was run already?
We have a dozen of NW04s (JAVA+ABAP).
We want to find out if each of the template was run already
for each NW04s or not.
What is the easy way to find out?
Thanks!My major concern is the configuration template.
If you can address all other templates such as NWDI template, etc., you are helping a lot.
Thanks!! -
FDM Script - Set to run at a specific time of day??
Can you set an FDM script to run at a certain time of day (based on
server time)? I've currently got a Custom/General script I'd like to
run once a day at a set time.
Thanks!You need the use task manager for that.
I suggest you look in the admin guide for more info.
If I’m not mistaken, you need to enable in the application setting and then you can use it from the tools menu in the Workbench. -
please tell me what to do ?
You can "force quit" the App Store app.
Click your Apple menu icon top left in your screen. From the drop down menu click Force Quit. Select App Store then click Force Quit.
You can force your Mac to turn off by holding down the power button until the screen goes black. Wait a few seconds then restart normally. -
An Acrobat 11 system update was running and did not complete. What is wrong?
When I opened a PDF file. A message indicated an Error: 1 had occurred and to uninstall and re-install Acrobat 11. I uninstalled, but the reinstall will not complete. What is wrong?
What is your operating system? Do you receive any error message(s)?
-
How do I know if SELECT stmnt was issued on a specific Table?
Hi,
I have a Reporting environment where the tables get populated by selective information from production database through batch scripts. These tables have become HUGE over time and the management wants to know if any user is using the table or else drop them. A USER will only issue a SELECT command and is not responsible for any INSERT/UPDATE/DELETE so querying the table DBA_TAB_MODIFICATIONS isn't of much help.
My question is: Is there a way to find out if any of the tables under concern had been queried (using SELECT) in the recent past???
Thanks in advance!
ArindamHello,
Best option is to use fine-grained auditing and once collected information you can drop that policy ; Using full fledged auditing will be an overkill.
GRANT SELECT ON dba_fga_audit_trail TO <username>;
grant exexute on dbms_fga to <username>;
declare
BEGIN
DBMS_FGA.add_policy (object_schema => 'SCHEMA_NAME',
object_name => 'TABLE_NAME',
policy_name => 'TABLE_DML',
enable => TRUE,
statement_types => 'SELECT',
audit_trail => DBMS_FGA,
audit_column_opts => DBMS_FGA.any_columns
END;
/http://www.oracle-base.com/articles/10g/Auditing_10gR2.php#fine_grained_auditing
Regards -
I seen suggestions like making a registry entry, or making an entry in the application specific settings file. But what's the best practice? I want to do some custom tasks if that is a first run.
Also, I am deploying my application using per machine MSI installer. So un-installation not deleting the user specific config files that's get created under AppData.
Thanks PrasadHello,
Whenever possible I prefer to avoid the registry. The following works once per user where we see if a specific folder exists or not, if it does not then do first time initialization work then set a setting in the project which causes a user config file to
be written to the location for storing user settings per user.
You first need to create a setting in the project, in this case I did
var config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.PerUserRoamingAndLocal);
string configPath = config.FilePath.Replace("\\user.config", "");
if (System.IO.Directory.Exists(configPath) )
Console.WriteLine("This is not the first time");
else
// Do one time setup here
Properties.Settings.Default.FirstTimeValue = "1";
Properties.Settings.Default.Save();
Console.WriteLine("This was the first time");
Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. -
My iphone 4 had the ios7 upgrade listed avaiable, after spending the time to download 7 the phone restarted and continued to run on 6.1.3, no upgrade. My question is why??
Generally that is a sign that the iPhone had previously been jailbroken
or hacked to work with other than the original wireless provider. The update
has relocked the iPhone to the original wireless provider. You must
contact them to see if they provide unlocking and if you qualify.
If you can get that far, what does it say when you look at
Settings=>General=>About=>Carrier? -
Can Alert run at a specific time ?
hi everyone
I want to design an application for storing appointments.
Also, i want from my application to show an alert at a specific day and time.
so any one can give me ideas how to implement this ?
* I came up with two idea but i don't know if J2ME can do that or not
1) make my application running in background all the time
2) make my application store the appointments inside the phone Calendar, so the phone will take the responsibility to show the aler
Regardssupareno , be patient , do you think no one will have
emergency circumstances prevent him from accessing
the internet ?!YOU have to be patient!
you posted at about 9 am. you re-post one hour later to say that you still wait..
a person give you the answer at 15 pm and you didn't say thank you. you can be busy but,
if the given response is good, you can take 5 minutes to say thank you... -
Applescript running at a specific time of day
I have a headless server. If it fails to shut down I want to run script that would force it to shut down.
The shut down script I have.
tell application "System Events"
shut down
end tell
or if needed
do shell script "shutdown -h now" password "YourAdminPwd" with administrator privileges
However if I would like his to execute at lets say 24.00 hours what would I need to do to have that happen?
Do I need to have it run to do so?
What script?
See I do not want to use iCall to execute it as this might be the reason the shut down failed in the first place (the server sometimes hangs on shut down as a programme wants a confirmation). and than the script does not run (is what is happening at the moment if I simulate a hanging program)
ThanksThanks Andrew for your help
Andrew99 wrote:
I trust you're aware of the consequences of the "quit without saving" command -- any open documents with unsaved changes will be lost -- but it would appear that this is not an issue for you in this case. Others should be forewarned.
I am and yes no issue as the server is doing its stuff 'serving'. if it hangs on lets say an email, it wil send it again next time it is up as Mail has it already in the outbox. (mail gets generated by a script, so it could only hang because of my internet connection being down). ditto with Fax, answering machine print-servers etc.
Andrew99 wrote:
In repeated tests, I intentionally left unsaved documents open in both Mail and TextEdit. On a schedule I chose in iCal, each time, as hoped for, all applications quit and my Mac immediately shut down, and did so without an application warning or a shut down warning dialog appearing.
it works for me too!
Andrew99 wrote:
tell application "Finder"
shut down
end tell
If my scripting knowledge is correct, than this line is the equivalent of me telling the machine to shut down using te 'Shut Down' command. correct? this is not a "Killall" type command?
So it is normal 'soft' shut down, the only difference being that it skips the dialogue box bit.
Am I correct?
And thanks for taking the time! -
How do I tell if a mysql update was successful?
How do I tell if a mysql update was successful?
I need to know if an update was run or if the record was not found.... is there some way that coldfusion can use that traps success/fail resoponses from mysql [linda like myquery.RecordCount ]?
basically I am trying to update a row, if no row was updated - the record must not exist so I then need to do an insert...
-any ideas?
-seanhere is the test query:
<cfquery name="qry" datasource="#application.dsn#">
update DISC_CUST set DISC_PriceChange = '222222', DISC_TaxablePriceChange = '2222222'
where DISC_ProdID = '1129'
</cfquery>
<cfdump var="#qry#" />
the error is "Variable QRY is undefined."
if you remove the dump the debug results for the query show:
Debugging Information
ColdFusion Server Enterprise
8,0,1,195765
Template
/Assets/Import/index.cfm
Time Stamp
19-Jul-10 02:19 PM
Locale
English (US)
User Agent
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.4) Gecko/20100611 Firefox/3.6.4 ( .NET CLR 3.5.30729)
Remote IP
192.168.1.100
Host Name
192.168.1.100
Execution Time
Total Time
Avg Time
Count
Template
5 ms
5 ms
1
/data/vhome/xxxl/httpdocs/Assets/Import/index.cfm
3324 ms
STARTUP, PARSING, COMPILING, LOADING, & SHUTDOWN
3329 ms
TOTAL EXECUTION TIME
red = over 250 ms average execution time
SQL Queries qry (Datasource=dsn, Time=1ms, Records=0) in /data/vhome/xxx/httpdocs/Assets/Import/index.cfm @ 14:19:19.019
update DISC_CUST set DISC_PriceChange = '222222', DISC_TaxablePriceChange = '2222222'
where DISC_ProdID = '1129' -
Update was terminated vl02n transacton
Hi All
i was running vl02n for specific output type.I am getting error update was terminated.I have check in sm13 and shows like
For output delivery 8000003526 is working fine,but with 8000003558 is not working.
Please help on this.
Thanks
VamsiHi,
try to change the output : instead of print after save, put print with external transaction.
after this, go in VL71 and ask for print your transaction. You will have a dump, and you will be able to activate debug to see where you are, and what appends exactly.
in VL02n --> print in background, so update process error --> SM13
in VL71 --> print in foreground, so just error .. you could debug (more easily)
regards
Fred
Maybe you are looking for
-
Upgrade from 4.6 C to ECC6.0,missing field CAUFVD_UPD-INDBT
Hi All, I am using the user exit EXIT_SAPCOI1_027. I am using a sub routine CAUFVD_UPD for updating the values using memory ID's. The system has been udgraded from 4.6C to ECC6.0. This sub-routine defined in the FM CO_BT_CAUFV_UPD. Here in this FM a
-
I need to find a way to transfer music from my itunes on the pc to my Mac pro.
-
Define URL in CCM 2.0 catalog
Dear Experts, In our CCM2.0 , We have define the field CCM/PICTURE with the URL for picture of the product We would like to add a second URL for more information of the product , We have search for a field that can be set to this URL but could not f
-
Stopping iTunes V11 from automatically opening
HELP! Each time I disconnect my iPod, I exit iTunes but it keeps constantly opening automatically. It's fecking annoying. I've reconnected my iPod, gone to the Summary Tab and unchecked "Open iTunes when this iPod is connected" as well as unchecked
-
Finding the newest apps in the store
Is there any way to see what the newest apps in the store are other than clicking the new area and seeing those three pages? What I mean is I would like to know when apps are added so I can see what the newest ones are. Does anyone know if something