"select * from table" and "select top 14260 from table" get nothing but select top 14259 get result successful

select * from tablename                   ------always running,but get nothing
select top 1 *  from tablename         -------get result quickly
select top 2 *  from tablename         -------get result quickly
select top 14259 * from tablename  --------get result quickly
select top 14260 * from tablename  --------always running,but get nothing
the thread is:
java.net.SocketInputStream.socketRead0(Native Method)
java.net.SocketInputStream.read(SocketInputStream.java:150)
java.net.SocketInputStream.read(SocketInputStream.java:121)
com.microsoft.sqlserver.jdbc.TDSChannel.read(IOBuffer.java:1782)
com.microsoft.sqlserver.jdbc.TDSReader.readPacket(IOBuffer.java:4838)
   - 已锁定com.microsoft.sqlserver.jdbc.TDSReader@54269910
com.microsoft.sqlserver.jdbc.TDSCommand.startResponse(IOBuffer.java:6150)
com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.doExecutePreparedStatement(SQLServerPreparedStatement.java:402)
com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement$PrepStmtExecCmd.doExecute(SQLServerPreparedStatement.java:350)
com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:5696)
com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:1715)
   - 已锁定java.lang.Object@320b1499
com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(SQLServerStatement.java:180)
com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(SQLServerStatement.java:155)
com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.execute(SQLServerPreparedStatement.java:332)

when I run the below sql of Uri Dimant,I get many rows,I think you are right!
Do you have some method to handle this problem?
Or do you have some information for me to Learn?
Thanks a lot.
SELECT
owt.session_id AS waiting_session_id,
    owt.blocking_session_id,
DB_NAME(tls.resource_database_id) AS database_name,
    (SELECT SUBSTRING(est.[text], ers.statement_start_offset/2
+ 1,
(CASE WHEN ers.statement_end_offset = -1
THEN LEN(CONVERT(nvarchar(max), est.[text])) * 2
ELSE ers.statement_end_offset
END
- ers.statement_start_offset
) / 2)
FROM sys.dm_exec_sql_text(ers.[sql_handle]) AS est) AS waiting_query_text,
CASE WHEN owt.blocking_session_id > 0 
THEN (
SELECT
est.[text] FROM sys.sysprocesses AS sp
CROSS APPLY sys.dm_exec_sql_text(sp.[sql_handle]) as est
WHERE sp.spid = owt.blocking_session_id)
ELSE
NULL
END AS blocking_query_text,
    (CASE tls.resource_type
WHEN 'OBJECT' THEN OBJECT_NAME(tls.resource_associated_entity_id, tls.resource_database_id)
WHEN 'DATABASE' THEN DB_NAME(tls.resource_database_id)
ELSE (SELECT  OBJECT_NAME(pat.[object_id], tls.resource_database_id)
FROM sys.partitions pat WHERE pat.hobt_id = tls.resource_associated_entity_id)
END
) AS object_name,
owt.wait_duration_ms,
owt.waiting_task_address,
owt.wait_type,
tls.resource_associated_entity_id,
tls.resource_description AS local_resource_description,
tls.resource_type,
tls.request_mode,
tls.request_type,
tls.request_session_id,
owt.resource_description AS blocking_resource_description,
qp.query_plan AS waiting_query_plan
FROM sys.dm_tran_locks AS tls
INNER JOIN sys.dm_os_waiting_tasks owt ON tls.lock_owner_address = owt.resource_address
INNER JOIN sys.dm_exec_requests ers ON tls.request_request_id = ers.request_id
AND owt.session_id = ers.session_id
OUTER APPLY sys.dm_exec_query_plan(ers.[plan_handle]) AS qp
GO

Similar Messages

  • Is it possible to select multiple clips and create a sequence from each individually?

    Is it possible to select multiple clips and create a sequence from each individually?  If you select multiple clips and select "New Sequence from Clip" it puts all of the clips into one sequence.  Is there an easy way to quickly perform this on multiple selected clips separately? 

    So now I *have* used Butler with PPro, and it works very well, here's an idea of how to do it:
    Import folder of clips
    Ensure first clip selected in bin and sorted by Media Type
    Most of these commands need shortcuts assigning - mine listed below
    Macro:
    To create seq from selected clip:
      ‘New seq from clip’ (Shift+CMD+N)
    To duplicate this seq:
      ‘Reveal Sequence in project’ (Shift+F) - not strictly necessary as it will already be selected
      ‘Window | Project’ (CMD+9)
      ‘Edit | Duplicate’ (Shift+CMD+/)
    To rename the duplicate
      ‘Enter’
      Various keystrokes to rename as required
      ‘Enter’ - to make name stick
      ‘Shift+Enter’ - to reselect that sequence
      ‘Esc’ - to get out of editing name
    To change resolution of duplicate:
      ‘Sequence Settings’ (CMD+5)
      ‘Tab’ x 3 (to get to H Frame Size)
      ‘xxxx’ (to enter frame width)
      ‘Tab’ x 1 (to get to V Frame Size)
      ‘yyyy’ (to enter frame height
      ‘Enter’ x 2 as prompt will say previews will have to be deleted
    To then find next clip ready for macro to run again:
      ‘Open in Timeline’ (Shift+CMD+O)
      ‘Match Frame’ (Shift+Spacebar)
      ‘Reveal in Project’ (Shift+CMD+F)
      ‘Window | Project’ (CMD+9)
      ‘Down Arrow’ - to select next clip
    I tried it with Butler (manytricks.com - free trial, $20 to buy) and it worked a treat, takes about 3 secs per clip
    AHK (for windows) is at autohotkeys.com and is free.
    You could start making multiple macros - that would enable you to do grade / resize in middle of duplication - and then export etc, but I figure you can figure that out ;-)

  • Import data from few tables and export into the same tables on different db

    I want to import data from few tables and export into the same tables on different database. But on the target database, additional columns have been added
    to the same tables. how can i do the import?
    Its urgent can anyone please help me do this?
    Thanks.

    Hello Junior DBA,
    maybe try it with the "copy command".
    http://download.oracle.com/docs/cd/B14117_01/server.101/b12170/apb.htm
    Have a look at the section "Understanding COPY Command Syntax".
    Here is an example of a COPY command that copies only two columns from the source table, and copies only those rows in which the value of DEPARTMENT_ID is 30:Regards
    Stefan

  • HT5225 I have an imac 24 , imac 27, mac book pro, airbook and Iphone 3G.  I have switched to icloud from mobile and all the computers synch with each other but data entered from my iphone in ical won't sync to the other computers.

    I have an imac 24 , imac 27, mac book pro, airbook and Iphone 3G.  I have switched to icloud from mobile and all the computers synch with each other but data entered from my iphone in ical won't sync to the other computers.
    Is there a setting on the iphone that will allow ical entries on the iphone to sink to my other computers
    Thank-you

    Welcome to the Apple community.
    First check that all your settings are correct, that calendar syncing is checked on all devices (system preferences > iCloud on a mac and settings > iCloud on a iPhone, iPad or iPod).
    Make sure the calendars you are using are in your 'iCloud' account and not an 'On My Mac', 'On My Phone' or other non iCloud account (you can do this by clicking/tapping the calendar button in the top left corner of the application ), non iCloud calendars will not sync.
    If you are sure that everything is set up correctly and your calendars are in the iCloud account, you might try unchecking calendar syncing in the iCloud settings, restarting your device and then re-enabling calendar syncing settings.

  • I am not able to see toolbars, when I open a new window that window is not visible, if I open from bookmarks and there is music playing I hear it but canNOT SEE the websites.

    I am not able to see toolbars, when I open a new window that window is not visible, if I open from bookmarks and there is music playing I hear it but canNOT SEE the websites. I was able to get window open from the help "window" and open sites from there just not from new: window tab or bookmarks those stay invisible? I tried the help suggestions, safemode,etc.

    Hi CMorenoOT,
    This prompt is usually displayed when your Apple ID needs to be configured for the iTunes Store. You'll want to run through the additional steps to setup your country, and payment information.
    iTunes: How to set up an Apple ID within iTunes
    http://support.apple.com/kb/HT2731
    Tip: If you are trying to create an account using an existing Apple ID, like your iCloud email address, you will receive a prompt telling you that your email address is already an Apple ID. Simply tap Continue, and then tap Use Existing Account on the following screen.
    - Next, you'll be required to enter your billing information. To choose a different Credit Card type, tap one of the available options, and then tap Done. You will not be charged until you make a purchase.
    - Once you've filled out all of the fields for your billing information, tap Next.
    For more information:
    Using an existing Apple ID with the iTunes Store and Mac App Store
    http://support.apple.com/kb/HT2589
    Thanks,
    Matt M.

  • Im from Philippines and my iphone is from Japan after I updated it to iOs 6.1.3 it wont activate it says ''Activation Error Please Contact Customer Care'' what does it mean? How can I activate it? Please help me.

    Im from Philippines and my iphone is from Japan after I updated it to iOs 6.1.3 it wont activate it says ''Activation Error Please Contact Customer Care'' what does it mean? How can I activate it? Please help me.

    You can NOT unlock it. Only the carrier it is locked to can legally authorize unlocking it and the Japanese carriers will not do so.
    In order to be using it previously with a non Japanese carrier, the phone had to be hacked to illegally unlock it.  You can not get help here.
    Buy a new phone you can use.

  • I am from argentina and i want to buy an iPhone 5s, but in my country i can only use it if the phone is unlocked , i want to know if i buy one of t mobile with no contract and i travel to mi country ( internationaly) i can use it with a sim from argentina

    i am from argentina and i want to buy an iPhone 5s, but in my country i can only use it if the phone is unlocked , i want to know if i buy one of t mobile with no contract and i travel to mi country ( internationaly) i can use it with a sim from argentina

    You should go onto the Tmobile web site and look around. Very soon a pop up window will ask you if you want to chat. You can try asking for someone who knows Spanish (if you prefer), they might have someone available who can chat with you in Spanish.
    I give this suggestion because I remember on the Tmobile website, you can order on line, but they let you choose to pay only a little money up front, then pay off the rest over 24 months, or you can choose to pay for it in full. However, their ordering process does not say whether the paid for in full phone is going to be unlocked or not.
    It may not be, You may have to make a request and say that since you have paid in full please unlock. I am not so sure that a paid for in full phone is automatically sold in unlocked state.
    This is why I suggest you talk to Tmobile to get a definite answer.
    Unless someone else on this forum knows for sure? Hope someone else jumps in to answer. But the best way is to ask for yourself directly from Tmobile.

  • Hello. I have problem here can someone plz help. I have usb of 32 gb but i have problem with it while i was trying to partition of it and it fails and my usb disappear from finder and desktop i have tried every possible thing but nothing  works .

    Hello. I have problem here can someone plz help. I have usb of 32 gb but i have problem with it while i was trying to partition of it and it fails and my usb disappear from finder and desktop i have tried every possible thing but nothing  works .

    Yea i tried in disk utility and its got faiiled and the partitation has deleted and when i tried  to replug the  usb  msg show up by saying  usb not compaitnle. With this mac  and  take me to disk utility  and thanks for replying

  • I just updated my Iphone 3GS from 4.3.3 to 6.1. Now is says that my SIM Card is not supported by my carrier. I called Rogers and he says to restore my phone. But I can't get there is it won't recognize my phone. Help!

    I just updated my Iphone 3GS from 4.3.3 to 6.1. Now is says that my SIM Card is not supported by my carrier. I called Rogers and he says to restore my phone. But I can't get there is it won't recognize my phone. Help!

    Insert a SIM from a supported carrier.
    Where did the phone come from,  it sounds like the device has been hacked or jailbroken to be unlocked and updating has re locked to the original carrier. It is also possible that the SIM simply needs to be reseated or replaced.

  • HT201342 Contacts loss from iCloud and receive unknown contacts from another account

    Contacts loss from iCloud and receive unknown contacts from another account. How to retrieve contacts

    I automatically backup by syncing
    Syncing is not a backup. You are supposed to maintain your own backups that you can restore from in the event of a problem.
    See: http://support.apple.com/kb/HT4910
    There are no server issues reported at:
    http://www.apple.com/support/systemstatus/

  • I bought 3 songs from itunes and when i upgrade my iphone all songs disappeared. how do i get them back?

    i bought 3 songs from itunes and when i upgrade my iphone all songs disappeared. how do i get them back?

    Sync it the same way you got it on the device to begin with.

  • I made a mistake and bought a itunes gift card from canada and my account is from usa

    i made a mistake and bought a itunes gift card from canada and my account is from usa

    Move to Canada.
    Get a mailing address and a credit card.
    Change your Apple ID to the Canadian store.
    Enjoy your card and some poutine.

  • After installing the latest of iTunes the original files for almost 300 songs cannot be found for syncing to my iPod. The files are songs that were bought from iTunes, and copied into iTunes from CDs.

    After installing the latest of iTunes the original files for almost 300 songs cannot be found for syncing to my iPod. The files are songs that were bought from iTunes, and copied into iTunes from CDs.

    Apparently, security programs like Macafee and Norton view Itunes updates as new programs and block then from access. If you add Itunes to the list of exemptions, it solves the problem.

  • I have synced my photos from iPhone and iPad to my iMac and now i want to delete from iPhone and iPad without deleting from iMac.  thanks.

    I have synced my photos from iPhone and iPad to my iMac and now I want to delete all from iPhone and iPad without deleting from iMac.  thanks

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico my first language is Spanish. I do not speak English, however I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    You don't really sync photos from the devices to the Mac, you import them to an app; iPhoto, Aperture or Image Capture. During that process you are given an option to erase the photos from the device. Is this not the manner that you used?

  • HT4847 how do i access movies I have downloaded from itunes and permanently erase them from my cloud?

    how do i access movies I have downloaded from itunes and permanently erase them from my cloud?

    Hey okapi22,
    Thanks for the question. Assuming you are attempting to clear up iCloud storage, it's important to note that iTunes purchases do not count against this storage. For more information, see the following:
    Your iCloud storage is used for iCloud Backup, app data and documents stored in iCloud, and iCloud Mail (your @icloud.com email account).
    iCloud: iCloud storage and backup overview
    http://support.apple.com/kb/PH12519
    Additionally, you are not able to delete purchases from iTunes in the Cloud, but you are able to hide them.  Take a look at the following article:
    iTunes Store: Hiding and unhiding purchases
    http://support.apple.com/kb/HT4919
    Thanks,
    Matt M.

Maybe you are looking for