Is there a way to do a global transaction?

I have a save procedure for a large server infrastructure that must maintain a rollback point in-case of hardware failures. 
The procedure consists of hundreds of different stored procedure calls and a very large set of data to be deleted/inserted/updated.
Is there a way to set an entire database state to be in a transaction instead of just a single stored procedure? It doesn't have to be timed or have a automatic rollback if I can manually cause a rollback to happen.
We use 2012 Express for development purposes but 2012 Standard in production; we can upgrade if necessary.

You can use the restore to mark feature.  Your database will need to have its recovery model set to full or bulk-logged.  You will then set a transaction with a mark.
https://msdn.microsoft.com/en-us/library/ms187014.aspx
Basically, you will need to start a transaction using the "with mark" statement.
BEGIN TRANSACTION ListPriceUpdate
WITH MARK 'UPDATE Product list prices';
Then you can restore your database to that mark:
RESTORE DATABASE AdventureWorks
FROM AdventureWorksBackups
WITH FILE = 3, NORECOVERY;
GO
RESTORE LOG AdventureWorks
FROM AdventureWorksBackups
WITH FILE = 4,
RECOVERY,
STOPATMARK = 'ListPriceUpdate';
I don't see any version specific restrictions.
Russel Loski, MCT, MCSE Data Platform/Business Intelligence. Twitter: @sqlmovers; blog: www.sqlmovers.com

Similar Messages

  • Is there a way to disable plugins globally, but enable them on a per-site basis?

    Is there a way in Firefox to globally disable plugins and allow only certain sites to run them (i.e., a whitelist)? I've tried working with CAPS, but it doesn't seem to be able to turn off <embed> or <object> tags, only certain aspects of JavaScript. I know about FlashBlock, but I've heard it's easy to circumvent and isn't meant for security. NoScript has this ability, and it's great for my own PC, but I'm looking for something more simple that I can use on the PCs of my friends and relatives.

    No, not in the basic Firefox build, and I haven't seen an extension with those features that is simple enough for the "average user" to use.
    Flashblock only blocks Flash, Shockwave, and Authorware. Plugins like Java, Silverlight, and other aren't blocked by Flashblock. There is one manual control extension for JavaScript, Java, Flash, and Silverlight - Quick Java - https://addons.mozilla.org/en-US/firefox/addon/1237/ - but there is no "whitelist", only toolbar /statusbar buttons to toggle those plugins on/off.
    As you mentioned, NoScript has features to block specific plugins from running automatically, and also has a "whitelist" so those plugins will run automatically on "trusted" websites, but getting the NoScript "whitelist" set up is a continuing job. It can be a frustrating extension to use for even "above-average users".
    I use NoScript on my Windows desktop PC's as it is intended to be used - allowing JavaScript per domain / website by "allowing" or "temporarily allowing", but on my Linux netbook ''(900MHz processor and only 1GB of RAM)'' I have it set to ''Allow Scripts Globally'', so I don't have to allow JavaScript for each domain on every website I visit. When I first got that netbook I ran for a few months without blocking anything, but after Firefox getting stalled by too many unnecessary plugin presentations I installed Flashblock. After a few weeks I realized that Flashblock wasn't blocking enough of the plugins that were causing problems, so I switched to NoScript with ''Allow Scripts Globally'' selected. IMO, Linux is much less of a target than Windows PC's are as far as exploits and Malware are concerned.

  • Re:- XMII is there a way todynamically create local or transaction variable

    Dear all,
    Is there a way to create local or transaction variable dynamically inside the BLS transactions.
    I have a scenario where in i am reading the XMl document and based on the number of node (sub node ) items i need to temporary save those values into transaction variable .  I want to use these saved transaction variable tvalues o later insert into database

    After reading your second post, I wonder why you want to temporarily store the separate values from the XML node in a local property.
    If you already have all values available in a XML, than it would be easier to process the XML directly in MII, as that is what MII does best. MII can directly access the node values and use it as input for your databse inserts. Using a repeater action, you can process 0 to n nodes. Use XPath to transfer the node values to the query parameters.
    Is this the option you are looking for, or do I miss something?
    Michael

  • Is there any way to cancel only 1 transaction in an Outgoing Payment?

    Dear Experts,
    If I have an Outgoing Payment that was already posted, and it consists of 100 invoices. Lets say one day I realized 1 of the invoice was posted wrongly, and I wish to cancel that invoice (with credit memo) and also from the Outgoing Payment. Is there any other efficient way where I can cancel only that invoice in the Outgoing Payment, without canceling the Whole Outgoing Payment?
    Because, canceling the Whole Outgoing Payment will mean that I need to re-add the 99 invoices again in a new Outgoing Payment, which is very troublesome. Is there a way to do this? Or is there any efficient workaround this procedures.
    Much Thanks in Advance for your advice.
    Warmest Regards,
    Chinho

    Chinho,
    You may post your request to the following forum, so that it will be a candidate to be developed in future version:
    /community [original link is broken]
    Thanks,
    Gordon

  • Is there a way to do a global font change in iWeb '09?

    Hi,
    I inherited a web site, created in iWeb '09. I've got the site files on my Mac ... when I start iWeb,
    and select a page to edit, it complains:
    The following errors occurred while trying to open this page:
    Missing Font TrajanPro-Regular
    Missing Font TrajanPro-Bold
    Missing Font HelveticaNeue-Roman
    Many (most or all) pages in the web site need these three fonts.
    Thru googling, I know that those three fonts are proprietary fonts that I could purchase.
    However, it seems silly to buy and install a font when the web server and end-user's
    browser won't have it (and will therefore get substituted at their end).
    Therefore, I think that my best choice is to change all uses of those fonts in the web site to
    be uses of some "standard web fonts".
    So, how do I do a global font change or substitution in iWeb '09? It seems like an awfully
    obvious thing to want to do. (Finding each instance of use and manually selecting the text
    and doing a font change is simply not feasible.)
    (E.g.: Change "HelveticeNeue-Roman" to "Helvetica Regular")
    thanks,
    Stan
    [email protected]

    how do I do a global font change or substitution in iWeb '09?
    There is no way to do what you want. Send a feature request to Apple via http://www.apple.com/feedback.iweb.html.
    OT

  • Is there a way to remove Exchange global address list from phone/Mail app?

    I have an iPhone 5 running iOS 7.0.3. Wondering if there is a way I can prevent an Exchange global address list from loading when I compose a message. I am only syncing Mail - not contacts or calendars. Also tried dropping and re-adding account to see if that did anything. This is a personal phone connected to company's Exchange account (legitimately) - I would like to reduce the chance that I incorrectly email a company employee from my personal account when composing a message.

    That is what I expected Chris, but to answer your question - yes. I have two accounts setup with the Mail app - Gmail and Exchange. Gmail is the default even. When I am in the Gmail account, compose a new message, just typing "john" for example, brings up most recently used john's first, then all the Johns in my company. I really would prefer not to even have those names populate. Not sure if that can be prevented without dropping the Exchange mail account altogether. That is my question - and thank you for your reply.

  • Is There a way to programmatically extract global virtual channel info from max?

    I have a group of DAQmx virtual global channels setup in MAX and I would like to be able to programmatically extract the physical channel information to be included with the data file. In the past I have been able to use traditional NI-DAQ channel utility vi's to accomplish this, but they only see traditional NI-DAQ virtual channels and not DAQmx virtual channels. Is there a group of vi's for extracting DAQmx virtual channel information? I'm using Labview 7.1 with a Windows XP OS.

    Paul,
    I can access basic properties using the approach you described, but do you know how to get the units from the global virtual channel?  Say I had a general appliance for reading in load cells, and I wanted to have the axis labels in a graph show the units of whatever load cell had been selected.

  • Is there a way to turn off global ...

    if you hold down the ctrl key and uncheck a song it unchecks the entire playlist, i have accidentaly done this twice now, even tho i backup the play list it never comes back the same, not quite sure how i keep doing this but i do (prob just rest my hand there) anyway is it poss?

    great answer, god dont know why i didnt think of that (actually never noticed that option) still wish i could turn it off tho
    thanks!!

  • Is there a way to find out which transactions are called by first transacti

    I'm trying to find out if there is a way to find out for ex:
    You go to PFCG and put in transaction CO15
    What other transactions is CO15 going to need or call.
    Thanks
    Joe

    In your test or QA environment, use ST01 to start a trace for authorization checks.  Execute CO15 as you normally would using options on the screen to enter the production order confirmation.  Once complete, stop the trace and review the log.  the log will include all authority checks that occurred.
    Another response was to use the USOBT table.  You can call these tables directly using SU24.  the check maintain entries are validate when an authority check is executed.

  • I have question about take folders.  After recording multiple takes on a project of say 16 tracks. Is there a way to switch between takes globally?  Instead of one at a time which is tedious.  I am talking about a situation where all tracks are being

    Oops , my body got put into the title sorry.   Anyway so when doing live recording and multiple takes of all tracks is there a way to switch between takes globally instead of switching them one by one?

    You used the data.  Verizon can not see what it was sued for.  However your phone can see whats apps used the data.  go to settings-data usage- there will be a place that says data usage cycle.  line the dates up with your cycle.  then there will be a bar graph below that   extend bother white bars one all the way to the left and one all the way to the right.  after those are extended below that will be a list of apps,  there should be one that used over 2 gb and that will show you what app used that data in her purse

  • Is there a way to have the calender results in a global search on an iPhone to appear in reverse cronological order?

    Is there a way to have the calender results in a global search on an iPhone to appear in reverse cronological order?

    I guess not... (at least not on 5.x!!). I would just like the calendar search to return results in chronological order of any sort. With iCloud calendars and OS 5.1.1 it lists all the results (by date order) for one calendar, and then does all the results for the other one, which is a bit tiresome. Strangely it all works fine with Google calendars... But maybe I will just use spotlight search to get round this problem for now.

  • Is there a way to change field names globally in Form Wizard?

    Form Wizard often selects nearby text to create a name for a text box. Is there a way I can globally change the field name for a series of text boxes? For instance, I have a field name that Form Wizard created that says "Policy NumberPolicy that requires a specific" and I want it to be simply "Policy Number."
    If there is no way to fix it globally, is there a way to prevent it happening in the first place?
    Also, is there a way to automatically convert a text box to a check box?
    Thanks

    Unfortunately, the answer to all of your questions is no.  The closest you can come is to use a script to create a new field with a new name that has most of the same properties as the old field, and then delete the old field, but you'd have to find some way of deciding which fields shold be changed. You do not have any control over the form wizard apart from changing the PDF so it has a different design/layout. Converting a text field to a check box wold have to use the approach metioned earlier, but you'd have the same problem of determining which ones to change.

  • Is there a way to place globals without the label (LV7)

    The default bahavior has apparently been changed from version 6 so that globals placed from a file now have the label visible. Is there a way to disable this?

    I have noticed this as well and just right-click on a new global and go to Visible Items -> Label and uncheck Label. This isn't too painful.

  • I have many contacts in address book from a certain company that just changed its name.  Is there a way to globally change all the contacts to the new company name all at once?

    I have many contacts in address book from a certain company that just changed its name.  Is there a way to globally change all the contacts to the new company name all at once?

    Rando510 wrote:
    Although clunky as you say, this sounds like a reasonably efficient way to accomplish what I was seeking.
    Address Book has no global find/replace. Bob Grove suggested one possible workaround; however, a grep-capable text editor (eg, TextWrangler) is better than TextEdit if complex strings are involved.
    An alternative is Bento (which is designed specifically to interact with the AB database), but it's not free.

  • Is there any way to set global language as english for users  in portal

    Hi,
    Is there any way to set global language as english for all the users  in portal (for all the screens,applications etc) irrespective of browser settings,language in jco,user settings in backend .
    the reason why i am asking is we are implementing global implementation project and for some users in switzerland because of their browser is not english they are getting language other than english.we dont want to ask each user to change their browser language.we just want to force the portal to display content only in english
    Thanks
    Bala Duvvuri

    Hi ,
    You can add property  'request.mandatorylanguage=<your_language>'
    and property  'request.mandatorycountry'
    on file 'prtDefault.properties' located in :
    ..server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\system\properties\prtDefault.properties
    Then restart the server.
    See :
    http://help.sap.com/saphelp_nw70/helpdata/EN/42/938297a5061d69e10000000a1553f6/frameset.htm
    Regards,
    Gilad

Maybe you are looking for

  • Dual Booting with mSATA causing file corruption

    Have a T520 with an Intel SSD. Last week I added a Kingston mSATA to install Windows 8 Consumer Preview. Pulled the SSD before installing Windows 8. Then put it back in. Since doing the install have had lots of issues with both drives, although most

  • How to add A Special Character '&' in CGNode.addData()

    Hi, I'm using XML class Generator to create a XML file. When I used CGNode.addData and the data contains "&" character, I got the following error: oracle.xml.classgen.InvalidContentException: illegal character '&' in CharData at oracle.xml.classgen.C

  • Using search and comments on my own server

    Hi all, I have created a blog site and I use the search and comments features. I noticed that every time I publish my site to a folder (or to our internal server) instead to .Mac the functionality of the search and comments is gone. Is there a way to

  • Is it possible to run dual versions of firefox?

    there are add ons and features i need from a previous version of firefox, but firefox 4 also has quite a few nifty add ons as well. is it possible to run dual sessions of firefox using different version? boot from usb hasnt worked (well, ok, it worke

  • Send routings to external system using ALE

    Hey guys, I am using ECC 6.0. Under tools->ALE->Master Data Distibution-> Logisitcs-> Bill of Material -> Routings i tried to send a routing to an external system which is already setup for many other types of master data. I get the error "Transactio