Pros & cons when used ROWLOCK in deletes.

Could you please breif the pros & cons of both operations...
DELETE x FROM
dbo.table_a x WITH(ROWLOCK)
INNER JOIN dbo.table_b y WITH(NOLOCK) ON x.id=y.id
DELETE x FROM
dbo.table_a x WITH(NOLOCK)
INNER JOIN dbo.table_b y WITH(NOLOCK) ON x.id=y.id
Thank you.

Could you please breif the pros & cons of both operations...
DELETE x FROM
dbo.table_a x WITH(ROWLOCK)
INNER JOIN dbo.table_b y WITH(NOLOCK) ON x.id=y.id
DELETE x FROM
dbo.table_a x WITH(NOLOCK)
INNER JOIN dbo.table_b y WITH(NOLOCK) ON x.id=y.id
Thank you.
what pros and cons do you want. Table hints should mostly be avoided specially the NOLOCK hint it should never be used. Its bad coding.
The Rowlock is used to change locking behavior of SQL Server it would try to take ROW lock even if page lock is required.
The pros and cons would depend on scenario.
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
My Technet Wiki Article
MVP

Similar Messages

  • Pros & Cons of Using SAP PI Interfaces for Report Generation

    Hi Guru's
    I have a Scenario's like
    I have to generate a customized report in SAP with the main data's available in SAP ECC and some required data available in the Legacy System.
    I want to know the Pros & cons of using SAP PI RFC/Proxy adapter interface to get the data from the legacy system for each time the user execute the report in SAP ECC.
    Thanks in Advance

    There are couple of "dimensions" to consider in your PI interface design. For exemple when you are running the sizing exercise (Since we are considering adding a net new interface), you will need to capture specific information about new interface.i.e. S/A, adapters, frequency, avg payload size. etc..Note that the last two attributes will be hard to size properly in this case since you can't predict how frequent the end user will run the report which will impact the latency time required to pull the data. Latency will affect the user experience as visible side affect and definitely the SLA for other interfaces running at the same time.
    On the other hand, the data you are trying to retrieve from the legacy won't be used for transactional purpose but for the end user to pull KPIs from the system which can affect ECC as well. You may end up doing lot hot fixes for your report (Assuming that the report is a medium complexity code)
    There are other factors to consider but let's consider these are the major one.
    Cheers,
    F

  • What are pros/cons of using xmarks vs. firefox sync?

    Used Firefox for a long while. Bookmarks morphed to Xmarks, which in turn has been acquired twice. I continue to use the newer Xmarks. In process of setting up a new computer, found that Firefox has it's own bookmarks sync.
    Like to keep things as simple as possible. Does Firefox sync do all that Xmarks does? What are pros/cons of using xmarks vs. firefox sync?

    I am not in a business environment, just my home. So, I don't know your specific requirements. I operate a dual G5 xserve, a dual quad-core mac pro, 6+ Apple MacOSX computers of varying types and several other linux servers plus a couple of Windows machines. If it were me, I would get two mac pro's running MacOSX Server and use one for backup of the other. The xserve RAID is too expensive from my point of view. I copy data from the xserve to several MacOSX computers with firewire drives for my backup and I have every computer on a ups. (I am assuming that they will not all fail at once!
    I run Tiger servers and would suggest that you significantly test Leopard before committing to it.
    Hope that helps.

  • TS4185 i have a macbook pro and when using FaceTime people are unable to hear me, even though i can hear them

    I have a macbook pro and when using facetime people are unable to hear me, even though i can hear them.

    I have a macbook pro and when using facetime people are unable to hear me, even though i can hear them.

  • PRO & Cons of using treasury management

    Hi,
    I am trying to implement the treasury management, could someone tell me the PRO & Cons of using treasury management?
    thanks,
    Liang

    Hi,
    Based on the business requirement of the client you can decide upon using the Treasury module.If your client is into Banking or Investment field,then you can certainly go ahead with implementing Treasury as the daily treasury process within a company comprises a wide range of transactions, from determining the current liquidity based on bank account balances (cash position) and open receivables and payables (liquidity forecast), through to manually entering planned payment flows (advices) and carrying out cash concentration (the concentration of several bank account balances onto one target account).
    The main aim is to
    1)Ensure sufficient liquidity for all payment obligations that become due.
    2)Ensure that the incoming and outgoing payment flows are optimally controlled and monitored.
    For additional information on benefits of implementing treasury ,u can refer to the following link:
    https://forums.sdn.sap.com/click.jspa?searchID=27289061&messageID=7420616
    Hope this is useful.

  • Oracle Best Practices Discussion Pros/Cons of using Synonyms

    Please share your experience given the Pros/Cons of Developing Enterprise Database Applications using public and private Synonyms.
    My recommendation to developers on my team is to avoid using Public Synonyms in their code and instead Fully Qualify the database object by schema owner.
    Pros: When you drop a schema, you do not drop the public synonyms that they created. Therefore if you have to use synonym, make it private and not public.
    Please share your experience!

    Fahd Mirza wrote:
    Well I rarely use public synonyms and that only case of db links. For example, I have a scenario, in which I have hooked up a MS SQLSERVER database with Oracle database through Heterogenous Services. I am accessing the SQLSERVER table in real time, through HS, in Oracle in real time, and then from this Oracle environment I have created db links to many other interested databases. In those interested database, I have created public synonyms over those dblinks.
    It's so transparent for the interested databases. But I have documented this whole configuration in great detail for any upcoming DBA, just in case I leave, or expire or anything. Sounds interesting - this might be worth 'cleaning' and publishing to OTN's Articles. If you are interested in pursuing this, you might want to contact Justin (Community Forum) or myself ([email protected])

  • Acrobat XI pro - Slow when using 'save as' or saving merged pdf

    System:
    Windows 7 pro 64-bit
    AMD FX 6300 processor
    HD 7770 1 GB video card
    1 TB disk space
    16 GB RAM
    MS Office 2013 Plus
    Adobe Acrobat XI Pro
    Issue:
    Saving pdf is very slow. Regardless if the location is a network location or desktop. Using the 'save as' option is also very slow. It's super slow when using the 'merge' option.
    Troubleshooting: 
    - uninstalled adobe, rebooted system, reinstalled adobe, installed updates - no changes
    - tried using optimize pdf option  when saving- no changes
    - ran adobe in compatiblity mode - no changes

    All available updates have been applied/installed.

  • Hi, I have a macbook pro and when using FaceTime outgoing calls it says connecting but it never connects, however, I can receive incoming calls. Does anyone have any suggestions please?

    Hi,
    I have a macbook pro and when making outgoing calls on facetime I get to connecting but it never does connect, however I can receive incoming calls. Any suggestions please?

    Hey there kakitiga,
    It sounds like you are trying to make a call with FaceTime, it never finishes connecting to the person you are trying to reach. I want to recommend the troubleshooting steps from this article named:
    FaceTime for Mac: Troubleshooting FaceTime
    http://support.apple.com/kb/ts4185
    If you encounter issues making or receiving FaceTime calls, try the following:
    Verify that FaceTime is enabled in FaceTime > Preferences.If the issue persists, or if you see the message "Waiting for Activation", try toggling FaceTime off and then on.
    Verify that the Date, Time, and Time Zone are set correctly:
    From the Apple () menu, choose System Preferences > Date & Time > Date & Time.
    Enable "Set Automatically".
    Click the Time Zone tab and confirm the closest city is correct.
    Verify that both parties are connected to an active broadband Internet connection.
    See Mac OS X: Troubleshooting a cable modem, DSL, or LAN Internet connection.
    Consult Using FaceTime behind a firewall for necessary ports to open in firewalls, security software and routers.
    If you encounter issues using a Wi-Fi network, use standard Wi-Fi network troubleshooting to resolve interference and other issues.
    Verify the phone number or email address being used is the correct one activated for FaceTime.You can verify that you are using a valid Apple ID at appleid.apple.com. You can also create an Apple ID or reset your password from this website.
    Verify that both parties have installed the latest software updates for their Mac and/or device. See:
    Mac OS X: Updating your software
    iOS: How to update your iPhone, iPad, or iPod touch
    Thank you for using Apple Support Communities.
    All the best,
    Sterling

  • Satellite Pro L350 - When using internet via Wi-Fi screen locks up

    Recentlyt bought Satellite Pro L350. When using internet via Wi-Fi screen locks up. I can't turn off.
    Had to remove battery to shut down. Re-loaded battery and restarted, OK for a while then same occurance.
    Help!

    This occurs while on plugged into wall. When I could not get shut down I unplugged from wall but was then on battery power. Using Vista as supplied by vendor Circuit City.

  • Why does my mac book pro freeze when using photo shop

    Why does my mac book pro freeze a lot when using photo shop?

    What version of Photoshop are you using?
    Clinton

  • MacBook Pro freezes when using any app other than the web browser.

    My MacBook freezes when using any app other than the web browser. I can open up Google Chrome and use it all day with no problem, but if I minimize it and try to browse through photos in my picture folder or do anything that involves the Finder, the computer just freezes up and I get the rainbow wheel. If I put in a CD to play it, the computer freezes with the rainbow wheel. Any suggestions? I would like to use the mac for more things than the internet.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, or by corruption of certain system caches. 
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and  Wi-Fi on certain iMacs. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Macbook pro temps when using garageband

    Hi,
    I noticed that my mbp gets to about 150 degrees when using garageband.  Anyone using garageband notice this too?
    Thx.

    Hi,
    I noticed that my mbp gets to about 150 degrees when using garageband.  Anyone using garageband notice this too?
    Thx.

  • How do you Control Alt Delete on mac Book Pro keyboard when using VM Ware?

    This must be the stupidest question I'll ever have to ask...but....normally in the office I have a separate mac keyboard/screen/mouse and log into Windows via VM Ware. I am using the latest Mac Book Pro model. I have to click on the window and press Control Alt Delete before I log in. This works fine until the day I was out of the office and had to press Control Alt Delete via the Mac Book Pro's own keyboard and nothing happened. I passed the laptop over to 2-3 other mac friendly people and we all were left scratching our heads.
    Can anyone shed some light on this??
    Kris

    Google is your friend!*
    Turned up another Apple Discussions post that said to press  + U at the ctrl-alt-del prompt to bring up the 'visually challenged' tools, and to turn on the on-screen keyboard. This should allow you to log in, then once you are in, remap the keys to something more convenient, maybe assigning the right-hand-side command key to DEL. Unfortunately, I haven't used a Windows PC in ages, so I can't tell you how to do this.
    On a related note, I've just discovered that I don't have an  key on my MBP. You learn something new every day!
    *(Disclaimer: Usually.)

  • Soundtrack Pro: Crash when use loops

    Hi. First sorry for my english...
    I have a problem with soundtrack pro months ago.
    When i start soundtrack and put a loop from my library to a track just try to enlarge or reduce the loop the aplication chrash.
    I try reinstalling the software but the problem against.
    Anybody can help me??
    Thanks a lot.
    Regards

    Hi. I'm having the same problem. I just did a complete wipe and reinstall of my MacBook Pro and installed a fresh copy of Logic Studio. I've been using Logic Pro quite happily for a week or so but tried to open Soundtrack Pro for the first time last night and it barely bounced once in the dock then it said that Soundtrack Pro quit unexpectedly. I tried a couple of times including resetting the application but still no joy. I then reinstalled Soundtrack Pro only from the Logic Studio installer DVD but it still isn't opening. Any ideas would be much appreciated. My whole machine is up to date via software update and I have also run Disk Utility and there are no problems. There is basically nothing on my machine at the moment either having done a complete reinstall. Are there any library files that could be deleted to fool it into opening fresh again? Plists etc perhaps? My error log brings up the same thing at the bottom saying that no image was found.
    Will keep digging around the archives and see if I can come up with anything.

  • GS70 Stealth Pro Crashes when using external monitor..

    Hi Guys,
    I just bought a GS70 ghost pro a few weeks ago and have been loving it, no problems, running Battlefield 3 and watchdogs..
    However I just bought an external monitor, Asus VG248QE, when i connected it via display port and tried to play Battlefield 3 on the external monitor the laptop crashed - both screens blank- fan on- power button went orange- had to hold down the power button to reset.
    Tried it again, opened Bf3 in window mode, put it on external monitor, went to full screen - it played ok for a few minutes then the laptop crashed again..
    I had played bf3 no problems on the laptop screen previously.
    Anyone got any ideas what might be going on? I'm new to gaming on pc so I'm a bit lost, any suggestions would be welcome.
    Thanks,
    Dan

    Which nvidia driver are you using? (latest one from nvidia GeFormce Experience or MSI website)
    Try to use the one from MSI website and update the latest VBIOS(80.04.F7.00.0C).
    http://www.msi.com/support/nb/GS70_2PE_Stealth_Pro.html#down-firmware&Win8.1 64
    step by step guide:http://www.msi.com/files/pdf/VBIOS_Update_under_DOS_mode_EN.pdf
    Can you check the CPU and GPU temperature under two situation? (1. when running without external monitor 2. using external monitor)

Maybe you are looking for