Showing posts with label state. Show all posts
Showing posts with label state. Show all posts

Sunday, March 25, 2012

Dropping a RECOVERING database

Hi,

Is there any way(better) to drop a RECOVERING database?

We tried to change a db from READ ONLY state to READ/WRITE state and this took forever (db is very small 40 MB) and we tried to kill this process and this went to KILLED/ROLLBACK state and blocking other processes.

We tried to even stop the sql server but that didn't work. We had to reboot the windows server. Now that particular database is in 'RECOVERING' state and we want to get rid of it. We've a backup of it.

Any ideas how to drop this database?

Because of this RECOVERING database, SQL Agent is not starting. The Agent error log says, it's waiting on SQL server to complete the recovery.

We've SQL 2005 with service pack1.

Any ideas are highly appreciated.

Thanks,

Siva.

You can stop sqlserver service. Rename the log file. Restart sqlserver service - this will put the database into suspect mode. You should be able to drop the database now.
(do be sure you have a good backup before forcing the deletion outlined above).|||

Thanks........that worked....

Still don't understand why it took so long to change from READ ONLY to READ/WRITE and also why it took so long for rollback as well.

|||Do you still have the errorlogs?

--

Peter Byrne

Microsoft SQL Server Storage Engine

This posting is provided "AS IS" with no warranties, and confers no rights.

wrote in message

news:1acc8880-1e4a-44e2-80d0-1cdb75e87ad6@.discussions.microsoft.com...

> Thanks........that worked....

>

> Still don't understand why it took so long to change from READ ONLY to

> READ/WRITE and also why it took so long for rollback as well.

>

>

>

>

>

>|||

We did see in the error log the STACK DUMP thing and the following message many times:

Process 71:0:0 (0x69c) Worker 0x78FF80E8 appears to be non-yielding on Scheduler 2. Thread creation time: 12804246994487. Approx Thread CPU Used: kernel 0 ms, user 0 ms. Process Utilization 0%. System Idle 98%. Interval: 7331203 ms.

71 was the process we killed but was unyielding.....

|||Can you post the errorlog and the .mdmp from the stack dump?

--

Peter Byrne

Microsoft SQL Server Storage Engine

This posting is provided "AS IS" with no warranties, and confers no rights.

wrote in message

news:270127c2-61e0-44c0-bda8-fa176b32924f@.discussions.microsoft.com...

> We did see in the error log the STACK DUMP thing and the following

> message many times:

>

>

>

> Process 71:0:0 (0x69c) Worker 0x78FF80E8 appears to be non-yielding on

> Scheduler 2. Thread creation time: 12804246994487. Approx Thread CPU

> Used: kernel 0 ms, user 0 ms. Process Utilization 0%. System Idle 98%.

> Interval: 7331203 ms.

>

>

>

> 71 was the process we killed but was unyielding.....

>

>|||

I've 4 .mdmp files each is about 2.5 MB.

I don't know how I can post it here...

Do you need any specific info?

|||Can you please mail one to me directly? The one with the lowest numbered

extension would likely be the best one.

--

Peter Byrne

Microsoft SQL Server Storage Engine

This posting is provided "AS IS" with no warranties, and confers no rights.

wrote in message

news:9aeb4aec-aa39-43b3-9ab2-658e5d06f246@.discussions.microsoft.com...

> I've 4 .mdmp files each is about 2.5 MB.

>

> I don't know how I can post it here...

>

> Do you need any specific info?

>

>

>

>|||

What's your e-mail address?

Is it 9aeb4aec-aa39-43b3-9ab2-658e5d06f246@.discussions.microsoft.com ?

or ?

|||Its peterbyr@. microsoft.com.

--

Peter Byrne

Microsoft SQL Server Storage Engine

This posting is provided "AS IS" with no warranties, and confers no rights.

wrote in message

news:a76af29a-9309-4a90-b52f-b469160de25a@.discussions.microsoft.com...

> What's your e-mail address?

>

>

>

> Is it 9aeb4aec-aa39-43b3-9ab2-658e5d06f246@.discussions.microsoft.com ?

>

> or ?

>

>sql

Sunday, February 19, 2012

drill-through feature in a pie chart

Hello,

Assume I have a pie chart report named as Report 1. This report breaks down a completion state column in the X table. Here is my question; I want to create another pie chart report names as Report 2, which breaks down the message column in the X table on the basis of a given completion state. In other words, Report 2 should be on the basis of a given completion state, via drill-through from Report 1. Thus, when I click the different slices of the pie chart of Report 1, I should get a separate pie chart report (i.e. Report 2), which breaks down the message column on the basis of a given completion state

Please let me know if you have any idea?

Sincerely,

--Amde

Report2 would need to use a parameterized data set query (to limit the dataset based on the provided parameter value for the completion state). The query parameter would be linked to a report parameter of report2.

Then, in report1, you define a drillthrough action on the chart datapoint to drill to report2 and specify the current completion state value as drillthrough parameter.

-- Robert

|||

Hi Robert,

I am clear with the first statement, however, I am not sure how to specify the current completion state value as drillthrough parameter.

what I did is I create an internal parameter for the completion state in the Report1 and pass it to the Report2 when I define a drillthrough action. But, this didn't work. When I click any of the slices of the pie chart from Report1, Report2 displays the same report all the time.

It would be very helpful if you tell me things I should do both in Report1 and Report2. A step-by-step procedure is very appreciable.

Sincerely,

Amde

|||

Now it is working.

Thank you for your assistance.

--Amde