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

MS SQL Servers 2014,2012 or 2008 Not any one getting installed on HP Proliant DL 380 G5

$
0
0

MS SQL Servers 2014,2012 or 2008 Not any one getting installed on  HP Proliant DL 380 G5 with Windows 2012 R2

Step1: We successfully Installed Windows 2012 R2 on HP Proliant DL 380 G5 with RAID 5 4 disk same make/model/speed

Step2:Tried Installing SQL Server 2014 Enterprise RTM on the same, Getting error:The Following Error has occured:

Wait on the Database Engine Recovery handle failed,Check SQL Server error Log for potential or sometimes it will be Could not find the Database engine startup handle

SQL Database Engine will not get started even its installed

Step3: Tried Changing the account names with all combinations like (NT AUthority\System,Network etc etc but the service will not start)

During Installation it always get stuck at SQlEngineDBStartConfigAction_install_configrc_CPU64

We tried 2008,2012,2014 SQL Server but none were successfull

We even formatted the Server and did a fresh install but still the same.
Rebuilt RAID and Server with Windows 2012 R2 still same error for SQL.

NO Antivirus Softwares installed

All pre-requisites checks were successfull

Please suggest.

Note: The same SQL 2014 got installed on another HP Proliant DL 380 G5 with Windows 2012 R2

Update1:: we installed windows server 2008 r2 std sp1 on the same box and sql 2014 rtm got installed:

update2:: Did an upgrade of windows server 2008 r2 std sp1 to Windows 2012 R2 std and the service stopped working!!! Did a repair of SQL Server but did not start same error "Wait on the Database Engine Recovery handle failed"

So something to do with Windows 2012 R2 std and SQL?

Thanks and Regards
Bob




UCP enrollment ends fails in the last step

$
0
0

Hi all of you,

Running a couple of Sql12k instances in my standalone machine (no domain, home installation) and when I try to enrollo the second instance I get the following message:

The operation failed because credential '@credential_name' identity is not a valid Windows account
Proxy (7) is not allowed for subsystem "CMDEXEC" and user "sa". Grant permission by calling sp_grant_proxy_to_subsystem or sp_grant_login_to_proxy.
DROP CREDENTIAL [UcpUtilityAgentProxyCredential_7A189120-ABCD-47D5-946B-C0E3B8A15C83]
CREATE CREDENTIAL [UcpUtilityAgentProxyCredential_7A189120-ABCD-47D5-946B-C0E3B8A15C83] WITH IDENTITY=N'sa' (.Net SqlClient Data Provider)

I've tried this unsucessfully: exec sp_grant_login_to_proxy 'sa','cmdexec'

Am I missing something?

Thanks for any input/hint!!

Buffer Hit Ratio over 100%

$
0
0

Hello everybody!

I'm collecting performance data via DMV to check the buffer hit ratio on several servers. Sometimes I get values high above 100% hit Ratio.

Example (50050%):

SQLServer:Buffer Manager:Buffer cache hit ratio 2002
SQLServer:Buffer Manager:Buffer cache hit ratio base 4

How is that possible?

Cheers!

Inherit sql instance!

$
0
0

Hi guys;

I am about to inherit a sql instance...

It had a lot of issues in the past; and the support will be in my hands (instance has been perfect for the last 3 weeks or so)... What do you think are some good preventive actions? I was trying to catch some metrics in order to have a baseline for the instance... but I want to do a complete exhaustive check of the instance; 1st to have the entire instance documented and 2nd to avoid issues in the future... Also if possible catch some flaws, and add some sort of a 'disclaimer' to our support.

any ideas for a complete investigation before taking the support? 

SQL server and SQL server Agent running with NT Service\MSSQLSERVER and NT Service\SQLSERVERAGENT

$
0
0

Hi,

On one of our servers we need to enable Database instant  file initialization.

But while adding account to the rights under volume task option we are unable to do so because we cannot find this account NT Service\MSSQLSERVER. It seems when SQL server was initially installed, they had this account selected.

Moreover, our DTS package running via SQL agent job also fails because SQLserver agent account with this NT service cannot access the path where dtsx is placed.

What should i do in such case? Should we get a admin service account created and assign the same to SQL?

Cant i enable File initialization and run dtsx package with current accounts -- NT Service\MSSQLSERVER and NT Service\SQLSERVERAGENT?

Please advise.

SQL Agent CmdExec PING

$
0
0

Is there a way to create a SQL Agent CmdExec step to ping a server and determine if it returns TTL results?

Thanks in advance,

Why DBCC Page output a table?

$
0
0
Hi,

 

I am using SQL Server 2005. I am trying to call DBCC PAGE command to dump a page, as follows:

 

DBCC TRACEON(3604);

DBCC PAGE (CR_YPLS8_NEW_QB, 1, 6527, 3);

GO

 

 what I expect is the detailed info about the page, like below:

 

PAGE: (1:1)

BUFFER:

BUF @0x02BB582C

bpage = 0x03772000                          bhash = 0x00000000                            bpageno = (1:1)

bdbid = 1                                             breferences = 1                                    bUse1 = 42182

bstat = 0xc0000b                                blog = 0x21598979                                bnext = 0x00000000

But actually what I get is a table, like below:

Why?

 

Thanks

Do system base tables always use clustered index?

$
0
0

Hi,

Just wonder if system base tables always use clustered index? I am using SQL Server 2005 and find sys.sysidxstats base table is using heap, not clustered index. Why?

Thanks


Does Linked server routing with application intent need restart?

$
0
0

Hi,

I have a create linked server per the Microsoft guidelines, Also have set the linked server routing list. On creating like server with application intent it works fine but when i fail-over the linked server destination server the application intent does't seem to be change to new replica where as when I restart the linked server host it changes to new secondary replica, 

So does a re-start is required whenever the destination fail-over?

please note am using Sql native client 2012 and the environment is 2014, when i try to connect it uses sql 2012 driver.

Thanks


Best Regards Moug


The MSDTC transaction manager was unable to pull the transaction from the source transaction manager due to communication problems. (Exception from HRESULT: 0x8004D02B)

$
0
0
/****************************** STARTS ******************************/
Timestamp: XXXXXXX
ActivityId: 00000000-0000-0000-0000-000000000000
Message: HandlingInstanceID: a7158d48-655f-48c7-a33c-079f9a3d96d6
An exception of type 'System.Transactions.TransactionManagerCommunicationException' occurred and was caught.
------------------------------------------------------------------------------------------------------------
11/03/2015 13:54:42
Type : System.Transactions.TransactionManagerCommunicationException, System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : Communication with the underlying transaction manager has failed.
Source : System.Transactions
Help link : 
Data : System.Collections.ListDictionaryInternal
TargetSite : System.Transactions.Oletx.OletxTransaction GetOletxTransactionFromTransmitterPropigationToken(Byte[])
HResult : -2146233087
Stack Trace :    at System.Transactions.TransactionInterop.GetOletxTransactionFromTransmitterPropigationToken(Byte[] propagationToken)
   at System.Transactions.TransactionStatePSPEOperation.PSPEPromote(InternalTransaction tx)
   at System.Transactions.TransactionStateDelegatedBase.EnterState(InternalTransaction tx)
   at System.Transactions.EnlistableStates.Promote(InternalTransaction tx)
   at System.Transactions.Transaction.Promote()
   at System.Transactions.TransactionInterop.ConvertToOletxTransaction(Transaction transaction)
   at System.Transactions.TransactionInterop.GetExportCookie(Transaction transaction, Byte[] whereabouts)
   at System.Data.SqlClient.SqlInternalConnection.GetTransactionCookie(Transaction transaction, Byte[] whereAbouts)
   at System.Data.SqlClient.SqlInternalConnection.EnlistNonNull(Transaction tx)
   at System.Data.SqlClient.SqlInternalConnection.Enlist(Transaction tx)
   at System.Data.SqlClient.SqlInternalConnectionTds.Activate(Transaction transaction)
   at System.Data.ProviderBase.DbConnectionInternal.ActivateConnection(Transaction transaction)
   at System.Data.ProviderBase.DbConnectionPool.PrepareConnection(DbConnection owningObject, DbConnectionInternal obj, Transaction transaction)
   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
   at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
   at System.Data.SqlClient.SqlConnection.Open()
   at Framework.EnterpriseLibrary.DataAccess.Providers.SqlDBCommand.CreateNewCommandAndConnectionForParameterCaching()
   at Framework.EnterpriseLibrary.DataAccess.Providers.SqlDBCommand.GetSpParameterSet(Boolean includeReturnValueParameter)

Additional Info:

MachineName : ABCXXX
TimeStamp : XXXXXXX
FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
AppDomainName : CB.IBE.Platform.Service.WindowsService.exe
ThreadIdentity : 
WindowsIdentity : NT AUTHORITY\SYSTEM
Inner Exception
---------------
Type : System.Runtime.InteropServices.COMException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : The MSDTC transaction manager was unable to pull the transaction from the source transaction manager due to communication problems. Possible causes are: a firewall is present and it doesn't have an exception for the MSDTC process, the two machines cannot find each other by their NetBIOS names, or the support for network transactions is not enabled for one of the two transaction managers. (Exception from HRESULT: 0x8004D02B)
Source : System.Transactions
Help link : 
ErrorCode : -2147168213
Data : System.Collections.ListDictionaryInternal
TargetSite : Void ReceiveTransaction(UInt32, Byte[], IntPtr, System.Guid ByRef, System.Transactions.Oletx.OletxTransactionIsolationLevel ByRef, System.Transactions.Oletx.ITransactionShim ByRef)
HResult : -2147168213
Stack Trace :    at System.Transactions.Oletx.IDtcProxyShimFactory.ReceiveTransaction(UInt32 propgationTokenSize, Byte[] propgationToken, IntPtr managedIdentifier, Guid& transactionIdentifier, OletxTransactionIsolationLevel& isolationLevel, ITransactionShim& transactionShim)
  at System.Transactions.TransactionInterop.GetOletxTransactionFromTransmitterPropigationToken(Byte[] propagationToken)


Category: Service Invoker Exception
Priority: 5
EventId: 100
Severity: Error
Title:Enterprise Library Exception Handling
Machine: ABCXXX
App Domain: CB.IBE.Platform.Service.WindowsService.exe
ProcessId: 15788
Process Name: D:\IBE UAT\IBE\IBE Service\Debug\CB.IBE.Platform.Service.WindowsService.exe
Thread Name: 
Win32 ThreadId:16224
Extended Properties: 
/******************************* ENDS *******************************/

Can't download AdventureWorks2012

$
0
0
I downloaded Microsoft SQL Server Express2012 and the management studio successfully but when I try to download adventureworks2012 an error message reads: "This File does not have a program associated with it for performing this action. Please install a program or, if one is aready installed, Create an association in the Default Programs control panel... What do I do? I'm a noobie...

Service andMaster Keys Relation and Password

$
0
0

 We need to Migrate a database from SQL Server 2008 to SQL Server 2012 , The database is using Encryption Keys (Database Master Key, Symmetric Keys and Asymmetric Keys) we don't have the password of the master key

Is it possible to backup the master key without opening it as we dont have DECRYPTION BY PASSWORD and can we restore it after the migration without giving DECRYPTION BY PASSWORD


Mohd Sufian www.sqlship.wordpress.com Please mark the post as Answered if it helped.

SQL Server 2012 - RESOURCE MONITOR / PREEMPTIVE_XE_CALLBACKEXECUTE high CPU usage

$
0
0

Hello, 

  We are currently in the process of migrating an existing clustered SQL Server 2008 R2 instance over to a clustered SQL Server 2012 instance as we phase out the Windows Server 2008 with SQL Server 2008 R2.

  The setup is identical for the SQL Server 2012 instance as it is on the SQL Server 2008 R2 instance.  (meaning the RAM and CPU are both the same or better on the SQL Server 2012 instance)

  The process in which we are migrating is that we're moving a few databases over to the new SQL Server 2012 instance each night.  What we've noticed is that the CPU usage is much higher on the SQL Server 2012 instance than on the previous SQL Server 2008 R2 instance even though the there is only 1/2 of the databases migrated to the 2012 instance. 

  Running the following script:

;with cte ([totalCPU]) as (select sum(cpu) from   master.dbo.sysprocesses)
select
	  tblSysprocess.spid
	, tblSysprocess.cpu
	, CONVERT(BIGINT,(tblSysprocess.cpu * CONVERT(BIGINT,100))) / CONVERT(BIGINT, cte.totalCPU) as [percentileCPU]
	, tblSysprocess.physical_io
	, tblSysprocess.memusage
	, tblSysprocess.cmd
	, tblSysProcess.lastwaittype
from   master.dbo.sysprocesses tblSysprocess
         cross apply cte
order by tblSysprocess.cpu desc
Produces the following results:

In a clustered environment, is this normal and if not, does anyone know what this means or how to reduce the CPU usage?

Thanks.

Query help

$
0
0
Hi Experts,

Looking for query which gives historical information of each job in below format. Query should include latest previous completion times as well. Output should include jobs which completed their execution as well as jobs which are currently running.

Jobname,starttime,stoptime,CurrentElapsedTime,avgtimetaken, prevruncompletiontime1,prevruncompletiontime1

Note: output Column format
 
CurrentElapsedTime         - should be dd:hh:mm:ss format
avgtimetaken                  - should be dd:hh:mm:ss format
prevruncompletiontime1  - should be dd:hh:mm:ss format
prevruncompletiontime2  - should be dd:hh:mm:ss format

Thanks in advance.

Trace file rollover

$
0
0

Hello. If we want to change something about a custom server side trace in SQL 2012, do we wipe the current trace with sp_trace_setstatus <trace_id>, 2 and then re-create it with the new definition? It looks like there's no way to modify it in place.

Ken


SQL SERVER 2014 IDENTIY QUERY

$
0
0

HI

How to Reset identity columns in SQl Server 2015 through job at Night time..this table is being used to take top value based on this identity column  using TOP 1 command..

Kindly advise


baskarlakshmi

locks , deadlock, blocks on Table , pages , blocks for DBA level best advices

$
0
0

HI Expert, Any one know as a DBA what  type of advises /recommendations  we should give on

reduce DB   locks(dead locks and block) management  for Table  , pages , blocks

regards

Ashwan

Change Tracking - CHANGE TABLES

$
0
0

I am using change tracking for tracking changes to an OLTP database for daily data warehouse load.

I am tracking changes on 4 tables:

Site, Well, GasEngine, GasField, using


I am using an SSIS package for our DW load and on completion, Istore the results of the queries above into my own ChangeTracking table. I then use this as the last synced version for each table which I then use for the next DW load.

I have the following change tracking settings:

CHANGE_TRACKING = ON
(
CHANGE_RETENTION = 10 DAYS,
        AUTO_CLEANUP = ON
)

Now, the Site and Well tables may not have any changes for a few weeks or months but the GasEngine table will have changes every half hour and the GasField table will have changes every week.

I have recently received a NULL value for Site changes query (below) and the SSIS package fails.

Is this due to there being no changes within the 10 days retention period?? Is my understanding of this feature correct??

If yes, what can I do in order to maintain the changes?? 

Could I maybe update the scripts above to check if the response from the query is NULL and if yes, set the current synced version to the last synced version from my ChangeTracking table?

Also, when the 10 days retention period is up, will the change tracking change version counter continue on from the last change version?

install sql - only engine.

$
0
0

Hi, quick question guys...

I inherited this PC; where I have a sql installed... the thing is I don't have access to the engine; i can open ssms of course... I dont have the installers!, how can I reinstall the engine without the installers?

INSERT WHERE NOT EXISTS

$
0
0

Hi all,

I've have a need with SQL Server 2005 (so I've no MERGE statement), I have to merge 2 tables, the target table has 10 fields, the first 4 are the clustered index and primary key, the source table has the same fields and index.

Since I can't use the MERGE statement (I'm in SQL 2005) I have to make a double step operation, and INSERT and an UPDATE, I can't figure how to design the WHERE condition for the insert statement.

Any help?

Viewing all 15930 articles
Browse latest View live


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