Quantcast
Channel: SQL Server Database Engine Forum
Viewing all 15872 articles
Browse latest View live

Error resource limit was reached

$
0
0

Hi All,

My sql job fails today and it throws an error at step 28 the error was 


Message
Executed as user: NT AUTHORITY\SYSTEM. The OLE DB provider "SQLNCLI" for linked server "hrpldb" reported an error. Execution terminated by the provider because a resource limit was reached. [SQLSTATE 42000] (Error 7399)  Cannot fetch the rowset from OLE DB provider "SQLNCLI" for linked server "hrpldb". . [SQLSTATE 42000] (Error 7421)  OLE DB provider "SQLNCLI" for linked server "hrpldb" returned message "Query timeout expired". [SQLSTATE 01000] (Error 7412).  The step failed.


why this happened and to resolve this what are the steps need to be follow?

Need help

Regards,

Mahesh


Waits for Page Allocation

$
0
0

Hi Everybody,

I have a question. Let's assume that we have multiple threads trying to Insert data into the same partition of a table. The Insert statement will be similar to:

INSERT INTO DESTINATIONTABLE SELECT <ColumnList> FROM SOURCETABLE

The number of rows inserted by each thread will run into millions. So, there might be a situation when two or more threads request for new Page Allocations from the same HoBT at the same time. In this situation, the HoBT may become hot, and I am expecting to see waits for Page Allocations. In this case, what waittype should I expect? In other words, how do I identify that waits on Page Allocations?

I am using SQL Server 2008R2 Enterprise Edition.

Thanks in advance.

Suhas


MSSQL - cyclomatic complexity of TSQL

$
0
0

Hi All,

     Please let me know if there is any tool / utility to calculate the complexity of TSQL ( Stored procedures, functions ) in MSSQL. Is there is any microsoft supplied solution for this ?


-- Reddy Balaji C. ##Mark as answer if it solves the issue

UPdate with multiple tables

$
0
0

I have 2 tables namely Profile and Info.

My table looked like this:

PROFILE

| p_Id | FirstName | LastName |

| 1      | Jack         | Cole         | 
| 2      | Cynthia     | Cole         | 
| 3      | Robert     | Cole         |

INFO


| I_Id | childsID | fathersID | mothersID |

| 1    | 1           | 3            | 2              |

I'm retrieving values from those tables by displaying them in textboxes, my select query is:

SELECT p.p_Id, p.FirstName, p.LastName,

i.*, (SELECT pp.FirstName+' '+pp.LastName

FROM Profile pp WHERE pp.p_Id=i.childsID) AS child,

(SELECT pp.FirstName+' '+pp.LastName FROM Profile pp

WHERE pp.p_Id=i.fathersID) AS father,

(SELECT pp.FirstName+' '+pp.LastName

FROM Profile pp WHERE pp.p_Id=i.mothersID) AS mother

FROM Info i INNER JOIN Profile p ON p.p_Id=i.childsID


no problem with select, I'm able to display values on textboxes, but the problem is, I can't update them, I have tried so far this:

sing (SqlCommand cmd = con.CreateCommand())     
{         
con.Open();         
cmd.CommandText = @"UPDATE Profile 
SET FirstName=@fname, LastName=@lname 
WHERE p_Id = @pid;                             
UPDATE Info SET childsID=@child, fathersID=@father, mothersID=@mother, Country=@country 
WHERE I_Id = @iid;";          
cmd.Parameters.Add(new SqlParameter("@fname", txtfname.Text));         
cmd.Parameters.Add(new SqlParameter("@lname", txtlname.Text));         
cmd.Parameters.Add(new SqlParameter("@child", txtchild.Text));         
cmd.Parameters.Add(new SqlParameter("@father", txtfather.Text));         
cmd.Parameters.Add(new SqlParameter("@mother", txtmother.Text));        
cmd.Parameters.Add(new SqlParameter("@country", txtcountry.Text));         
cmd.Parameters.Add(new SqlParameter("@pid", txtpid.Text));         cmd.Parameters.Add(new SqlParameter("@iid", txtiid.Text));         cmd.ExecuteNonQuery();         
Response.Write("alert('DATA UPDATED')");     }

I'm using c# and Asp.net Thanks in advance :) God Bless


Conversion failed when converting date and/or time from character string in SQLServer

$
0
0

Hi,

I created LinkedServer in SSMS from MYSQL DB.

When i Execute below open Query its working Fine

SELECT * FROM OPENQUERY(MySQL,'call GASP_sales_aps(''2013-04-01 00:00:00'',''2013-05-01 23:23:59'')')

But my problem is when i declared variable and execute below am getting error

declare @dt_start datetime='2013-04-01 00:00:00'
declare @dt_end datetime='2013-05-01 23:23:59'
declare @op datetime
set @op='SELECT * FROM OPENQUERY(MySQL,call GASP_sales_aps(''+@dt_start+'',''+@dt_end+''))'
exec(@op)

"Conversion failed when converting date and/or time from character string."

Can anyone help me where am going wrong?

There is insufficient system memory in resource pool 'default' to run this query.

$
0
0

I get this error multiple times for different session Id. the memorystatus dump from sql error log is given below.

Win Server 2008 R2 SP1 (x64)

SQL Server 2008 R2 SP2 (x64)

Max Memory: 24 GB

Total Memory: 32 GB

CPU: 1 quad core

There is insufficient system memory in resource pool 'internal' to run this query.
Error: 701<c/> Severity: 17<c/> State: 89.
OBJECTSTORE_SECAUDIT_EVENT_BUFFER (node 0)      VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                  16<nl/>MultiPage Allocator             0
OBJECTSTORE_LOCK_MANAGER (Total)                VM Reserved                                  131072<nl/>VM Committed        131072<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator               13216<nl/>MultiPage Allocator             0
OBJECTSTORE_LOCK_MANAGER (node 64)              VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                  24<nl/>MultiPage Allocator             0
OBJECTSTORE_LOCK_MANAGER (node 0)               VM Reserved                                  131072<nl/>VM Committed        131072<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator               13192<nl/>MultiPage Allocator             0
OBJECTSTORE_SERVICE_BROKER (node 0)             VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                 424<nl/>MultiPage Allocator             0
OBJECTSTORE_SNI_PACKET (Total)                  VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                1032<nl/>MultiPage Allocator           112
OBJECTSTORE_SNI_PACKET (node 64)                VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                   0<nl/>MultiPage Allocator            56
OBJECTSTORE_SNI_PACKET (node 0)                 VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                1032<nl/>MultiPage Allocator            56
OBJECTSTORE_LBSS (node 0)                       VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                  64<nl/>MultiPage Allocator             0
USERSTORE_SXC (Total)                           VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                 264<nl/>MultiPage Allocator             0
USERSTORE_SXC (node 64)                         VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                   8<nl/>MultiPage Allocator             0
USERSTORE_SXC (node 0)                          VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                 256<nl/>MultiPage Allocator             0
USERSTORE_OBJPERM (node 0)                      VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                 400<nl/>MultiPage Allocator             0
USERSTORE_TOKENPERM (node 0)                    VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                 768<nl/>MultiPage Allocator             0
USERSTORE_DBMETADATA (node 0)                   VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                 280<nl/>MultiPage Allocator             0
USERSTORE_SCHEMAMGR (node 0)                    VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator               12224<nl/>MultiPage Allocator           208
CACHESTORE_FULLTEXTSTOPLIST (node 0)            VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                  40<nl/>MultiPage Allocator            24
CACHESTORE_CONVPRI (node 0)                     VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                 112<nl/>MultiPage Allocator             0
CACHESTORE_SYSTEMROWSET (node 0)                VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                  80<nl/>MultiPage Allocator             0
CACHESTORE_EVENTS (node 0)                      VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                  16<nl/>MultiPage Allocator             0
CACHESTORE_BROKERTO (node 0)                    VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                   8<nl/>MultiPage Allocator             0
CACHESTORE_BROKERREADONLY (node 0)              VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                  32<nl/>MultiPage Allocator             0
CACHESTORE_BROKERRSB (node 0)                   VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                   8<nl/>MultiPage Allocator             0
CACHESTORE_BROKERUSERCERTLOOKUP (node 0)        VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                   8<nl/>MultiPage Allocator             0
CACHESTORE_BROKERDSH (node 0)                   VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                   8<nl/>MultiPage Allocator             0
CACHESTORE_BROKERKEK (node 0)                   VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                   8<nl/>MultiPage Allocator             0
CACHESTORE_BROKERTBLACS (node 0)                VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                  80<nl/>MultiPage Allocator             0
CACHESTORE_STACKFRAMES (Total)                  VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                   0<nl/>MultiPage Allocator            16
CACHESTORE_STACKFRAMES (node 64)                VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                   0<nl/>MultiPage Allocator             8
CACHESTORE_STACKFRAMES (node 0)                 VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                   0<nl/>MultiPage Allocator             8
CACHESTORE_XMLDBATTRIBUTE (node 0)              VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                   8<nl/>MultiPage Allocator             0
CACHESTORE_XMLDBELEMENT (node 0)                VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                   8<nl/>MultiPage Allocator             0
CACHESTORE_XMLDBTYPE (node 0)                   VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                   8<nl/>MultiPage Allocator             0
CACHESTORE_VIEWDEFINITIONS (node 0)             VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                  16<nl/>MultiPage Allocator             0
CACHESTORE_NOTIF (node 0)                       VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                  16<nl/>MultiPage Allocator             0
CACHESTORE_TEMPTABLES (node 0)                  VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                  16<nl/>MultiPage Allocator             0
CACHESTORE_XPROC (node 0)                       VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                  16<nl/>MultiPage Allocator             0
CACHESTORE_PHDR (node 0)                        VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                   8<nl/>MultiPage Allocator             0
CACHESTORE_SQLCP (node 0)                       VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                 392<nl/>MultiPage Allocator          1568
CACHESTORE_OBJCP (node 0)                       VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator               29312<nl/>MultiPage Allocator           472
MEMORYCLERK_XE (node 0)                         VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                 472<nl/>MultiPage Allocator           168
MEMORYCLERK_SQLSERVICEBROKERTRANSPORT (node 0)  -<nl/>VM Reserved                                       0<nl/>VM Commi                 0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                  48<nl/>MultiPage Allocator             0
MEMORYCLERK_FULLTEXT_SHMEM (node 0)             VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved            96<nl/>SM Committed                 96<nl/>SinglePage Allocator                   0<nl/>MultiPage Allocator             0
MEMORYCLERK_SOSNODE (Total)                     VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                4840<nl/>MultiPage Allocator         16160
MEMORYCLERK_SOSNODE (node 64)                   VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                   8<nl/>MultiPage Allocator          2336
MEMORYCLERK_SOSNODE (node 0)                    VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                4832<nl/>MultiPage Allocator         13824
MEMORYCLERK_HOST (node 0)                       VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                  24<nl/>MultiPage Allocator             0
MEMORYCLERK_XE_BUFFER (node 0)                  VM Reserved                                    4224<nl/>VM Committed          4224<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                   0<nl/>MultiPage Allocator             0
MEMORYCLERK_SQLQERESERVATIONS (node 0)          VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                1072<nl/>MultiPage Allocator             0
MEMORYCLERK_BHF (node 0)                        VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                 272<nl/>MultiPage Allocator             0
MEMORYCLERK_SQLXP (node 0)                      VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                  16<nl/>MultiPage Allocator             0
MEMORYCLERK_FULLTEXT (node 0)                   VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator            23844160<nl/>MultiPage Allocator            80
MEMORYCLERK_SNI (Total)                         VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                 120<nl/>MultiPage Allocator            32
MEMORYCLERK_SNI (node 64)                       VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                   0<nl/>MultiPage Allocator            16
MEMORYCLERK_SNI (node 0)                        VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                 120<nl/>MultiPage Allocator            16
MEMORYCLERK_SQLHTTP (node 0)                    VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                   8<nl/>MultiPage Allocator             0
MEMORYCLERK_SQLSERVICEBROKER (node 0)           VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                 160<nl/>MultiPage Allocator           544
MEMORYCLERK_SQLCLR (node 0)                     VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                   8<nl/>MultiPage Allocator             0
MEMORYCLERK_SQLCONNECTIONPOOL (node 0)          VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                 912<nl/>MultiPage Allocator             0
MEMORYCLERK_SQLSTORENG (node 0)                 VM Reserved                                    2816<nl/>VM Committed             0<nl/>Locked Pages Allocated           2816<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                2864<nl/>MultiPage Allocator          4336
MEMORYCLERK_SQLUTILITIES (node 0)               VM Reserved                                     120<nl/>VM Committed           120<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                 104<nl/>MultiPage Allocator             0
MEMORYCLERK_SQLOPTIMIZER (node 0)               VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                 240<nl/>MultiPage Allocator           896
MEMORYCLERK_SQLQUERYEXEC (node 0)               VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                  40<nl/>MultiPage Allocator             0
MEMORYCLERK_SQLBUFFERPOOL (node 0)              VM Reserved                                33603584<nl/>VM Committed         32768<nl/>Locked Pages Allocated       25769856<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                   0<nl/>MultiPage Allocator          1688
MEMORYCLERK_SQLGENERAL (node 0)                 VM Reserved                                       0<nl/>VM Committed             0<nl/>Locked Pages Allocated              0<nl/>SM Reserved             0<nl/>SM Committed                  0<nl/>SinglePage Allocator                2360<nl/>MultiPage Allocator         15456
Memory node Id = 64                             VM Reserved                                    2560<nl/>VM Committed          2504<nl/>Locked Pages Allocated              0<nl/>MultiPage Allocator  2416<nl/>SinglePage Allocator   23909824
Memory node Id = 0                              VM Reserved                                33818264<nl/>VM Committed        242272<nl/>Locked Pages Allocated       25772672<nl/>MultiPage Allocator 39528<nl/>SinglePage Allocator   23909824
Memory Manager                                  VM Reserved                                33821912<nl/>VM Committed        245808<nl/>Locked Pages Allocated       25772672<nl/>Reserved Memory      1024<nl/>Reserved Memory In Use        0

There was a memory allocation failure during connection establishment. Reduce nonessential memory load, or increase system memory. The connection has been closed
Process 0:0:0 (0x1d10) Worker 0x000000028A3AC1A0 appears to be non-yielding on Scheduler 0. Thread creation time: 13013235361072. Approx Thread CPU Used: kernel 140 ms, user 729148 ms. Process Utilization 43%. System Idle 54%. Interval: 730661 ms.


Cheers!!! SqlFrenzy

SQL Server 2005 64-bit 100% CPU

$
0
0

 

We just did a conversion from SQL Server 2000 SP4 32 bit to SQL Server 2005 64 bit SP2 9.0.3042.0.  We have 16G of memory on the new box as well.

 

We had no CPU/memory issues on the 32 bit box.

 

We simply did a backup and reimport into SQL Server 2005.  After a few hours, we noticed the 100% cpu (and the memory used was about 15.2G), so we rebuilt all the indexes on all databases/tables (used this script http://blogs.digineer.com/blogs/larar/archive/2007/07/30/smart-index-defragmentation-for-an-online-world.aspx)

 

Is there something else we need to do?  I can't imagine this is due to bad queries since we didn't have the problem in 2000 (unless these bad queries were ok in 2005).

 

I know most of the db's are still running in 2000 compatibility mode as well, not sure if that matters.

Fail to start Analysis Services Engine

$
0
0

Why I am not able to start the Analysis Services Engine again as the error message from event viewer as:

Event Type: Error
Event Source: MSSQLServerOLAPService
Event Category: (289)
Event ID: 0
Date:  04/07/2007
Time:  10:45:48
User:  N/A
Computer: computer_name
Description:
The service cannot be started: Message-handling subsystem: The message manager for the default locale cannot be found. The locale will be changed to US English. Message-handling subsystem: The message manager for the default locale cannot be found. The locale will be changed to US English. The following system error occurred:  The filename, directory name, or volume label syntax is incorrect. . File system error: Error occurred during the creation of directory: '\\?\'.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

 

On SQL Server, when I start the Analysis services, the error message is : The SQL Server Analysis Services (MSSQLSERVER) service on local computer started and then stopped. Some services stop automatically if they have no work to do, for example, the performance logs and Alerts service.

 

Why is that? That is really frustrated and please any of you give me any advices or help on it. Thanks a lot in advance.

 

With best regards,

 

Yours sincerely,

 


 


Queries to Drive up CPU and Memory for Testing

$
0
0

Hello -

Anyone know of some useful queries that can be used to intentionally drive up CPU and memory usage (1 query for each)?  I need to test out some monitoring tools on a test box and need to drive up CPU and then memory to test the tools.

Thank you in advance!

Could not allocate a new page for database 'XXXX' because of insufficient disk space in filegroup 'PRIMARY'.

$
0
0

Dear All,

I have a SQL Server 2008 (SP1) Database (Size600GB). It has more than 25 Data files and more than 5 LDF Files.

My issue is most of the times whenever I tried to created new indexes or index-rebuilding on the tables I am getting below mentioned error.

Msg 1101, Level 17, State 12, Line 1

Could not allocate a new page for database 'XXXX' because of insufficient disk space in filegroup 'PRIMARY'.

Create the necessary space by dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth

on for existing files in the filegroup.

Then I used to increase the MDF file size to 250MB or 512MB and the issue will resolved temporarily. But now MDF file located disk drive free space is low(remaining free space 3GB). I can’t extend further more disk space for the MDF file.

I never experienced before this situation in any version of  SQL Server Databases.

Please suggest.

Best Regards

N S Reddy

Can be stored procedures without cache?

$
0
0

Hello Guys!

Today one procedure in my company after job for recompile, was no cache stored when I find with this select:

SELECT [cp].[refcounts] 
, [cp].[usecounts] 
, [cp].[objtype] 
, [st].[dbid] 
, [st].[objectid] 
, [st].[text] 
, [qp].[query_plan] 
FROM sys.dm_exec_cached_plans cp 
CROSS APPLY sys.dm_exec_sql_text ( cp.plan_handle ) st 
CROSS APPLY sys.dm_exec_query_plan ( cp.plan_handle ) qp
where st.objectid = OBJECT_ID('usp_xyzasdasdjkl')
OPTION (RECOMPILE);

Query Plan with NULL value

This is one bug? What you think about this?

Thanks!


Vithor da Silva e Silva | MCTS - SQL Server 2008, Implementation and Maintenance Site: http://www.vssti.com.br Blog: http://vssti.blogspot.com

Random Error: A network-related or instance-specific error occurred while establishing a connection to SQL Server.

$
0
0

Over the weekend around 2am in the morning we started receiving the following error from all of our web applications accessing a particular SQL Server: 

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server).

Unfortunately the error was not caught and it continued all day the next and stopped randomly at 5:15am the following morning. So basically it lasted from Sunday morning at 2am until Monday morning at 5:15am.  

Everything looked fine on the SQL Server and Web Servers.  There were no updates installed and the SQL Server was up and running with no problems.  I've checked the Windows logs on SQL and web servers and there was nothing that looked related. I've checked the items listed in the article below and none of them applied:

http://blog.sqlauthority.com/2009/05/21/sql-server-fix-error-provider-named-pipes-provider-error-40-could-not-open-a-connection-to-sql-server-microsoft-sql-server-error/

As far as I can tell it appears to be completely random. Has anybody ever come across anything like this?  I really appreciate any help on this.  Thanks.


Gus Jones

SQL Server 2012 Shutting Down Randomly

$
0
0

Hello,

I have two servers with Windows Server 2008 R2 and SQL Server 2012 Standard that were just setup about a week ago. Both SQL Server instances will randomly stop the service and become disabled. I have been reviewing the SQL Server Logs in C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Log and I am not seeing any issues that would cause it.

Edit: I am figuring that it is not a coincidence that is happening to two different servers setup at the same time. One with Reporting Services and the other with Integration Services.

Here is the log file:

2013-05-16 15:15:07.55 Server      Microsoft SQL Server 2012 (SP1) - 11.0.3000.0 (X64)
Oct 19 2012 13:38:57
Copyright (c) Microsoft Corporation
 Standard Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) (Hypervisor)

2013-05-16 15:15:07.55 Server      (c) Microsoft Corporation.
2013-05-16 15:15:07.55 Server      All rights reserved.
2013-05-16 15:15:07.55 Server      Server process ID is 3380.
2013-05-16 15:15:07.55 Server      System Manufacturer: 'VMware, Inc.', System Model: 'VMware Virtual Platform'.
2013-05-16 15:15:07.55 Server      Authentication mode is WINDOWS-ONLY.
2013-05-16 15:15:07.55 Server      Logging SQL Server messages in file 'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Log\ERRORLOG'.
2013-05-16 15:15:07.55 Server      The service account is '<Service Account>'. This is an informational message; no user action is required.
2013-05-16 15:15:07.55 Server      Registry startup parameters:
  -d C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\master.mdf
  -e C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Log\ERRORLOG
  -l C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\mastlog.ldf
2013-05-16 15:15:07.57 Server      Command Line Startup Parameters:
  -s "MSSQLSERVER"
2013-05-16 15:15:07.76 Server      SQL Server detected 2 sockets with 2 cores per socket and 2 logical processors per socket, 4 total logical processors; using 4 logical processors based on SQL Server licensing. This is an informational message; no user action is required.
2013-05-16 15:15:07.76 Server      SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required.
2013-05-16 15:15:07.76 Server      Detected 8191 MB of RAM. This is an informational message; no user action is required.
2013-05-16 15:15:07.76 Server      Using conventional memory in the memory manager.
2013-05-16 15:15:07.79 Server      Error: 8319, Severity: 16, State: 1.
2013-05-16 15:15:07.79 Server      Windows kernel object 'Global\SQL_110_MEMOBJ_24_MSSQLSERVER_0' already exists. It's not owned by the SQL Server service account. SQL Server performance counters are disabled.
2013-05-16 15:15:07.79 Server      Error: 3409, Severity: 16, State: 1.
2013-05-16 15:15:07.79 Server      Performance counter shared memory setup failed with error -1. Reinstall sqlctr.ini for this instance, and ensure that the instance login account has correct registry permissions.
2013-05-16 15:15:07.82 Server      Perfmon counters for resource governor pools and groups failed to initialize and are disabled.
2013-05-16 15:15:07.83 Server      This instance of SQL Server last reported using a process ID of 1740 at 5/16/2013 3:15:02 PM (local) 5/16/2013 8:15:02 PM (UTC). This is an informational message only; no user action is required.
2013-05-16 15:15:07.83 Server      Node configuration: node 0: CPU mask: 0x000000000000000f:0 Active CPU mask: 0x000000000000000f:0. This message provides a description of the NUMA configuration for this computer. This is an informational message only. No user action is required.
2013-05-16 15:15:07.84 Server      Using dynamic lock allocation.  Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node.  This is an informational message only.  No user action is required.
2013-05-16 15:15:07.85 Server      Software Usage Metrics is disabled.
2013-05-16 15:15:07.85 spid5s      Starting up database 'master'.
2013-05-16 15:15:07.94 Server      CLR version v4.0.30319 loaded.
2013-05-16 15:15:07.98 Server      Common language runtime (CLR) functionality initialized using CLR version v4.0.30319 from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\.
2013-05-16 15:15:08.70 spid5s      SQL Server Audit is starting the audits. This is an informational message. No user action is required.
2013-05-16 15:15:08.70 spid5s      SQL Server Audit has started the audits. This is an informational message. No user action is required.
2013-05-16 15:15:08.76 spid5s      SQL Trace ID 1 was started by login "sa".
2013-05-16 15:15:08.79 spid5s      Server name is '<Server Name>'. This is an informational message only. No user action is required.
2013-05-16 15:15:08.81 spid5s      Failed to verify Authenticode signature on DLL 'c:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Binn\ftimport.dll'.
2013-05-16 15:15:08.81 spid13s     Starting up database 'msdb'.
2013-05-16 15:15:08.81 spid16s     Starting up database 'red'.
2013-05-16 15:15:08.81 spid9s      Starting up database 'mssqlsystemresource'.
2013-05-16 15:15:08.82 spid17s     Starting up database 'SSISDB'.
2013-05-16 15:15:08.83 spid9s      The resource database build version is 11.00.3000. This is an informational message only. No user action is required.
2013-05-16 15:15:09.02 spid12s     A self-generated certificate was successfully loaded for encryption.
2013-05-16 15:15:09.02 spid12s     Server is listening on [ 'any' <ipv6> 1433].
2013-05-16 15:15:09.03 spid12s     Server is listening on [ 'any' <ipv4> 1433].
2013-05-16 15:15:09.03 spid12s     Server local connection provider is ready to accept connection on [  ].
2013-05-16 15:15:09.03 spid12s     Server local connection provider is ready to accept connection on [ ].
2013-05-16 15:15:09.03 Server      Server is listening on [ ::1 <ipv6> 1434].
2013-05-16 15:15:09.03 Server      Server is listening on [ 127.0.0.1 <ipv4> 1434].
2013-05-16 15:15:09.03 Server      Dedicated admin connection support was established for listening locally on port 1434.
2013-05-16 15:15:09.04 Server      SQL Server is attempting to register a Service Principal Name (SPN) for the SQL Server service. Kerberos authentication will not be possible until a SPN is registered for the SQL Server service. This is an informational message. No user action is required.
2013-05-16 15:15:09.04 spid12s     SQL Server is now ready for client connections. This is an informational message; no user action is required.
2013-05-16 15:15:09.07 Server      The SQL Server Network Interface library could not register the Service Principal Name (SPN) [ MSSQLSvc<FQDN>/ ] for the SQL Server service. Windows return code: 0x2098, state: 15. Failure to register a SPN might cause integrated authentication to use NTLM instead of Kerberos. This is an informational message. Further action is only required if Kerberos authentication is required by authentication policies and if the SPN has not been manually registered.
2013-05-16 15:15:09.07 Server      The SQL Server Network Interface library could not register the Service Principal Name (SPN) [ MSSQLSvc<FQDN>/:1433 ] for the SQL Server service. Windows return code: 0x2098, state: 15. Failure to register a SPN might cause integrated authentication to use NTLM instead of Kerberos. This is an informational message. Further action is only required if Kerberos authentication is required by authentication policies and if the SPN has not been manually registered.
2013-05-16 15:15:09.58 spid9s      Starting up database 'model'.
2013-05-16 15:15:09.74 spid9s      Clearing tempdb database.
2013-05-16 15:15:10.00 spid9s      Starting up database 'tempdb'.
2013-05-16 15:15:10.12 spid18s     The Service Broker endpoint is in disabled or stopped state.
2013-05-16 15:15:10.12 spid18s     The Database Mirroring endpoint is in disabled or stopped state.
2013-05-16 15:15:10.13 spid18s     Service Broker manager has started.
2013-05-16 15:15:10.27 spid16s     CHECKDB for database 'red' finished without errors on 2013-05-16 10:03:37.250 (local time). This is an informational message only; no user action is required.
2013-05-16 15:15:10.28 spid5s      Recovery is complete. This is an informational message only. No user action is required.
2013-05-16 15:15:10.32 spid5s      Launched startup procedure 'sp_ssis_startup'.
2013-05-16 15:15:11.08 spid16s     AppDomain 2 (SSISDB.dbo[runtime].1) created.
2013-05-16 15:15:11.25 spid16s     Unsafe assembly 'microsoft.sqlserver.integrationservices.server, version=11.0.0.0, culture=neutral, publickeytoken=89845dcd8080cc91, processorarchitecture=msil' loaded into appdomain 2 (SSISDB.dbo[runtime].1).
2013-05-16 15:15:11.29 spid16s     Unsafe assembly 'microsoft.sqlserver.integrationservices.server, version=11.0.0.0, culture=neutral, publickeytoken=89845dcd8080cc91, processorarchitecture=msil' loaded into appdomain 2 (SSISDB.dbo[runtime].1).
2013-05-16 15:15:48.03 spid52      Configuration option 'show advanced options' changed from 0 to 1. Run the RECONFIGURE statement to install.
2013-05-16 15:15:48.03 spid52      Configuration option 'Agent XPs' changed from 0 to 1. Run the RECONFIGURE statement to install.
2013-05-16 15:15:48.04 spid52      Configuration option 'show advanced options' changed from 1 to 0. Run the RECONFIGURE statement to install.
2013-05-16 15:15:48.51 spid52      Attempting to load library 'xpsqlbot.dll' into memory. This is an informational message only. No user action is required.
2013-05-16 15:15:48.52 spid52      Using 'xpsqlbot.dll' version '2011.110.2100' to execute extended stored procedure 'xp_qv'. This is an informational message only; no user action is required.
2013-05-16 15:15:48.66 spid52      Attempting to load library 'xpstar.dll' into memory. This is an informational message only. No user action is required.
2013-05-16 15:15:48.68 spid52      Using 'xpstar.dll' version '2011.110.3000' to execute extended stored procedure 'xp_instance_regread'. This is an informational message only; no user action is required.
2013-05-16 15:15:48.80 spid52      Attempting to load library 'xplog70.dll' into memory. This is an informational message only. No user action is required.
2013-05-16 15:15:48.81 spid52      Using 'xplog70.dll' version '2011.110.2100' to execute extended stored procedure 'xp_msver'. This is an informational message only; no user action is required.
2013-05-16 15:17:21.23 Logon       Error: 18456, Severity: 14, State: 38.
2013-05-16 15:17:21.23 Logon       Login failed for user 'NT AUTHORITY\SYSTEM'. Reason: Failed to open the explicitly specified database 'model'. [CLIENT: <IP Address>]
2013-05-16 15:17:21.23 Logon       Error: 18456, Severity: 14, State: 38.
2013-05-16 15:17:21.23 Logon       Login failed for user 'NT AUTHORITY\SYSTEM'. Reason: Failed to open the explicitly specified database 'model'. [CLIENT: <IP Address>]
2013-05-16 15:17:21.54 Logon       Error: 18456, Severity: 14, State: 38.
2013-05-16 15:17:21.54 Logon       Login failed for user 'NT AUTHORITY\SYSTEM'. Reason: Failed to open the explicitly specified database 'red'. [CLIENT: <IP Address>]
2013-05-16 15:17:21.54 Logon       Error: 18456, Severity: 14, State: 38.
2013-05-16 15:17:21.54 Logon       Login failed for user 'NT AUTHORITY\SYSTEM'. Reason: Failed to open the explicitly specified database 'red'. [CLIENT: <IP Address>]
2013-05-16 15:17:21.62 Logon       Error: 18456, Severity: 14, State: 38.
2013-05-16 15:17:21.62 Logon       Login failed for user 'NT AUTHORITY\SYSTEM'. Reason: Failed to open the explicitly specified database 'SSISDB'. [CLIENT: <IP Address>]
2013-05-16 15:17:21.62 Logon       Error: 18456, Severity: 14, State: 38.
2013-05-16 15:17:21.62 Logon       Login failed for user 'NT AUTHORITY\SYSTEM'. Reason: Failed to open the explicitly specified database 'SSISDB'. [CLIENT: <IP Address>]
2013-05-16 23:47:21.20 Logon       Login failed for user 'NT AUTHORITY\SYSTEM'. Reason: Failed to open the explicitly specified database 'SSISDB'. [CLIENT: <IP Address>]
2013-05-17 00:00:13.38 spid24s     This instance of SQL Server has been using a process ID of 3380 since 5/16/2013 3:15:10 PM (local) 5/16/2013 8:15:10 PM (UTC). This is an informational message only; no user action is required.
2013-05-17 00:01:34.28 spid51      Configuration option 'show advanced options' changed from 0 to 1. Run the RECONFIGURE statement to install.
2013-05-17 00:01:34.37 spid51      Configuration option 'Agent XPs' changed from 1 to 0. Run the RECONFIGURE statement to install.
2013-05-17 00:01:34.38 spid51      Configuration option 'show advanced options' changed from 1 to 0. Run the RECONFIGURE statement to install.
2013-05-17 00:01:35.94 spid18s     Service Broker manager has shut down.
2013-05-17 00:01:36.09 spid5s      .NET Framework runtime has been stopped.
2013-05-17 00:01:37.09 spid5s      SQL Server is terminating in response to a 'stop' request from Service Control Manager. This is an informational message only. No user action is required.
2013-05-17 00:01:37.09 spid5s      SQL Trace was stopped due to server shutdown. Trace ID = '1'. This is an informational message only; no user action is required.

I have also reviewed the Event Viewer and I see three entries one for disabling MSSQLSERVER, stopping SQL Server Agent, and one for stopping the SQL Server service. I do not see that any specific user information associated with the event.

System
  Provider
   [ Name]  Service Control Manager
   [ Guid]  {555908d1-a6d7-4695-8e1e-26931d2012f4}
   [ EventSourceName]  Service Control Manager
EventID 7040
   [ Qualifiers]  16384
   Version 0
   Level 4
   Task 0
   Opcode 0
   Keywords 0x8080000000000000
TimeCreated
   [ SystemTime]  2013-05-17T05:01:32.109975600Z
   EventRecordID 3733
   Correlation
Execution
   [ ProcessID]  620
   [ ThreadID]  2600
   Channel System
   Computer <FQDN>
Security
  [ UserID]  S-1-5-18
EventData
  param1 SQL Server (MSSQLSERVER)
  param2 auto start
  param3 disabled
  param4 MSSQLSERVER

Our servers do have System Center Operations Manager 2012 installed if that makes a difference. I am not sure what else I can check to see if I can find the cause of the problem. Any assistance would be appreciated.



can ODBC bcp_writefmt create a format file from the source table?

$
0
0

I am writing a routine using the SQL Server Driver extension to use BPC under ODBC.

I get a table name, with arbitrary column names and types and lengths, and wish to create a BPC format file to im[port a csv file into that table.  All I have from the csv file is the column names and the delimiters,  I do not have the maximum field lengths from the csv file yet, I have not yet read it beyond the first row.

I got through all the odbc setup stuff, and did the bpc_init(), that worked. 

The next was a bcp_control(... BCPUNICODEFILE,IN), which returnd a SUCCEED. 

When I did the bcp_writefmt(... DB_IN), it returns a 0 .

A SQLGetDiagRec() returns a SQL_NO_DATA, so I don't have a clue as to what is wrong.

I am of course assuming the "bcp thru odbc" is capable of creating a format file the same as a command line bcp execution is.

I am not using a command line process because I have no way of knowing right now what code page the command line interpreter will be using and the conflict that may have with the code page needed for the column names.  We had a problem with mis-matches at a remote customer site.

How to assign AD group default schema

$
0
0

Hi,

We have AD group. Users are member of this group. I want to assing default_schema to this AD group. Why I right click user in db, selected properties, default schema is not selectable. How to to assing default schema to a windows AD group? (Microsoft SQL Server 2008 R2 (SP2) - 10.50.4000.0 (X64).

Thanks


How to configure a computed column that uses two related tables at table design time

$
0
0

--SQLServer 2008'R2

I have two related tables one to many relationship dbo.days which holds 'Monday' through 'Friday', so dbo.dayid.3 would be 'Wednesday'

and dbo.worklog both related on dbo.Day.DayID and dbo.worklog.DayID

I tried to set up the computed field for dbo.worklog.day like so:

Computed Column specification: dbo.worklog.day=dbo.days.day

The reason is I want the field dbo.worklog.day to auto populate with the string value 'Monday', 'Tuesday', etc when I enter worklog data.

But the designer comes back with error saying expression cant be used etc

I have hunted around a bit trying to find the right syntax for this expression, but it seems many people are saying I need to use a User defined function. If so how do I write such an expression to reference a field in a related table and what parameter if any do I pass into it?. If I have to use a UDF how do I call it from the designer?

I'm just trying to gain a better understanding of computed fields

Thank you in advance for your valuable time :)


paul



SQL Server 2008 Memory Usage details

$
0
0

Server configuration : Windows 2008 64-bit & SQL Server 2008 64-bit environment with 14 Gigs of Memory.

Max. Server Memory set to 11 Gigs.

- The task manager is showing sqlservr.exe is consuming all the 11 Gigs of memory.

- The DBCC Memory Status result from Memory Manager tab is as follows:

Memory Manager    KB
VM Reserved    14806872
VM Committed    11147312

- When I query the entire memory usage using the following script (taken from the site :http://sqlserverpedia.com/wiki/Current_Memory_Use_By_SQL_Server)

select 
	type,
	sum(virtual_memory_reserved_kb) as [VM Reserved],
	sum(virtual_memory_committed_kb) as [VM Committed],
	sum(awe_allocated_kb) as [AWE Allocated],
	sum(shared_memory_reserved_kb) as [SM Reserved], 
	sum(shared_memory_committed_kb) as [SM Committed],
	sum(multi_pages_kb) as [MultiPage Allocator],
	sum(single_pages_kb) as [SinlgePage Allocator]
from sys.dm_os_memory_clerks 
group by type
order by 8 desc

From the result set I have noticed the following heavy memory usage details for this instance.

type                                   VM Reserved    VM Committed    AWE Allocated    SM Reserved    SM Committed    MultiPage Allocator    SinlgePage Allocator
MEMORYCLERK_SQLBUFFERPOOL 14712832    11249328    0    0    0    400    0

Here, I am unable to drill down, 1. What is VM Committed ? (same result being shown in DBCC Memorystatus result set). I referred thatVM Committed: This value shows the VAS that is committed by threads that are running on this node.

From the Memory Clerk name, I can understand that this is SQL Server Bufferpool usage. But, I find an another script from the following link that is providing the database wise bufferpool memory usage. This script is querying the DMV:sys.dm_os_buffer_descriptors

------Determine SQL Server memory use by database and object

------http://www.mssqltips.com/sqlservertip/2393/determine-sql-server-memory-use-by-database-and-object/

But, as per the result of this query on this said instance, the total bufferpool usage by all the databases are around 7 Gigs only. So, what is the reason for the gap of 4 Gigs ?

How to identify which is causing this usage ? I mean to break-up for the memory usage of 11249328 KB.Thanks in advance.


Instance error

$
0
0

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box

Log database always full

$
0
0

Hi,

I run SQL Server 2005 Workgroup Edition on Win SBS 2003 R2, it's 32-bit system. And I'm using the SQL Server 2005 WE for our small company's app database, and here's the recent trouble I discovered:

In Event Viewer, in Application error log, Source:MSSQLSERVER, Category: (2), Event: 9002, the detail info of the error: "The transaction log for database 'AppDB' is full. To find out why space in the log can't be reused, see the log_reuse_wait_desc column in sys.databases."

I don't change any of the SQL Server 2005 WE settings ever since I first installed it, and I've been using it with the 'AppDB' for quite a long time. The app in our client computers are beginning to feel some erratic behavior whenever they need to retrieve some new database, sometimes the app freezes and unresponsive.

Is this transaction log always full a serious problem? If yes, how do I liberate the problem?

Thanks for helping me out.


Dhow here.

xp_delete_file extremely slow on a server - Wait_Info PREEMPTIVE_OS_GETPROCADDRESS

$
0
0

I am looking at one server where xp_delete_file is extremely slow to delete files.

One subdirectory contains a few thousands files and it takes about 1 second for each file to delete.

The wait_info is PREEMPTIVE_OS_GETPROCADDRESS.

Deleting files through the del command in Windows is fast.

Has anyone seen this before? Any ideas how to troubleshoot it?

Ola Hallengren
http://ola.hallengren.com

Viewing all 15872 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>