.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Post New Web Links

Stackdump in SQL2008.

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :

I checked the server log which recently recorded the stackdump and cause the interruption in the server connection which mean user can't connect to the server during a short period of time. Please find below the error mesage and let me know what is that mean and anything that I can do about it?  Thanks in advance for any response.

2011-04-05 13:04:21.39 Server      Using 'dbghelp.dll' version '4.0.5'
2011-04-05 13:04:46.35 Server      **Dump thread - spid = 0, EC = 0x0000000000000000
2011-04-05 13:04:57.17 Server      ***Stack Dump being sent to E:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\LOG\SQLDump0002.txt
2011-04-05 13:04:59.09 Server      * *******************************************************************************
2011-04-05 13:04:59.10 Server      *
2011-04-05 13:04:59.10 Server      * BEGIN STACK DUMP:
2011-04-05 13:04:59.10 Server      *   04/05/11 13:04:59 spid 1604
2011-04-05 13:04:59.10 Server      *
2011-04-05 13:04:59.10 Server      * Non-yielding IOCP Listener
2011-04-05 13:04:59.10 Server      *
2011-04-05 13:

View Complete Post

More Related Resource Links

SQL2008 - Cannot Restore a new database from a full backup of a different one, database in use

I am trying to restore a brand new database from a copy of another one and am encountering an error message stating: System.Data.SqlClient.SqlError: The file <Backup source database file location> cannot be overwritten.  It is being used by database <Backup Source Database>. (Microsoft.SqlServer.Smo) I am running the Restore procedure with the REPLACE option and am wondering why it is stating that the source database is the database in use when I am trying to restore and overwrite a completely different database. This issue happens when running the replace both in C# using SMO and when manually restoring with SqlServer Management Studio Interesting note is, the original source database is created / deployed using a database project within VisualStudios 2010 and then deployed to SqlServer through VisualStudios. Any thoughts on why this is happening? Thanks in advance for any help!

SQL2008 Standard setup failed. The performance counter registry hive is corrupted.

OS: Windows7 Ultimate 64bit (Traditional Chinese HKSAR) SQL: SQL Sever2008 RC2 Standard English (either x86 or x64) I have searched for answers on the web, tried all of them and still cannot get pass. 1. manually rebuild Performance Counter Library values as suggested in http://support.microsoft.com/kb/300956/en-us 2. string test = string.Format ("{0,3}", CultureInfo.InstalledUICulture.Parent.LCID.ToString ("X")).Replace (" ", "0"); which shows "31748" for me, added it under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib (with values from 009) 3. C:\windows\systrem32\lodctr /r to rebuild counters.   The error just won't go. Actually, I just want to use the management studio to connect to SQL Server2008.. Is there a way to install only the management studio? I am willing to give up installing SQL Server2008 on my Windows7.   Thanks in advance.

Connecting to Sql2008 from vb6 using sqlncli

I used to connect to a sql2005 database from Vb6 with this connectionstring, using sqlncli:   "Provider=SQLNCLI;MARS Connection=True;Integrated Security=SSPI;Initial Catalog=Y1;Data Source=thinkpadfp2\instancename;"   Today i uninstalled Sql2005 and installed Sql2008 RTM.   Using the same connectionstring, now i receive the error:   "3076 - Unable to find provider".   In vb.net i can succesfully connect using sqlclient namespace, the problem is only in vb6.   sqlncli is correctly installed.   Any suggestion?   Thanks.

Prompt "The proper type library could not be found in the system registry" when open SQL2008 Express

Hi folks, I just format my notebook and installed the Win7Pro Eng 32-bit version and then install the SQL2008Express. I restarted my notebook as usual after the installation and open the SQL SMS, it prompt the following error "The proper type library could not be found in the system registry", It's a big dialog with certain text saying I do not have permission...etc. Since, I am using administrator account to open the program already but still fail. I have to repaire the SQL SMS too. May I know any other I can check? Any comment is highly appreciated. Thank you very much! Regards, Tony  

SQL2008 Installation error Service SQLBrowser start request failed

This relates to the Enterprise SQL 2008 Failover Cluster installation. After the initial setup reaches a near completion point the Setup receives the following Error has occurred: Service 'SQLBrowser start request failed. Click Retry to retry the failed action, or click Cancel to cancel this action and continue setup.

Uninstall of SQL2008 Standard failover server failed

Tried to uninstall SQL2008 Standard cluster server via add/remove and failed. The message is "The SQL Server failover cluster instance name '' could not be found as a cluster resource. Please provide help on it.

Does "Microsoft OLE DB Provider for SQL Server" get different versions for SQL2005 and SQL2008?

We know SQLServer OLE DB have two driver types: SQL Native Client and Microsoft OLE DB Provider. I know The former one have different versions for SQLServer2005 and SQLServer 2008 (SQLNCLI.DLL, SQLNCLI10.DLL), right? And for latter one, does it have different versions? I only got SQLOLEDB.dll under system32 folder, but have no idea whether it have different versions. Can some one help me?   Thanks Spring  

SQL2008 RTM : SQLAgent will not start

LOG FILE:2008-08-08 22:24:27 - ! [000] Failed to load any subsystems. Check errorlog for details.2008-08-08 22:25:27 - ! [165] ODBC Error: 0, Unable to complete login process due to delay in opening server connection [SQLSTATE 08001] 2008-08-08 22:25:27 - ! [382] Logon to server '(local)' failed (DisableAgentXPs)2008-08-08 22:25:27 - ? [098] SQLServerAgent terminated (normally)SQL Server Agent is configured to run with the same account as the SQL Server service.The SQL Server service runs fine.

(sql2008) t-sql Concurrency question

We have a table containing a single row, single column (bigint)  “counter” value (1,2,3,4…). We created a stored proc,  uspGetSetCounter,  that returns the  current value of the counter and increments the value of the counter in the table by 1  (ready for the next proc call.) I setup two Query editor sessions both pointing to the database containing our single row, single column table. Each query window contained a loop that called “uspGetSetCounter” 50,000 times.  I began running the loop in the first query editor then immediately started the loop in the second query window. I found that repeated values of “counter” were sometimes returned in the output window using this approach. I also found that by surrounding the “GetSetCounter” logic in uspGetSetCounter with  “begin transaction….commit” that the problem disappeared. (In other words, each call to the proc returned an incremented  single value. This was the behavior we wanted.) Why does adding the begin transaction… logic fix the issue? (Does the first call, in a transaction, block all other calls until the first call is finished?)   TIA, Barkingdog      

How to insert SQL2008 date data type using ADODB.Recordset and Native Client?



I am working with a classic ASP application that we are trying to keep hobbling along while it gets rewritten.  The underlying database has been upgraded many times and is currently running on SQL Server 2008.

Recently a column of table was updated from a smalldatetime (with a check constraint to ensure it didn't have any time values) to simply the date type, but the code now does not work.  I was originally using SQLOLEDB, and was confident that treating the date as a string would be find with our client.  Unfortunately it does not, nor does it work using the SQLNCLI10 client.

This is the stripped down code:

Set adoConnection = aspServer.CreateObject("ADODB.Connection")
adoConnection.Open "Provider=SQLNCLI10"  ' Details Removed
Set adoRS = aspServer.CreateObject("ADODB.Recordset")
adoRS.CursorLocation = adUseClient
adoRS.Open "SELECT * FROM TestTable WHERE id = 0", adoConnection, adOpenKeyset, adLockOptimistic, adCmdText
adoRS("datecolumn") = "09/20/2010"

On the update line, I get the following error:

Microsoft SQL Server Native Client 10.0 error '80040e07'
Error convertin

SQL2008 cannot detect clustered disk


I've created a sql2008 sql cluster on windows2008 with all the latest service pack when i add a new clustered disk recently; it can be added to the sql cluster but the SQL management studio cannot "see" the newly added clustered disk.

Any advise?

Thanks for any info

how to debug store procedure in SQL2008?


I remeber I can use analyzer to debug sql in 2000, and it seems it does not have the analyzer in sql 2008 any more. Here is what I do:


1. select the SP, then script SP to->execute to->new window.

2. click debug.


then step into the SP line by line.


Is this the correct way to do it? one problem is: I will have to script the input into the SP directly. Is it possible to let sql pop the window and ask for input like analyzer does?




SQL2008 error on restore databse (database is in use) error 3010


We have to do a lot of restore from backups for a development on a production sql 2008 server.

This daily job or by request job will have 3 steps.

Step 1 kill the user that was using such @dbname

declare killprocess_cursor cursor for
select a.spid from sysprocesses a join
sysdatabases b on a.dbid=b.dbid where b.name=@dbname


Step 2 Restore database, from a fixed path using a T-Sql

RESTORE DATABASE db_abc FROM DISK = 'H:\RestoreDB\db_abc_FullBK.bak' with replace

Step 3 restore users


Sometimes the daily job will fail at 2. The by request job will fail at 1.

I am concern with daily job failure now. Error message:

Executed as user: myDomain\myISAgentAcct. Exclusive access could not be obtained because the database is in use. [SQLSTATE 42000] (Error 3101)  RESTORE DATABASE is terminating abnormally. [SQLSTATE 42000] (Error 3013).  The step failed.


When I use sp_who2, there is none using the db and rerun result with the same error. I have to take it offline, detach, attach again and rerun the job to finish it without error.


What bugs me... the job will run for in most days and fail in other. I already has a kill user step and no one works at the schedule night time.

My last suspicion... either Report service has a hold on

How many gb is the database limit of sql2008 standard for sbs 2008??


Can anyone tell me How many gb is the database limit of sql2008 standard for sbs 2008??


Thank you..

on windows 2008 Ent SP2 (non R2), install SQL2008 sp1, will be .net framework 4.0 works?

I used the windows update downloaded and install all suggested updates, the .net framework 4 installed too, since sql 2008 sp1 requires .net framework3.5sp1, but .net4 is newer, I assume it is ok? can someone confirm thanks.

Oracle Table Migrated to SQL2008-need the same Identity values


I need a table to migrate from Oracle to SQL2008. The sequence was 5,1- starting with 5 and increment 1. There are about say 1Million rows currently. This table with 1M rows are not continous with reference to the sequence -say 5,6,7,9,11,12,13,17...and so on.  Transferring the table can be done, but how to ADD the IDENTITY after the data migration? I need your help.

Thanks in Advance

Cannot establish connection to sql2008 aspnetdb - WebSite Administration tool


Good Afternoon all.

Noobie to asp.net and Admin Tool Site

Getting error: "Could not establish a connection to the database.
If you have not yet created the SQL Server database, exit the Web Site Administration tool, use the aspnet_regsql command-line utility to create and configure the database, and then return to this tool to set the provider.

I am not usign SQL Express

1. Installed VS2008 + sp1 after that Installed SQL 2008 Standard x86 + sp1

2. Used aspnet_regsql to add aspnetdb to the sql (I can see that db in MSSMS)

3. From my WebProject I can access WSAT but when I click on the Provider and try to test I am getting above error.

Tried diffetent settings in the web.config and also check machine.config

Check different solutions form different forums but nothing seams to work.

I strongly believe there is something wrong with my <connectionString/> as by default WSAT points to .\SQLEXPRESS but I do not know which file should I update (web.config or machine.config or Web.config) 

Do I need to add <connectionStrig> tag to web.config ?

All suggestions highly appreciated and appologise if this topic should no

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend