Quantcast
Channel: SQL Server Database Engine forum
Viewing all 12963 articles
Browse latest View live

Log File Issue In SQL server 2005 standard Edition

$
0
0

We have database of size 375GB .The data file has 80 GB free space within .When trying to rebuild the index we had 450 GB free space on the disk where Log file is residing.The rebuild index activity failed due to space issue.added more space and got the job done successfully

The Log file has grow up to 611GB to complete the rebuild index.

version :SQL server 2005 Standard Edition .Is ther a way to estimate the space required for rebuild index in this version.

I am aware we notmaly allocate 1.5 times of data file.But in this case It was totaly wrong.

Any suggestion with examples would be appreciated.

Raghu


Error while restoring database

$
0
0

Hi all,

 I am getting the blow error message while restoring one Transaction log backup.

"The log or differential backup cannot be restored because no files are ready to rollforward. "


I was trying to understand the backup and restore in sql server especially how the  log back up can help to restore the data if the database is crashed. the following steps I have followed:

1)Created one database called "TEST" and created one table "T1" and inserted one record "r1"
2)Took backup and restored into other server.
3)Inserted record "r2" on the first server's"TEST" database and took transaction log backup
4)Tried to restore into second server, got the above error

Please help me to under stand the error and resolve.

Database trigger and backup restore.

$
0
0

SQL 2008 SP1 Standard edition.

I have noticed that DDL database triggers are not restored from full database backup.

Are they stored in master database?

FILESTREAM garbage collector in sql server 2012

$
0
0

HI

what is FILESTREAM garbage collector in sql server 2012

I restored a backup of a sharepoint 2010  content database it is rbs enabled

when I restore  blobs are deleting from a rbs storage folder how its happen


adil

Get Canceled query with Extended Event

$
0
0

Hey,

I just created a event session below, but this type of event don't catch cancelled queries. If you wait more than 3 seconds and cancel a query this event won't catch it.

There is some way to get cancelled query that spend more than 3 seconds until be cancelled?

CREATE EVENT SESSION [QueriesDemoradas] ON SERVER 
ADD EVENT sqlserver.sql_statement_completed(
    ACTION(
package0.collect_system_time,
sqlserver.client_app_name,
sqlserver.client_hostname,
sqlserver.database_id,
--sqlserver.server_instance_name,
sqlserver.session_id,
sqlserver.sql_text,
sqlserver.tsql_stack,
sqlserver.username
)
    WHERE ([sqlserver].[sql_statement_completed].[duration]>(3000000))) 
   ADD TARGET package0.asynchronous_file_target(
SET filename='C:\QueriesDemoradas.xet', metadatafile='C:\QueriesDemoradas.xem')


Fabricio Lima | MCP, MCTS, MCITP | Twitter: @fabriciodba | Consultoria SQL Server: http://fabriciolima.net/blog/consultoria-remota/

while CDC implement in our DB server i need to capture the data in custom table along with date and time?

$
0
0

In my production database server having 629 tables, i want to implement CDC for few (near by 90 tables) kind of operations going on who is doing, when they did information. for this i need to store information customized table like user,getdate().

Is it possible to capture through CDC other than Table level trigger? please suggest.

thanks

SVB

BLOBS are deleting from RBS storage of a content database automatically

$
0
0

I restored a backup of a sharepoint 2010  content database it is rbs enabled

when I restore  blobs are deleting from a rbs storage folder how its happen

is its a default behavior of  rbs maintainer or how I check  the  rbs maintainer  garbage collection settings for this content database


adil

Mayday! SS DBE Guru urgently required, for love and glory from all the community!

$
0
0

Mayday! Mayday!

A distress signal is being sent out to all past, present and future Gurus!

We need more of your awesomeness!

The TechNet Guru Competitions have become BIG news within Microsoft circles, drawing in more and more departments. Over the last year or so, we have found new and old talent emerging from the community. This is your chance to come out of the shadows of daily grind and take your rightful place in the sun. Come bask in the glory we bestow upon our winners. Build a reputation and promote your own awesomeness to the world (and potential employers).

So bring us your snippets, black holes and revelations. Enlighten us with your factoids and work-arounds. Thrill us with your nifty walk-throughs, overviews and analysis.

Not forgetting Star Wars day!

May the 4th be with you!

All you have to do is add an article to TechNet Wiki from your own specialist field. Something that fits into one of the categories listed on the submissions page. Copy in your own blog posts, a forum solution, a white paper, or just something you had to solve for your own day's work today.

Drop us some nifty knowledge, or superb snippets, and become MICROSOFT TECHNOLOGY GURU OF THE MONTH!

This is an official Microsoft TechNet recognition, where people such as yourselves can truly get noticed!

HOW TO WIN

1) Please copy over your Microsoft technical solutions and revelations toTechNet Wiki.

2) Add a link to it on THIS WIKI COMPETITION PAGE (so we know you've contributed)

3) Every month, we will highlight your contributions, and select a "Guru of the Month" in each technology.

If you win, we will sing your praises in blogs and forums, similar to the weekly contributor awards. Once "on our radar" and making your mark, you will probably be interviewed for your greatness, and maybe eventually even invited into other inner TechNet/MSDN circles!

Winning this award in your favoured technology will help us learn the active members in each community.

Feel free to ask any questions below.

More about TechNet Guru Awards

Thanks in advance!
Pete Laker


#PEJL

Got any nice code? If you invest time in coding an elegant, novel or impressive answer on MSDN forums, why not copy it over to the one and onlyTechNet Wiki, for future generations to benefit from! You'll never get archived again!

If you are a member of any user groups, please make sure you list them in the Microsoft User Groups Portal. Microsoft are trying to help promote your groups, and collating them here is the first step.


Error: 18056, Severity: 20, State: 29.

$
0
0

Hi All,

I am getting fowling error on Windows 2008 R2 Server/SQL 2008 R2 Service Pack 1 (Build 7601). Server is production for last eight month never had any error. This first time we had error and all user went down until whole server rebooted. It didnt failed on Mirror server. Any resolution /help/ suggestion is appreciated.

Error: 18056, Severity: 20, State: 29.

2012-04-20 06:20:08.42 spid235     The client was unable to reuse a session with SPID 235, which had been reset for connection pooling. The failure ID is 29. This error may have been caused by an earlier operation failing. Check the error logs for failed operations immediately before this error message.
2012-04-20 06:20:08.42 spid231     Error: 18056, Severity: 20, State: 29.
2012-04-20 06:20:08.42 spid231     The client was unable to reuse a session with SPID 231, which had been reset for connection pooling. The failure ID is 29. This error may have been caused by an earlier operation failing. Check the error logs for failed operations immediately before this error message.
2012-04-20 06:20:13.88 spid140     Error: 18056, Severity: 20, State: 29.
2012-04-20 06:20:13.88 spid140     The client was unable to reuse a session with SPID 140, which had been reset for connection pooling. The failure ID is 29. This error may have been caused by an earlier operation failing. Check the error logs for failed operations immediately before this error message.
2012-04-20 06:20:47.41 spid175     Error: 18056, Severity: 20, State: 29.
2012-04-20 06:20:47.41 spid175     The client was unable to reuse a session with SPID 175, which had been reset for connection pooling. The failure ID is 29. This error may have been caused by an earlier operation failing. Check the error logs for failed operations immediately before this error message.
2012-04-20 06:20:49.68 spid93      Error: 18056, Severity: 20, State: 29.
2012-04-20 06:20:49.68 spid93      The client was unable to reuse a session with SPID 93, which had been reset for connection pooling. The failure ID is 29. This error may have been caused by an earlier operation failing. Check the error logs for failed operations immediately before this error message.
2012-04-20 06:21:31.87 Logon       Error: 18456, Severity: 14, State: 46.
2012-04-20 06:21:31.87 Logon       Login failed for user 'sems'. Reason: Failed to open the database configured in the login object while revalidating the login on the connection. [CLIENT: 192.168.10.39]
2012-04-20 06:21:31.87 spid140     Error: 18056, Severity: 20, State: 46.
2012-04-20 06:21:31.87 spid140     The client was unable to reuse a session with SPID 140, which had been reset for connection pooling. The failure ID is 46. This error may have been caused by an earlier operation failing. Check the error logs for failed operations immediately before this error message.
2012-04-20 06:23:18.83 Logon       Error: 18456, Severity: 14, State: 51.
2012-04-20 06:23:18.83 Logon       Login failed for user 'sems'. Reason: Failed to send an environment change notification to a log shipping partner node while revalidating the login. [CLIENT: 192.168.10.38]
2012-04-20 06:23:18.83 spid198     Error: 18056, Severity: 20, State: 51.
2012-04-20 06:23:18.83 spid198     The client was unable to reuse a session with SPID 198, which had been reset for connection pooling. The failure ID is 51. This error may have been caused by an earlier operation failing. Check the error logs for failed operations immediately before this error message.
2012-04-20 06:23:53.32 Logon       Error: 18456, Severity: 14, State: 51.
2012-04-20 06:23:53.32 Logon       Login failed for user 'sems'. Reason: Failed to send an environment change notification to a log shipping partner node while revalidating the login. [CLIENT: 192.168.10.38]
2012-04-20 06:23:53.32 spid136     Error: 18056, Severity: 20, State: 51.
2012-04-20 06:23:53.32 spid136     The client was unable to reuse a session with SPID 136, which had been reset for connection pooling. The failure ID is 51. This error may have been caused by an earlier operation failing. Check the error logs for failed operations immediately before this error message.
2012-04-20 06:24:19.48 Logon       Error: 18456, Severity: 14, State: 51.
2012-04-20 06:24:19.48 Logon       Login failed for user 'sems'. Reason: Failed to send an environment change notification to a log shipping partner node while revalidating the login. [CLIENT: 192.168.10.39]
2012-04-20 06:24:19.48 Logon       Error: 18456, Severity: 14, State: 51.

Many Thanks

Rupesh

Using SQL Azure for session state throws a cast error

$
0
0

I have a web application running on an Azure VM using SQL Azure for persistence. I just added a second SQL Azure database for ASPState. I believe that I have set up the ASPState database correctly but certain transaction cause aUnable to cast object of type 'System.DBNull' to type 'System.Byte[]'.

Here is the TempSessions table schema

CREATE

TABLE[dbo].[ASPStateTempSessions](


[SessionId]

NVARCHAR(88)   NOTNULL,


    [Created]         

DATETIME        DEFAULT(getutcdate())NOTNULL,


    [Expires]         

DATETIME        NOTNULL,


    [LockDate]        

DATETIME        NOTNULL,


    [LockDateLocal]   

DATETIME        NOTNULL,


    [LockCookie]      

INT             NOTNULL,


    [Timeout]         

INT             NOTNULL,


    [Locked]          

BIT             NOTNULL,


    [SessionItemShort]

VARBINARY(7000)NULL,


    [SessionItemLong] 

IMAGE           NULL,


    [Flags]           

INT             DEFAULT((0))NOTNULL,


   

PRIMARYKEYCLUSTERED([SessionId]ASC)

);


 


GO

CREATE

NONCLUSTEREDINDEX[Index_Expires]

   

ON[dbo].[ASPStateTempSessions]([Expires]ASC);


I get one or the other error when i install SQL server 2012 SP1 in my Lab server

$
0
0

I get multiple errors when i install SQL server 2012 SP1 In my lab server.

Not sure why i keep getting different errors all the time when i install SQL server 2012 & 2012 SP1.

Below are error codes, screen shots and also a log of the error.

1.  Eror code 0X84B40000

Also dint understand any thing from this article related to the above error 

http://social.technet.microsoft.com/Forums/sqlserver/en-US/5b6cc928-0db8-4fe4-a5d3-21672225f0ca/i-get-error-code-0x84b40000-when-trying-to-install-sql-server-mgmt-studio-to-an-existing-sql?forum=sqlexpress

2. Eror code 0x851A001A

Can any one plz help as i always get one or the other error.

====================================

Screen shot: 

Please note the below screen shot has given the error code 0x851A001A which is same in case of failure of all the other features which have failed during this installation. Hence i have uploaded only one screen shot.



2. Log file content.

=================================

Overall summary:
  Final result:                  Failed: see details below
  Exit code (Decimal):           -2061893606
  Start time:                    2014-05-04 21:15:35
  End time:                      2014-05-04 21:51:45
  Requested action:              Install

Setup completed with required actions for features.
Troubleshooting information for those features:
  Next step for RS:              Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
  Next step for SQLEngine:       Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
  Next step for FullText:        Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
  Next step for Replication:     Use the following information to resolve the error, uninstall this feature, and then run the setup process again.


Machine Properties:
  Machine name:                  SERVER1
  Machine processor count:       2
  OS version:                    Windows Server 2008 R2
  OS service pack:               Service Pack 1
  OS region:                     United States
  OS language:                   English (United States)
  OS architecture:               x64
  Process architecture:          64 Bit
  OS clustered:                  No

Product features discovered:
  Product              Instance             Instance ID                    Feature                                 Language             Edition              Version         Clustered 
  SQL Server 2012      MSSQLSERVER          MSSQL11.MSSQLSERVER            Database Engine Services                 1033                Enterprise Edition   11.0.2100.60    No        
  SQL Server 2012      MSSQLSERVER          MSSQL11.MSSQLSERVER            SQL Server Replication                   1033                Enterprise Edition   11.0.2100.60    No        
  SQL Server 2012      MSSQLSERVER          MSSQL11.MSSQLSERVER            Full-Text and Semantic Extractions for Search 1033                 Enterprise Edition   11.0.2100.60    No        
  SQL Server 2012      MSSQLSERVER          MSSQL11.MSSQLSERVER            Data Quality Services                    1033                Enterprise Edition   11.0.2100.60    No        
  SQL Server 2012      MSSQLSERVER          MSAS11.MSSQLSERVER             Analysis Services                        1033                Enterprise Edition   11.0.2100.60    No        
  SQL Server 2012      MSSQLSERVER          MSRS11.MSSQLSERVER             Reporting Services - Native              1033                Enterprise Edition   11.0.2100.60    No        
  SQL Server 2012                                                          Management Tools - Basic                1033                 Enterprise Edition   11.0.2100.60    No        
  SQL Server 2012                                                          Management Tools - Complete             1033                 Enterprise Edition   11.0.2100.60    No        
  SQL Server 2012                                                          Client Tools Connectivity               1033                 Enterprise Edition   11.0.2100.60    No        
  SQL Server 2012                                                          Client Tools Backwards Compatibility    1033                 Enterprise Edition   11.0.2100.60    No        
  SQL Server 2012                                                          Client Tools SDK                        1033                 Enterprise Edition   11.0.2100.60    No        
  SQL Server 2012                                                          Integration Services                    1033                 Enterprise Edition   11.0.2100.60    No        
  SQL Server 2012                                                          Reporting Services - SharePoint                                                   11.0.2100.60    No        

Package properties:
  Description:                   Microsoft SQL Server 2012 Service Pack 1
  ProductName:                   SQL Server 2012
  Type:                          RTM
  Version:                       11
  SPLevel:                       0
  Installation location:         F:\x64\setup\
  Installation edition:          Enterprise

Product Update Status:
  None discovered.

User Input Settings:
  ACTION:                        Install
  ADDCURRENTUSERASSQLADMIN:      false
  AGTSVCACCOUNT:                 ms\sql
  AGTSVCPASSWORD:                *****
  AGTSVCSTARTUPTYPE:             Automatic
  ASBACKUPDIR:                   Backup
  ASCOLLATION:                   Latin1_General_CI_AS
  ASCONFIGDIR:                   Config
  ASDATADIR:                     Data
  ASLOGDIR:                      Log
  ASPROVIDERMSOLAP:              1
  ASSERVERMODE:                  MULTIDIMENSIONAL
  ASSVCACCOUNT:                  <empty>
  ASSVCPASSWORD:                 <empty>
  ASSVCSTARTUPTYPE:              Automatic
  ASSYSADMINACCOUNTS:            <empty>
  ASTEMPDIR:                     Temp
  BROWSERSVCSTARTUPTYPE:         Disabled
  CLTCTLRNAME:                   <empty>
  CLTRESULTDIR:                  <empty>
  CLTSTARTUPTYPE:                0
  CLTSVCACCOUNT:                 <empty>
  CLTSVCPASSWORD:                <empty>
  CLTWORKINGDIR:                 <empty>
  COMMFABRICENCRYPTION:          0
  COMMFABRICNETWORKLEVEL:        0
  COMMFABRICPORT:                0
  CONFIGURATIONFILE:             C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20140504_204851\ConfigurationFile.ini
  CTLRSTARTUPTYPE:               0
  CTLRSVCACCOUNT:                <empty>
  CTLRSVCPASSWORD:               <empty>
  CTLRUSERS:                     <empty>
  ENABLERANU:                    false
  ENU:                           true
  ERRORREPORTING:                true
  FEATURES:                      SQLENGINE, REPLICATION, FULLTEXT, RS
  FILESTREAMLEVEL:               0
  FILESTREAMSHARENAME:           <empty>
  FTSVCACCOUNT:                  NT Service\MSSQLFDLauncher$SCOM
  FTSVCPASSWORD:                 <empty>
  HELP:                          false
  IACCEPTSQLSERVERLICENSETERMS:  true
  INDICATEPROGRESS:              false
  INSTALLSHAREDDIR:              C:\Program Files\Microsoft SQL Server\
  INSTALLSHAREDWOWDIR:           C:\Program Files (x86)\Microsoft SQL Server\
  INSTALLSQLDATADIR:             <empty>
  INSTANCEDIR:                   C:\Program Files\Microsoft SQL Server\
  INSTANCEID:                    SCOM
  INSTANCENAME:                  SCOM
  ISSVCACCOUNT:                  NT AUTHORITY\Network Service
  ISSVCPASSWORD:                 <empty>
  ISSVCSTARTUPTYPE:              Automatic
  MATRIXCMBRICKCOMMPORT:         0
  MATRIXCMSERVERNAME:            <empty>
  MATRIXNAME:                    <empty>
  NPENABLED:                     0
  PID:                           *****
  QUIET:                         false
  QUIETSIMPLE:                   false
  ROLE:                          <empty>
  RSINSTALLMODE:                 DefaultNativeMode
  RSSHPINSTALLMODE:              DefaultSharePointMode
  RSSVCACCOUNT:                  NT Service\ReportServer$SCOM
  RSSVCPASSWORD:                 <empty>
  RSSVCSTARTUPTYPE:              Automatic
  SAPWD:                         <empty>
  SECURITYMODE:                  <empty>
  SQLBACKUPDIR:                  <empty>
  SQLCOLLATION:                  SQL_Latin1_General_CP1_CI_AS
  SQLSVCACCOUNT:                 ms\sql
  SQLSVCPASSWORD:                *****
  SQLSVCSTARTUPTYPE:             Automatic
  SQLSYSADMINACCOUNTS:           MS\Gautam, MS\SCOM Users
  SQLTEMPDBDIR:                  <empty>
  SQLTEMPDBLOGDIR:               <empty>
  SQLUSERDBDIR:                  <empty>
  SQLUSERDBLOGDIR:               <empty>
  SQMREPORTING:                  false
  TCPENABLED:                    1
  UIMODE:                        Normal
  UpdateEnabled:                 true
  UpdateSource:                  MU
  X86:                           false

  Configuration file:            C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20140504_204851\ConfigurationFile.ini

Detailed results:
  Feature:                       Reporting Services - Native
  Status:                        Failed: see logs for details
  Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
  Next Step:                     Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
  Component name:                SQL Server Database Engine Services Instance Features
  Component error code:          0x851A001A
  Error description:             Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes.
  Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026

  Feature:                       Database Engine Services
  Status:                        Failed: see logs for details
  Reason for failure:            An error occurred during the setup process of the feature.
  Next Step:                     Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
  Component name:                SQL Server Database Engine Services Instance Features
  Component error code:          0x851A001A
  Error description:             Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes.
  Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026

  Feature:                       Full-Text and Semantic Extractions for Search
  Status:                        Failed: see logs for details
  Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
  Next Step:                     Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
  Component name:                SQL Server Database Engine Services Instance Features
  Component error code:          0x851A001A
  Error description:             Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes.
  Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026

  Feature:                       SQL Server Replication
  Status:                        Failed: see logs for details
  Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
  Next Step:                     Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
  Component name:                SQL Server Database Engine Services Instance Features
  Component error code:          0x851A001A
  Error description:             Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes.
  Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026

  Feature:                       SQL Browser
  Status:                        Passed

  Feature:                       SQL Writer
  Status:                        Passed

Rules with failures:

Global rules:

Scenario specific rules:

Rules report file:               C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20140504_204851\SystemConfigurationCheck_Report.htm


SQL 2005 x64 exception

$
0
0

Recently We've migrated SQL 2005 x86 Enterprise running on Windows 2003 Enterprise to new hardware where is running Windows 2008 SP2 and SQL 2005 x64 SP4 with CU3. We migrate users (with standard approach by Microsoft) and application databases to new server. Everything is looking ok, applications working. But we've got some SQL exceptions like below.

Is there any known bug related to that? Could someone help us.

Memory                              
MemoryLoad = 15%                    
Total Physical = 32733 MB           
Available Physical = 27752 MB       
Total Page File = 64782 MB          
Available Page File = 60344 MB      
Total Virtual = 8388607 MB          
Available Virtual = 8355366 MB      
**Dump thread - spid = 84, PSS = 0x00000000D1A43ED0, EC = 0x00000000D1A43EE0                                    
***Stack Dump being sent to D:\MSSQL.1\MSSQL\LOG\SQLDump0005.txt                                                
* *******************************************************************************                               
*                                                                                                               
* BEGIN STACK DUMP:                                                                                             
*   04/25/14 12:54:30 spid 84                                                                                   
*                                                                                                               
* ex_handle_except encountered exception C0000264 - Server terminating                                          
*                                                                                                               
* Input Buffer 255 bytes - 

There is also some output from debugger:

0:000> .ecxr
rax=0000000077207080 rbx=0000000000000000 rcx=0000000016a37d50
rdx=0000000000000000 rsi=0000000000000000 rdi=0000000000000440
rip=00000000772070bd rsp=0000000016a38240 rbp=000000000000003f
 r8=0000000000000000  r9=0000000000000000 r10=0000000000000000
r11=0000000000000287 r12=00000000032fdab0 r13=0000000000000000
r14=00000000000019e4 r15=0000000049b8d00c
iopl=0         nv up ei pl nz na po nc
cs=0033  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00000206
kernel32!RaiseException+0x3d:
00000000`772070bd 4881c4c8000000  add     rsp,0C8h
0:000> kC 1000
Call Site
kernel32!RaiseException
sqlservr!DmpGetClientExport
sqlservr!_____SQL______Process______Available
sqlservr!_____SQL______Process______Available
sqlservr!_____SQL______Process______Available
sqlservr!SQLExit
kernel32!UnhandledExceptionFilter
ntdll!RtlpNotOwnerCriticalSection
ntdll!_C_specific_handler
ntdll!RtlIntegerToChar
ntdll!_C_specific_handler
ntdll!RtlRaiseStatus
ntdll!RtlpNotOwnerCriticalSection
ntdll!LdrGetProcedureAddress
sqlshield
sqlservr
0x0
0x0
0x0
0x0
0x0

 

Can i write blogs in MSDN related to SQL Server?

$
0
0

I am very passionate when it comes about SQL Server.

From the past 10 months i am writing blogs in SQL Server, and still i consider myself to be in a learning phase, which keeps me improving day by day.

You can see my blogs at: www.sqlservergeeks.com/blogs/piyush.bajaj.2007

So now i also want to contribute to MSDN with my knowledge, and i feel that it be my pleasure to write for Microsoft.

Thanks

Piyush

Tempdb mdf file is full

$
0
0

Hi All,

my tempdb mdf file is full .it occupies 85Gb out-of 90Gb

Server:Sql server2008R2

Please help me in this issue.


Maheshwar Reddy

Why updates on some tables with always on synchronize mode take * 100 than when asynchronize mode

$
0
0

I have Always-On synchronization on some databases, We want to change from asynchronize mode to synchronize mode, I tested to see what the  change in performance between the two, and found that in general the select statements keep the same duration with and without synchronize mode, most of the update\insert usually take around * 4 times from the asynchronize mode, BUT some updates take much longer. I would like to understand why things take MUCH longer (I understand that working with synchronize mode is a 2 phase commit and should take * 4 times, but I can't understand why some of them take 50 - 100 times more).

1. One query is an update made on a table with few records (up to 40 records), this update run 250K times a day, and a very simple update on this table takes * 98 than without synchronize mode

1. An update on a big table with 2 million records, using a query that specify the unique column in the primary cluster key, takes 50 times more.

What are  the factors that have dramatic influence on performance when 2 phase commit (asynchronize mode) is used?


SQL Embedded, In-memory or whatever its called

$
0
0

I am a developer who uses different databases, but SQL Server is my favorite. I have a couple of small portable apps that I have been using a MS Access database to store information. I am interested in using the feature that allows you to embed a SQL database/engine in your .NET app. I saw it first in 2012, and now in 2014, but still a shortage of info, even in MSDN. Is this fringe tech to be avoided? Maybe I should stick with access as it has a front-end for design purposes?


Lee


Diffrent in performance between mirror with safey full and always-on with synchronize mode

$
0
0

I need to run a POC to see if we can implement 2 phase commit in our mirroring environment.

we currently can't configure always-on to the DR site, so I would like to run the tests using Mirroring with safety on as a test.

should I expect to have same performance with Always on AG with synchronize mode, as with mirroring with safety full?

SQL Server Performance Issue in Memory

$
0
0

Dear All

Can you please help me out of this below issue.

My Server having : Windows 2012 SD 64 bit

SQL : SQL 2008 R2 64 bit SP1 

Memory : 64 GB

SQL Min Memory : 45 GB and Max memory : 55 GB so remaining 9 GB available

but my sql server any time shows 94% memory utilization. i have checked below points

Physical Memory_MB                      Physical Memory_GB                      Virtual Memory GB
--------------------------------------- --------------------------------------- ---------------------------------------
65536                                   64                                      8192
-------------------------------
Buffer Pool Usage at the Moment

BPool_Committed_MB                      BPool_Commit_Tgt_MB                     BPool_Visible_MB
--------------------------------------- --------------------------------------- ---------------------------------------
56320.000000                            56320.000000                            56320.000000

--------------------------------------------------------------------------
Total Memory used by SQL Server Buffer Pool as reported by Perfmon counters

Mem_KB               Mem_MB                                  Mem_GB
-------------------- --------------------------------------- ---------------------------------------
57671680             56320.000000                            55.000000000
-------------------------------------------------------------
Memory needed as per current Workload for SQL Server instance

Mem_KB               Mem_MB                                  Mem_GB
-------------------- --------------------------------------- ---------------------------------------
57671680             56320.000000                            55.000000000
------------------------------------------------------------------------------
Total amount of dynamic memory the server is using for maintaining connections

Mem_KB               Mem_MB                                  Mem_GB
-------------------- --------------------------------------- ---------------------------------------
912                  0.890625                                0.000869750
------------------------------------------------------------
Total amount of dynamic memory the server is using for locks

Mem_KB               Mem_MB                                  Mem_GB
-------------------- --------------------------------------- ---------------------------------------
40296                39.351562                               0.038429260
----------------------------------------------------------------------------
Total amount of dynamic memory the server is using for the dynamic SQL cache

Mem_KB               Mem_MB                                  Mem_GB
-------------------- --------------------------------------- ---------------------------------------
2056                 2.007812                                0.001960754
-------------------------------------------------------------------------
Total amount of dynamic memory the server is using for query optimization

Mem_KB               Mem_MB                                  Mem_GB
-------------------- --------------------------------------- ---------------------------------------
2880                 2.812500                                0.002746582
-------------------------------------------------------------------------------
Total amount of dynamic memory used for hash, sort and create index operations.

Mem_KB               Mem_MB                                  Mem_GB
-------------------- --------------------------------------- ---------------------------------------
0                    0.000000                                0.000000000
------------------------------------------
Total Amount of memory consumed by cursors

Mem_KB               Mem_MB                                  Mem_GB
-------------------- --------------------------------------- ---------------------------------------
28464                27.796875                               0.027145385
-------------------------------------------------------------------------
Number of pages in the buffer pool (includes database, free, and stolen).

8KB_Pages            Pages_in_KB                             Pages_in_MB
-------------------- --------------------------------------- ---------------------------------------
7208960              57671680.000000                         56320.000000000
---------------------------------------
Number of Data pages in the buffer pool

8KB_Pages            Pages_in_KB                             Pages_in_MB
-------------------- --------------------------------------- ---------------------------------------
6710944              53687552.000000                         52429.250000000
---------------------------------------
Number of Free pages in the buffer pool

8KB_Pages            Pages_in_KB                             Pages_in_MB
-------------------- --------------------------------------- ---------------------------------------
234598               1876784.000000                          1832.796875000
-------------------------------------------
Number of Reserved pages in the buffer pool

8KB_Pages            Pages_in_KB                             Pages_in_MB
-------------------- --------------------------------------- ---------------------------------------
0                    0.000000                                0.000000000
-----------------------------------------
Number of Stolen pages in the buffer pool

8KB_Pages            Pages_in_KB                             Pages_in_MB
-------------------- --------------------------------------- ---------------------------------------
263418               2107344.000000                          2057.953125000
---------------------------------------------
Number of Plan Cache pages in the buffer pool

8KB_Pages            Pages_in_KB                             Pages_in_MB
-------------------- --------------------------------------- ---------------------------------------
135772               1086176.000000                          1060.718750000
-----------------------------------------------------------------------------------------------
Page Life Expectancy - Number of seconds a page will stay in the buffer pool without references

Page Life in seconds PLE Status
-------------------- ------------------
111450               PLE is Healthy
--------------------------------------------------------------
Number of requests per second that had to wait for a free page

Free list stalls/sec
--------------------
373
-----------------------------------------------------------------------------------------------------------------
Number of pages flushed to disk/sec by a checkpoint or other operation that require all dirty pages to be flushed

Checkpoint pages/sec
--------------------
8052165
------------------------------------------------------------------------
Number of buffers written per second by the buffer manager"s lazy writer

Lazy writes/sec
--------------------
1247
--------------------------------------------------------------
Total number of processes waiting for a workspace memory grant

Memory Grants Pending
---------------------
0
----------------------------------------------------------------------------------
Total number of processes that have successfully acquired a workspace memory grant

Memory Grants Outstanding
-------------------------
0

My User asking how much sql transaction takes out off 55 GB , and each transaction how much takes, how to find sql healthy and sql needs how much memory. 

Thanks

Mohamed Udhuman


Limiting index rebuild time

$
0
0
Is there a way to limit the time a rebuild index command will run so it will die at a specific time or after a given interval so as not to interfere with a scheduled job?

Joe Torre DBA III County of Riverside, CA

Maintenance plan for SQL Server 2012 Database in AlwaysOn Availability Group

$
0
0

Hi all,

I need assistance creating a maintenance plan that will backup a databases logs in order to prevent them from filling up the drive they are located on. I have looked at some blogs but they do not specifically show how this is done.

My database is in an AlwaysOn Availability Group.

Thank you very much for your help!

Jake

Viewing all 12963 articles
Browse latest View live


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