 |
|
 |
|
Next: List and Meaning of all the Values Error_Number()..
|
| Author |
Message |
External

Since: Mar 19, 2007 Posts: 18
|
(Msg. 1) Posted: Thu Dec 14, 2006 10:22 am
Post subject: SQL2005 blocking Archived from groups: microsoft>public>sqlserver>programming (more info?)
|
|
|
SQL2005 server was blocking, running at 100% of processor, and the program
didn't work.
So I go to activity monitor to see, hat is going there.
When I opened the only active proccess on my database, I saw the following
TSQL command batch:
create table #tmpDBCCinputbuffer ([Event Type] nvarchar(512), [Parameters]
int, [Event Info] nvarchar(512))
insert into #tmpDBCCinputbuffer exec ('DBCC INPUTBUFFER(77)')
select [Event Info] from #tmpDBCCinputbuffer
and I couldn't kill it.
I guess this is something internal and is not the real reason.
Does anybody know, hot to get the blocking sql commands on sql2005?
Probably with some sys views?
Any example?
Thanks,
Simon >> Stay informed about: SQL2005 blocking |
|
| Back to top |
|
 |  |
External

Since: Nov 21, 2006 Posts: 285
|
(Msg. 2) Posted: Thu Dec 14, 2006 10:22 am
Post subject: Re: SQL2005 blocking [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
simonZ wrote:
> SQL2005 server was blocking, running at 100% of processor, and the program
> didn't work.
> So I go to activity monitor to see, hat is going there.
> When I opened the only active proccess on my database, I saw the following
> TSQL command batch:
>
> create table #tmpDBCCinputbuffer ([Event Type] nvarchar(512), [Parameters]
> int, [Event Info] nvarchar(512))
> insert into #tmpDBCCinputbuffer exec ('DBCC INPUTBUFFER(77)')
> select [Event Info] from #tmpDBCCinputbuffer
>
> and I couldn't kill it.
>
> I guess this is something internal and is not the real reason.
>
> Does anybody know, hot to get the blocking sql commands on sql2005?
> Probably with some sys views?
> Any example?
>
> Thanks,
> Simon
>
>
Open a new query window, and run this query:
EXEC sp_who2
Review the output of that command - one of the columns returns is BlkBy,
and for any processes that are being blocked, this column will show you
the spid that is blocking it.
--
Tracy McKibben
MCDBA
http://www.realsqlguy.com >> Stay informed about: SQL2005 blocking |
|
| Back to top |
|
 |  |
External

Since: Aug 24, 2003 Posts: 1744
|
(Msg. 3) Posted: Thu Dec 14, 2006 11:27 am
Post subject: Re: SQL2005 blocking [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
simon
http://www.microsoft.com/technet/prodtechnol/sql/bestpractice/default.mspx ---Best
Practices
"simonZ" wrote in message
> SQL2005 server was blocking, running at 100% of processor, and the program
> didn't work.
> So I go to activity monitor to see, hat is going there.
> When I opened the only active proccess on my database, I saw the following
> TSQL command batch:
>
> create table #tmpDBCCinputbuffer ([Event Type] nvarchar(512), [Parameters]
> int, [Event Info] nvarchar(512))
> insert into #tmpDBCCinputbuffer exec ('DBCC INPUTBUFFER(77)')
> select [Event Info] from #tmpDBCCinputbuffer
>
> and I couldn't kill it.
>
> I guess this is something internal and is not the real reason.
>
> Does anybody know, hot to get the blocking sql commands on sql2005?
> Probably with some sys views?
> Any example?
>
> Thanks,
> Simon
> >> Stay informed about: SQL2005 blocking |
|
| Back to top |
|
 |  |
External

Since: Mar 19, 2007 Posts: 18
|
(Msg. 4) Posted: Thu Dec 14, 2006 11:27 am
Post subject: Re: SQL2005 blocking [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Uri,
after I restart computer, sql2005 is again on 100% of processor and nothing
works.
Do you have any idea what that could be or what could be the fastest way to
find out?
Meanwhile I will read the documentation.
regards,Simon
"Uri Dimant" wrote in message
> simon
> http://www.microsoft.com/technet/prodtechnol/sql/bestpractice/default.mspx
> ---Best Practices
>
>
>
>
>
>
> "simonZ" wrote in message
>
>> SQL2005 server was blocking, running at 100% of processor, and the
>> program didn't work.
>> So I go to activity monitor to see, hat is going there.
>> When I opened the only active proccess on my database, I saw the
>> following TSQL command batch:
>>
>> create table #tmpDBCCinputbuffer ([Event Type] nvarchar(512),
>> [Parameters] int, [Event Info] nvarchar(512))
>> insert into #tmpDBCCinputbuffer exec ('DBCC INPUTBUFFER(77)')
>> select [Event Info] from #tmpDBCCinputbuffer
>>
>> and I couldn't kill it.
>>
>> I guess this is something internal and is not the real reason.
>>
>> Does anybody know, hot to get the blocking sql commands on sql2005?
>> Probably with some sys views?
>> Any example?
>>
>> Thanks,
>> Simon
>>
>
> >> Stay informed about: SQL2005 blocking |
|
| Back to top |
|
 |  |
External

Since: Aug 24, 2003 Posts: 1744
|
(Msg. 5) Posted: Thu Dec 14, 2006 12:01 pm
Post subject: Re: SQL2005 blocking [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Hi
How much RAM do you have?
"simonZ" wrote in message
> Uri,
>
> after I restart computer, sql2005 is again on 100% of processor and
> nothing works.
> Do you have any idea what that could be or what could be the fastest way
> to find out?
>
> Meanwhile I will read the documentation.
>
> regards,Simon
>
> "Uri Dimant" wrote in message
>
>> simon
>> http://www.microsoft.com/technet/prodtechnol/sql/bestpractice/default.mspx -
>> --Best Practices
>>
>>
>>
>>
>>
>>
>> "simonZ" wrote in message
>>
>>> SQL2005 server was blocking, running at 100% of processor, and the
>>> program didn't work.
>>> So I go to activity monitor to see, hat is going there.
>>> When I opened the only active proccess on my database, I saw the
>>> following TSQL command batch:
>>>
>>> create table #tmpDBCCinputbuffer ([Event Type] nvarchar(512),
>>> [Parameters] int, [Event Info] nvarchar(512))
>>> insert into #tmpDBCCinputbuffer exec ('DBCC INPUTBUFFER(77)')
>>> select [Event Info] from #tmpDBCCinputbuffer
>>>
>>> and I couldn't kill it.
>>>
>>> I guess this is something internal and is not the real reason.
>>>
>>> Does anybody know, hot to get the blocking sql commands on sql2005?
>>> Probably with some sys views?
>>> Any example?
>>>
>>> Thanks,
>>> Simon
>>>
>>
>>
>
> >> Stay informed about: SQL2005 blocking |
|
| Back to top |
|
 |  |
External

Since: Mar 19, 2007 Posts: 18
|
(Msg. 6) Posted: Thu Dec 14, 2006 12:01 pm
Post subject: Re: SQL2005 blocking [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
I have 4gb of ram and xeon 3ghz processor.
Currently there is used about 40% of ram and 100% of proccessor If I look
into a task manager.
--S
"Uri Dimant" wrote in message
> Hi
> How much RAM do you have?
>
>
> "simonZ" wrote in message
>
>> Uri,
>>
>> after I restart computer, sql2005 is again on 100% of processor and
>> nothing works.
>> Do you have any idea what that could be or what could be the fastest way
>> to find out?
>>
>> Meanwhile I will read the documentation.
>>
>> regards,Simon
>>
>> "Uri Dimant" wrote in message
>>
>>> simon
>>> http://www.microsoft.com/technet/prodtechnol/sql/bestpractice/default.mspx -
>>> --Best Practices
>>>
>>>
>>>
>>>
>>>
>>>
>>> "simonZ" wrote in message
>>>
>>>> SQL2005 server was blocking, running at 100% of processor, and the
>>>> program didn't work.
>>>> So I go to activity monitor to see, hat is going there.
>>>> When I opened the only active proccess on my database, I saw the
>>>> following TSQL command batch:
>>>>
>>>> create table #tmpDBCCinputbuffer ([Event Type] nvarchar(512),
>>>> [Parameters] int, [Event Info] nvarchar(512))
>>>> insert into #tmpDBCCinputbuffer exec ('DBCC INPUTBUFFER(77)')
>>>> select [Event Info] from #tmpDBCCinputbuffer
>>>>
>>>> and I couldn't kill it.
>>>>
>>>> I guess this is something internal and is not the real reason.
>>>>
>>>> Does anybody know, hot to get the blocking sql commands on sql2005?
>>>> Probably with some sys views?
>>>> Any example?
>>>>
>>>> Thanks,
>>>> Simon
>>>>
>>>
>>>
>>
>>
>
> >> Stay informed about: SQL2005 blocking |
|
| Back to top |
|
 |  |
External

Since: Aug 24, 2003 Posts: 1744
|
(Msg. 7) Posted: Thu Dec 14, 2006 12:15 pm
Post subject: Re: SQL2005 blocking [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Have you read this one?
http://www.microsoft.com/technet/prodtechnol/sql/2005/tsprfprb.mspx#EGE
"simonZ" wrote in message
>I have 4gb of ram and xeon 3ghz processor.
> Currently there is used about 40% of ram and 100% of proccessor If I look
> into a task manager.
>
> --S
>
> "Uri Dimant" wrote in message
>
>> Hi
>> How much RAM do you have?
>>
>>
>> "simonZ" wrote in message
>>
>>> Uri,
>>>
>>> after I restart computer, sql2005 is again on 100% of processor and
>>> nothing works.
>>> Do you have any idea what that could be or what could be the fastest way
>>> to find out?
>>>
>>> Meanwhile I will read the documentation.
>>>
>>> regards,Simon
>>>
>>> "Uri Dimant" wrote in message
>>>
>>>> simon
>>>> http://www.microsoft.com/technet/prodtechnol/sql/bestpractice/default.mspx -
>>>> --Best Practices
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> "simonZ" wrote in message
>>>>
>>>>> SQL2005 server was blocking, running at 100% of processor, and the
>>>>> program didn't work.
>>>>> So I go to activity monitor to see, hat is going there.
>>>>> When I opened the only active proccess on my database, I saw the
>>>>> following TSQL command batch:
>>>>>
>>>>> create table #tmpDBCCinputbuffer ([Event Type] nvarchar(512),
>>>>> [Parameters] int, [Event Info] nvarchar(512))
>>>>> insert into #tmpDBCCinputbuffer exec ('DBCC INPUTBUFFER(77)')
>>>>> select [Event Info] from #tmpDBCCinputbuffer
>>>>>
>>>>> and I couldn't kill it.
>>>>>
>>>>> I guess this is something internal and is not the real reason.
>>>>>
>>>>> Does anybody know, hot to get the blocking sql commands on sql2005?
>>>>> Probably with some sys views?
>>>>> Any example?
>>>>>
>>>>> Thanks,
>>>>> Simon
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
> >> Stay informed about: SQL2005 blocking |
|
| Back to top |
|
 |  |
External

Since: Jan 05, 2007 Posts: 1
|
(Msg. 8) Posted: Fri Jan 05, 2007 6:34 am
Post subject: create table #tmpDBCCinputbuffer ... [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
DBCC INPUTBUFFER, checks the input buffer for a particular system process ID (SPID). The Enterprise Manager invokes it every time you select Current Activity, Process Info and double-click a particular process to see the most recent T-SQL commands this process submitted.
EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com >> Stay informed about: SQL2005 blocking |
|
| Back to top |
|
 |  |
| Related Topics: | Blocking on a resource - Help! My store procedure's taking about 17 minutes to complete. Roughly 3 minutes of that is query cost, the rest is waiting on one resource or another. I found a delightful little script at..
Trigger blocking Insert???? - Hello all: I have a "FOR INSERT" trigger defined on a table (dbo.tbl_Ship_Transact below) that contains no delete statements and no transaction rollbacks. If I execute INSERT INTO DPT_MAIN.dbo.tbl_Ship_Transact (BOL, S...
Update blocking, no sign of deadlock -
Blocking in SQL Server 2005 - We have a stored procedure called by a .Net application. The stored procedure generates a dynamin SQL SELECT statement with a few left joins. Using Activity Monitor we noticed that this stored procedure blocks other processes. Even though the..
How To Change a Live Clustered Index Without Blocking - Anyone who has been following my tribulation with a particularly sticky query might not be surprised to see this post. I am now in the position where I want to update a live system by exchanging one clustered index for another, on a table that gets.. |
|
You can post new topics in this forum You can reply to topics in this forum You can edit your posts in this forum You can delete your posts in this forum You can vote in polls in this forum
|
|
|
|
 |
|
|