SQL: System locks up and runs slow after performing simple DML record insert

SQL Version:  2008 R2
I am having a serious problem.  I ran the following code to perform a simple table record insert which ran successfully.  However, after running this code I could no longer access the related table.  I couldn't run a query against it. 
I tried to delete all the records and that wouldn't work either.  When attempting to run any DML statements (i.e. Select * From vPCCertificateTypes) against this table SQL gets locked up and never returns anything and no error messages.  I have
to manually stop the query.  Now the entire SQL system is running slow.
Any help would be greatly appreciated.  The code I ran to originally insert the records is below.
Regards,
Bob Sutor
CODE: 
Begin TRAN
 INSERT INTO vPCCertificateTypes (VendorGroup, CertificateType, Description, Active, Category)
 SELECT HQCo, 'MBE', 'Minority-owned Business Enterprise', 'Y', 'Affirmative Action' 
 FROM HQCO
 Where HQCo IS NOT NULL
  AND HQCo <> 100
  AND HQCo <> 99
 IF @@ROWCOUNT <> 44 ROLLBACK ELSE COMMIT
Bob Sutor

The problem was an open uncommitted transaction against the table as you suspected.  I ran your code and it cleared the transaction.  In the past I would intentionally leave our the Commit statement and then if the transaction ran fine, I would
simply highlight and run 'COMMIT' and it would close the transaction.  Apparently that is not the correct approach.  I'll use your suggested code from now on.
Thanks for the help.
Bob Sutor

Similar Messages

  • Computer runs slow after installation

    Hi,
    A little over a month ago I installed Tiger (using CDs) onto my iBook 10.1.5 OSX, 256MB, Power PC G3. A couple of times the computer ran slow at the start up but I would just re-start the computer and then it ran fine. This morning I turned it on I can't get it to stop running slow. Start up takes forever and any application I open takes a long time to start and runs slow after. What can I do to fix this?
    Thank you,
    Melissa

    You have adequate free hard drive space but keep an eye on it.
    But I do use quite a bit of memory on my itunes, about 5GB.
    How did you determine this?
    If you read the link I provided carefully, OS X makes automatic/dynamic use of Paging or Virtual Memory regardless the amount of RAM installed which uses available free hard drive space when utilized. This is released when logging out of your account and after a shutdown and/or a restart.
    The less RAM you have installed, the more Paging or Virtual Memory will be used depending on the number of running applications at a time and what each application is performing. This can make the system feel and operate more slowly.
    Check Resolving Disk, Permission, and Cache Corruption for system troubleshooting procedures and when doing so, follow all steps/instructions in the order provided.

  • My computer is running slow after Yosemite install -but in the Mail program, when I open an email and then open the attachment -all is good -when I close the attachment the Mail program goes away, and I have to reopen it in my Dock -every time -been

    My computer is running slow after Yosemite install -but in the Mail program, when I open an email and then open the attachment -all is good -when I close the attachment the Mail program goes away, and I have to reopen it in my Dock -every time.

    I tried this, but no luck. I went to Previous System>Users. There is nothing inside the "Users" folder, so I hit a dead end.
    I can find my new e-mails -- those that came in since I re-installed the system -- in my NEW system (which I did to see if I was correctly understanding the advice), by going to Users>Home>Library>Mail>POP account name>Inbox.
    Let me add a new question: I am running PhotoShop C3. It opens OK, and I can use it, but when it opens I get this message: "One or more files for Adobe Application Support folder are missing. Please re-run the PhotoShop installer."
    I don't like re-installing working programs if I can avoid it, because it always seems to lead to other issues. Any idea what files are missing, and where it/they might be in the Previous System folder?
    thanks
    Mike

  • Video both in source window and edit window stops after just a few seconds. It also runs slow after a few seconds.

    Video both in source window and edit window stops after just a few seconds. It also runs slow after a few seconds. I don't if the problem  is the fact that it;'s a Vimeo down load. Any one got a suggestion as to why?

    More information needed for someone to help... please click below and provide the requested information
    -Premiere Pro Video Editing Information FAQ http://forums.adobe.com/message/4200840
    Exactly what is INSIDE the video you are editing?
    Codec & Format information, with 2 links inside for you to read http://forums.adobe.com/thread/1270588
    Report back with the codec details of your file, use the programs below... A screen shot works well to SHOW people what you are doing
    http://forums.adobe.com/thread/592070?tstart=30 for screen shot instructions
    Free programs to get file information for PC/Mac http://mediaarea.net/en/MediaInfo/Download

  • My macbook is running slow after upgrading to yosemite

    Other's have posted similar experiences by when I ran etrecheck I didn't get a bunch of fails and yet my computer is extremely sluggish since moving from snow leopard to Yosemite.  So much so, that I'm considering going back.  Programs load slowly and switching between programs has a delayed response. Reminds me of the PC I had before I bought my macbook in 2008.
    Any ideas on what might be causing the slow down?
    Problem description:
    Mac is running slow after upgrading to Yosemite.
    EtreCheck version: 2.1.1 (104)
    Report generated December 10, 2014 at 10:51:13 AM PST
    Hardware Information: ℹ️
      MacBook (13-inch, Aluminum, Late 2008) (Verified)
      MacBook - model: MacBook5,1
      1 2 GHz Intel Core 2 Duo CPU: 2-core
      4 GB RAM Upgradeable
      BANK 0/DIMM0
      2 GB DDR3 1067 MHz ok
      BANK 0/DIMM1
      2 GB DDR3 1067 MHz ok
      Bluetooth: Old - Handoff/Airdrop2 not supported
      Wireless:  en1: 802.11 a/b/g/n
    Video Information: ℹ️
      NVIDIA GeForce 9400M - VRAM: 256 MB
      Color LCD 1280 x 800
      Cinema Display 1680 x 1050
    System Software: ℹ️
      OS X 10.10.1 (14B25) - Uptime: 1:33:11
    Disk Information: ℹ️
      ST9500420AS disk0 : (500.11 GB)
      S.M.A.R.T. Status: Verified
      EFI (disk0s1) <not mounted> : 210 MB
      Macintosh HD (disk0s2) / : 499.25 GB (196.94 GB free)
      Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
      HL-DT-ST DVDRW  GS21N 
    USB Information: ℹ️
      Microsoft Microsoft® 2.4GHz Transceiver V1.0
      Apple Inc. Built-in iSight
      Apple Inc. BRCM2046 Hub
      Apple Inc. Bluetooth USB Host Controller
      Apple, Inc. Apple Internal Keyboard / Trackpad
      Apple Computer, Inc. IR Receiver
    Gatekeeper: ℹ️
      Mac App Store and identified developers
    Kernel Extensions: ℹ️
      /Library/StartupItems/Parallels
      [not loaded] com.parallels.kext.Pvsvnic (3.0) [Support]
      /System/Library/Extensions
      [not loaded] com.parallels.kext.ConnectUSB (3.0.0) [Support]
      [not loaded] com.parallels.kext.Pvsnet (3.0) [Support]
      [not loaded] com.parallels.kext.hypervisor (3.0) [Support]
      [not loaded] com.parallels.kext.vmmain (3.0) [Support]
    Startup Items: ℹ️
      HP IO: Path: /Library/StartupItems/HP IO
      Parallels: Path: /Library/StartupItems/Parallels
      ParallelsTransporter: Path: /Library/StartupItems/ParallelsTransporter
      Startup items are obsolete in OS X Yosemite
    Launch Agents: ℹ️
      [not loaded] com.adobe.AAM.Updater-1.0.plist [Support]
      [running] com.adobe.AdobeCreativeCloud.plist [Support]
      [loaded] com.carbonite.launchd.carbonitealerts.plist [Support]
      [running] com.carbonite.launchd.carbonitestatus.plist [Support]
      [loaded] com.google.keystone.agent.plist [Support]
      [loaded] com.hp.help.tocgenerator.plist [Support]
    Launch Daemons: ℹ️
      [loaded] com.adobe.fpsaud.plist [Support]
      [running] com.carbonite.launchd.carbonitedaemon.plist [Support]
      [loaded] com.google.keystone.daemon.plist [Support]
    User Launch Agents: ℹ️
      [loaded] com.adobe.AAM.Updater-1.0.plist [Support]
      [loaded] com.adobe.ARM.[...].plist [Support]
      [loaded] com.adobe.ARM.[...].plist [Support]
    User Login Items: ℹ️
      Citations Application (/Applications/Papers.app/Contents/SharedSupport/Citations.app)
      iTunesHelper UNKNOWNHidden (missing value)
      Time Out Application (/Users/[redacted]/.Trash/Time Out.app)
      AdobeResourceSynchronizer Application (/Applications/Adobe Acrobat 8 Professional/Adobe Acrobat Professional.app/Contents/Support/AdobeResourceSynchronizer.app)
      iTunesHelper UNKNOWN (missing value)
      Caffeine Application (/Applications/Caffeine .app)
      Microsoft AU Daemon Application (/Applications/Microsoft AutoUpdate.app/Contents/MacOS/Microsoft AU Daemon.app)
      Garmin ANT Agent Application (/Applications/Garmin ANT Agent.app)
      Google Drive Application (/Applications/Google Drive.app)
      Stickies Application (/Applications/Stickies.app)
      Dropbox Application (/Applications/Dropbox.app)
      Box Sync Application (/Applications/Box Sync.app)
      EvernoteHelper Application (/Applications/Evernote.app/Contents/Library/LoginItems/EvernoteHelper.app)
      XPSLauncher Application (/Applications/Xerox/PrintingScout/XPSLauncher.app)
    Internet Plug-ins: ℹ️
      o1dbrowserplugin: Version: 5.38.6.0 - SDK 10.8 [Support]
      AmazonMP3DownloaderPlugin1017287: Version: AmazonMP3DownloaderPlugin 1.0.17 [Support]
      Google Earth Web Plug-in: Version: 5.1 [Support]
      Default Browser: Version: 600 - SDK 10.10
      Flip4Mac WMV Plugin: Version: 2.2.1.11  [Support]
      OfficeLiveBrowserPlugin: Version: 12.3.6 [Support]
      AdobeAAMDetect: Version: AdobeAAMDetect 2.0.0.0 - SDK 10.7 [Support]
      AdobePDFViewerNPAPI: Version: 11.0.09 - SDK 10.6 [Support]
      FlashPlayer-10.6: Version: 15.0.0.246 - SDK 10.6 [Support]
      Silverlight: Version: 5.1.30514.0 - SDK 10.6 [Support]
      Flash Player: Version: 15.0.0.246 - SDK 10.6 Mismatch! Adobe recommends 16.0.0.235
      AmazonMP3DownloaderPlugin: Version: AmazonMP3DownloaderPlugin 1.0.17 [Support]
      googletalkbrowserplugin: Version: 5.38.6.0 - SDK 10.8 [Support]
      iPhotoPhotocast: Version: 7.0
      AdobePDFViewer: Version: 11.0.09 - SDK 10.6 [Support]
      GarminGpsControl: Version: 4.0.4.0 Release - SDK 10.6 [Support]
      QuickTime Plugin: Version: 7.7.3
      wkDimdimControl: Version: 1.01
      DirectorShockwave: Version: 11.6.6r636 [Support]
    User internet Plug-ins: ℹ️
      BrowserPlus_2.9.8: Version: 2.9.8 [Support]
      fbplugin_1_0_3: Version: Unknown [Support]
      Move_Media_Player: Version: npmnqmp 071505000006 [Support]
    Safari Extensions: ℹ️
      Extensions: No such file or directory
    3rd Party Preference Panes: ℹ️
      BrowserPlus  [Support]
      Carbonite  [Support]
      Flash Player  [Support]
      Flip4Mac WMV  [Support]
    Time Machine: ℹ️
      Skip System Files: NO
      Auto backup: YES
      Volumes being backed up:
      Macintosh HD: Disk size: 499.25 GB Disk used: 302.31 GB
      Destinations:
      Lottia [Local]
      Total size: 1.00 TB
      Total number of backups: 65
      Oldest backup: 2010-12-28 19:41:55 +0000
      Last backup: 2014-12-03 21:58:08 +0000
      Size of backup disk: Adequate
      Backup size 1.00 TB > (Disk used 302.31 GB X 3)
    Top Processes by CPU: ℹ️
          70% iPhoto
          20% TOCGenerator
          18% WindowServer
          9% Time Out Break
          6% CarboniteDaemon
    Top Processes by Memory: ℹ️
      463 MB iPhoto
      137 MB Mail
      116 MB Google Chrome
      106 MB WindowServer
      99 MB iTunes
    Virtual Memory Information: ℹ️
      114 MB Free RAM
      1.39 GB Active RAM
      1.21 GB Inactive RAM
      857 MB Wired RAM
      6.24 GB Page-ins
      34 MB Page-outs
    Diagnostics Information: ℹ️
      Dec 10, 2014, 09:18:41 AM Self test - passed
      Dec 9, 2014, 03:44:57 PM fontd_2014-12-09-154457_Postelsia.crash
      Dec 9, 2014, 12:12:52 PM CarboniteDaemon_2014-12-09-121252_Postelsia.cpu_resource.diag [Details]
      Dec 8, 2014, 10:27:45 AM CarboniteDaemon_2014-12-08-102745_Postelsia.cpu_resource.diag [Details]
      Dec 7, 2014, 01:04:27 PM CarboniteDaemon_2014-12-07-130427_Postelsia.cpu_resource.diag [Details]

    Also resetting SMC could solve the problem.
    Intel-based Macs: Resetting the System Management Controller (SMC) - Apple Support
    Upgrading RAM till 8GB could also help the system performance.

  • I have an early 2008 macbook pro that is running slow after upgrading to lion. Is there anything I can do? this is what I have,Processor  2.4 GHz Intel Core 2 Duo, Memory  2 GB 667 MHz DDR2 SDRAM.

    I have an early 2008 macbook pro that is running slow after upgrading to lion. Is there anything I can do? this is what I have,Processor  2.4 GHz Intel Core 2 Duo, Memory  2 GB 667 MHz DDR2 SDRAM.

    First, back up all data immediately, as your boot drive may be failing.
    Launch the usual set of applications you use when you notice the problem.
    Step 1
    Launch the Activity Monitor application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Activity Monitor in the page that opens.
    Select the CPU tab of the Activity Monitor window.
    Select All Processes from the menu in the toolbar, if not already selected.
    Click the heading of the % CPU column in the process table to sort the entries by CPU usage. You may have to click it twice to get the highest value at the top. What is it, and what is the process? Also post the values for % User, % System, and % Idle at the bottom of the window.
    Select the System Memory tab. What values are shown in the bottom part of the window for Page outs and Swap used?
    Next, select the Disk Activity tab. What approximate values are shown for Reads in/sec and Writes out/sec?
    Step 2
    You must be logged in as an administrator to carry out this step.
    Launch the Console application in the same way as above. Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left.
    Post the 50 or so most recent messages in the log — the text, please, not a screenshot.
    Important: Some personal information, such as your name, may appear in the log. Edit it out before posting.

  • What could be the possible reason for a deployed application to run slow after the target pc comes out of standby mode?

    What could be the possible reason for a deployed application to run slow after the target pc comes out of standby mode?  PC running XP and using the USB to communicate with the DAQ and driver boards.  Application generated with 2010.
    Thanks

    Hello,
    Usually default property is checked 
      system property -> devices ->usb root -> power management -> allow system to switch off device
    Hope this help
    Regards
    Tinnitus
    CLAD / Labview 2011, Win Xp
    Mission d'une semaine- à plusieurs mois laissez moi un MP...
    RP et Midi-pyrénées .Km+++ si possibilité de télétravail
    Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
    Don't forget to valid a good answer / pensez à valider une réponse correcte

  • Imac 11,2 running slower after installing software updates

    I purchased my imac 11,2 Sept. 2010. I recently downloaded my software updates that included airport utility, itunes and canon printer software update. Since these downloads, the imac has been very slow. Does anybody have any suggestions why my imac runs slower after software updates and what can be done to get my imac back to previous speed.

    isis24680,
    Welcome to the Apple Discussions!
    Did you run Disk Utility> Repair Permissions? Do you have your eMac in display-only sleep overnight, or use a utility such as OnyX, or otherwise ensure the Unix crom maintenenace scripts run? OS X 10.4.2 (in 7/05) included provision to force the maintenance scripts when sufficiently oberdue; it's possible you're seeing the Mac trying to catch up on a year-plus worth of maintenance.
    Do you have anything showing in System Preferences> Others, especially anything that adds to the menu bar? You'll need to check that any add-on system utilities or background programs are updated to run properly under 10.4.6; a quick way to check is to Start Up in Safe Mode and see if performance returns to normal.
    Open Applications> Utilities> Activity Monitor, show all tasks, and sort the list by CPU. Is their anything regularly showing up at more than say 15% of the CPU usage?

  • HP envy 15 running slow after updateing to Win 10

    Hello Can anyone help me. i updated my hp envy 15 to win 10 and after that it boots to long and runs slow and does not wake up from sleep mode..When i had win 8.1 there was no problems.is this a HP problem or microsoft's? tnx for your response

    Hi ,
    Thank you for visiting the HP Forums! A great place where you can find solutions for your issues with help from the community!
    I came across your post about the Notebook, and wanted to assist you! I have looked into your issue about your HP ENVY TouchSmart 15-j001tx Notebook and the Touch display doesn't respond to touch after a Windows 10 update. If your computer is having problems finding and installing operating system updates, try using the Windows Update Troubleshooting tool to fix the problem. Here is a document that shows how to update drivers that are not working correctly with Windows 10. Here is a link to your driver page. I would try the section on Driver -Chipsets. Intel Management Engine Interface Driver should help. Restart the Notebook after the install. I hope something here helps you. Thanks.

  • Macbook Pro still running slow after reformat

    So my Macbook pro, which is about 3-4 years old now, just started running slow after the latest update i did, whichever the latest one was. Possibly a security update or whatever it was. So i decided it was time to reformat and just clear out the stuff on my computer so i erased the HD and reinstalled Snow Leopard. After all that it still lags and is slow. Its slow on things like scrolling down a web page, or opening programs, or when i use expose, it isn't super smooth like it normally is.
    My MBP has 4gb of ram and 2.2ghz. I have also tried to repair the disk permissions, but didnt seem to help drastically. Any suggestions?

    Hi there,
    Have you applied all updates? Using Software Update or manually? Checked for EFI and SMC versions?
    Don't you have any clue from Console logs?
    Repair as T posted and bring back news and info about your Graphic Card.
    Good luck.

  • My Macbook Pro (early 2011) has 4 gig of memory and is using all of it and running slow.

    My (early 2011) MacBook Pro has 4 gig of memory and is using all of it and running slow.  I am planning to double memory, but any ideas about why it's using all that memory?  (Yosemite 10.10.2). 

    When you see a beachball cursor or the slowness is especially bad, note the exact time: hour, minute, second.  
    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.
    Each message in the log begins with the date and time when it was entered. Scroll back to the time you noted above.
    Select the messages entered from then until the end of the episode, or until they start to repeat, whichever comes first.
    Copy the messages to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of it useless for solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Why is my safari running slow after updating my mac?

    My safari is running slow after completing a software update.  I have cleared the cache.  It did not help.

    Please answer as many of the following questions as you can. You may already have answered some of them. In that case, there's no need to repeat the answers.
    Have you restarted your router and your broadband device (if they're separate) since you first noticed the problem? If not, do that now and see whether there's any change.
    If your browser is Safari, then from the Safari menu bar, select
    Safari ▹ Preferences... ▹ Privacy ▹ Remove All Website Data
    and confirm. Any change?
    If you're running OS X 10.9 or later, select the Advanced tab in the Preferences window and uncheck the box marked
    Stop plug-ins to save power
    Any change?
    Quit and relaunch the browser. Any change?
    Log out and log back in. Any change?
    Enable Private Browsing in the Safari menu. Any change?
    Are any other web browsers installed, and are they the same? What about other Internet applications, such as iTunes and the App Store?
    If other browsers and Internet applications are also affected, follow these instructions and test. Any change?
    If Parental Controls is active for any user, please turn it off and test. Any change?
    If only Safari is affected, launch the Activity Monitor application and enter "web" (without the quotes) in the search box. If a process named "Safari Web Content" is shown in red or is using more than about 5% of a CPU, select it and force it to quit by clicking the X or Quit Process button in the toolbar of the window. There may be more than one such process. Any improvement?
    Again, if only Safari is involved, open the iCloud preference pane and uncheck the box marked Safari, if it's checked. Any change?
    Are there any other devices on the same network that can browse the Web, and are they affected?
    If you can test Safari on another network, is it the same there?
    If you connect to your router with Wi-Fi and you can also connect with Ethernet, do that and turn off Wi-Fi. Any difference?

  • RUNNING SLOW AFTER OPENING KASPERSKY ON PARALLELS

    RUNNING SLOW AFTER INSTALLING KASPERSKY ON PARALLELS

    AV software is well-known for requiring large CPU and memory resources. You're running it in a virtual machine, which may have limitations on what CPU and RAM resources are allocated to it.
    So, software that makes things run slowly makes things run extra slowly when a layer of virtualization is added.

  • Running slow after downloading a mandatory update

    running slow after downloading an update!
    I had zero complaints until today when I downloaded an update and restarted my machine.
    Now It feels like I'm back in the PC world.
    Any suggestions?

    If it is Safari loading web pages slowly, I would suggest http://support.apple.com/kb/ts3230 or http://support.apple.com/kb/TS1594, one of these will surely help. If not, as previously suggested, more detail will greatly help.

  • Applications run slower after 3.0 update...

    my applications especially games are running slower after 3.0 update...
    any ideas?

    Try reseting your phone - press both the home and sleep/wake buttons until the Apple icon appears (ignore the red slider). If it's still slow, restore in iTunes. Apps should run at least as fast under 3.0 as 2.2.1)

Maybe you are looking for

  • Price Difference Account being hit while making AP credit Memo

    Hello Experts, Price Difference Account is being hit while creating AP Credit Memo. I am creating an independent AP Credit Memo (i.e. without any base document). After posting A/P Credit Memo when I look at the Journal Entry it shows 99.43% of amount

  • Time machine back up to shared external drive

    We have 4 computers running leopard, all on an airport wireless network. If I have an external hard drive attached to the airport extreme base, non of the computers know that it exists. If I attach it only to one computer directly, via USB, then the

  • How can i email a document from numbers?

    Im trying to e mail a document I created in numbers, when I go to mail to pdf. doest go thru

  • FBRA reverse documents

    Hi Specialists I have a question, Sometimes when I want to reverse a document I receive the following message: Exch. rate differences were posted. Clearing document will be reversed. Do you want to continue? But sometimes when I want to reverse one d

  • Multiple Plots & Scales On 1 Graph

    Hi In one waveform graph how we can plot two data with different y-axis i.e.. Multiple plots in one graph thanks