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

Error: Resource for instance 'MSSQLSERVER' should not exist.

$
0
0

Hi All

I have 4 nodes into one WSFC. 2 nodes in each datacenter. Node 1&2 are in DC1, Node3&4 are in DC2. I have to install 2 SQL Server FCIs, one in DC1 and another in DC2. and then we have to configure AOAG between these two DC instances. A set of storages are shared to their respective nodes Node1&2 and similar set of storage is shared btw node3&4 in DC2.

So i installed default instance in DC1 between node1&2 and this set of cluster is working fine. Now i have to do the same btw node3&4. But here i am getting this error: "Resource for instance 'MSSQLSERVER' should not exist." and db engine is showing as failed during installation.

Although i can start sql server service manually from services.msc also i can connect to this instance but failed to bring it on cluster resource group. I kept cluster resource group name different then the DC1 cluster resource group name. The name of cluster resource group names are:

DC1-Node1&2- SQL Server (MSSQLSERVER)

DC2-Node3&4-SQL Server DR (MSSQLSERVERDR)

Versions: SQL Server 2014 SP2 running on Wind 2012 R2 OS.

Please help me to fix this issue.


Thanks & Regards Manvendra Deo Singh My Blog:- http://manvendradeosingh.blogspot.com/



Database query timedout due to heavy due to heavy database usage

$
0
0

Recently we migrated from SQL Server 2012 to 2014 ENT (SP3), after that we are getting this error from one of the application server:

Database query timedout due to heavy due to heavy database usage

max server memory setting

$
0
0

Hi All,

Need some advise from experts.  

In our environment, we have monitoring tool called SolarWinds and performs health checks on SQL Server Instances.
2 days back we have a got an Alert from solarwinds that "The Physical Memory on SRV1 is currently running at 95 %." and an incidents gets created to our team.

Observations :

SQL 2012 Enterprise

I do see 95% memory usage on the server.
Total physical memory is 32 GB
max server memory was set to 28GB
Also, we are seeing approximate of 2GB of Available Physical memory at all times.
Users never complained about any performance issue.
And more importantly, it's a vendor specific database(worksoft) running on the instance and it is dedicated for that.

Coming back, to resolve the incident we wanted to reduce the max server memory to 24GB instead of 28GB as Solarwinds threshold is set for anything >=80% memory usage,
create an INCIDENT.

Is that we are doing is correct? or any other alternate thoughts?

Thanks,
Sam


General performance question

$
0
0
Hi All,

In our env, we have multiple sql environments and very often we get DB refresh requests to restore db from PROD to sub-prod env's.
for this, we have created a powershell script which does the refresh. Below are the refresh steps

- take prod backup (backup size ~500GB )
- copy prod backup to sub-prod server using robocopy
- restore
- fix the orphan users
- change pwd as per sub-prod env
- send out email that refresh is complete


Now, we want to schedule this powershell script. We want to do this using SQL Agent Job.
My question is, whether to run this sql agent job on PROD Server or sub-prod server ( QA,UAT, DEV etc... )
Will be there any difference running from PROD ? just from performance perspective will it make any difference (taking backup, file copy from prod to QA ..)?

Thanks,
Sam

ubuntu install sqlserver2019, error log display “Failed to verify the Authenticode signature of 'C:\binn\secforwarder.dll'.” Is it a bug?

$
0
0

 install sqlserver2019 in ubuntu18.04. follow the step as: 

https://docs.microsoft.com/en-us/sql/linux/quickstart-install-connect-ubuntu?view=sql-server-2017

The system Can be accessed normally。

SSMS tool is run OK。

create database/table/backup database  all OK , and so on。

system info :

select @@version

Microsoft SQL Server 2019 (CTP3.0) - 15.0.1600.8 (X64)   May 17 2019 00:56:19   Copyright (C) 2019 Microsoft Corporation  Enterprise Edition (64-bit) on Linux (Ubuntu 18.04.2 LTS) <X64>

But,This error was found in the errorlog file 。 

Where can the Linux system find filefolders likek “C:\binn\ ”。 is it a bug or ?

Date2019-06-06 10:50:33
LogSQL Server (Archive #1 - 2019/6/6 11:00:00)
SourceServer
Message
Failed to verify the Authenticode signature of 'C:\binn\secforwarder.dll'. Signature verification of SQL Server DLLs will be skipped. Genuine copies of SQL Server are signed. Failure to verify the Authenticode signature might indicate that this is not an authentic release of SQL Server. Install a genuine copy of SQL Server or contact customer support.


TempDB Version Store Cleanup

$
0
0

Hi All,

I'm reading about tempdb version store cleanup and wanted to confirm something. We are using SNAPSHOT_ISOLATION and READ_COMMITTED_SNAPSHOT set to ON.

Our tempdb has grown to 60GB and the version store is 56GB.

We have old, open transactions (based on sys.dm_tran_active_snapshot_database_transactions) for almost 3 weeks!!

I killed them (6 of them), and now our version store is back to 8GB.

Questions:

1) Is version store cleanup based on the oldest open transaction? Meaning, if I had those transactions open for 3 weeks, then no version cleanup can occur beyond 3 weeks of row versioning.

OR is Version store cleanup based on the objects within the oldest open transaction. Meaning, I killed 5 of the transactions and the version store did not shrink. I killed the 6th and it shrunk. Was the cleanup based on the objects of that 6th transaction (i.e. I had 48GB worth of row versioning for the objects involved in the 6th transaction)?

I tend to believe that cleanup is based on #1 since i'm trying to figure out where to investigate the root cause first - should I look at the fact that I had 6 tx (coming from 6 different servers) with old open transactions, OR do I focus on the 6th transaction only?

Thanks in advance!

version store space not being released

$
0
0

This morning I tried to shrink a DB file after dropping about 70g of data from it. I ran DBCC SHRINKFILE(1,x) where x was the size I wanted to shrink to. X was slightly larger than the used space in the file.  It ran for approx 3 hours and never completed. I cancelled it because it there is a production DB on this server and my tempdb space was filling up due to version store (this non-prod DB has read committed snapshot isolation enabled). The session I ran shrinkfile on (and subsequently cancelled) disconnected long ago however 4 hours later none of the version store has been released. Is there something I can do to force it to be released short of restarting the server?



Chuck

[Help]: Backup and Restore Database big over 200Gb

$
0
0

Hi Admin!

Please help me: Backup Database big over 200Gb fast and security.

Thanks Admin


MSBI SQL SERVER SSIS SSRS SSAS POWER BI

$
0
0
MSBI SSIS SSRS SSAS Power BI

Table locks

$
0
0

In a stored procedure, dynamic queries are used. The procedure was executed from .NET application but could not get result due to timeout issue. But when same execution query was run from SSMS, result was instantly obtained. In the procedure nolock hint was used for all queries except for dynamic queries. When the nolock hint was used also in the dynamic queries, the execution from the application also gave result instantly.

The question is, were the tables really locked? If so why the execution from SSMS gave result? If not why the execution from application gave result after using nolock? The nolock hint was missing in dynamic queries and was later added.


SSIS or from SQL Stooted procedure how to Automation of Email intimation to Respective team - If the any of the Input file missed for daily job run-

Corrupt SQL database

$
0
0

I am having an issue with a corrupt SQL database. This database runs functions for one of our products and this corruption is causing some tasks to not run. I have run the following commands against the database but each has failed with errors.

dbcc checkdb (varonis,repair_rebuild) and dbcc checkdb (varonis,REPAIR_ALLOW_DATA_LOSS)

Below is a small portion of the error log from the repair_build command; the error log is to large to paste all of it into the window.

DBCC results for 'varonis'.

Msg 8905, Level 16, State 1, Line 1

Extent (1:300552) in database ID 9 is marked allocated in the GAM, but no SGAM or IAM has allocated it.

Repairing this error requires other errors to be corrected first.

Msg 2576, Level 16, State 1, Line 1

The Index Allocation Map (IAM) page (1:1902450) is pointed to by the previous pointer of IAM page (1:2125788) in object ID 0, index ID -1, partition ID 0, alloc unit ID 72057961241706496 (type Unknown), but it was not detected in the scan.

The repair level on the DBCC statement caused this repair to be bypassed.

Msg 8906, Level 16, State 1, Line 1

Page (1:2125170) in database ID 9 is allocated in the SGAM (1:2044929) and PFS (1:2119056), but was not allocated in any IAM. PFS flags 'MIXED_EXT ALLOCATED 0_PCT_FULL'.

Repairing this error requires other errors to be corrected first.

Msg 8906, Level 16, State 1, Line 1

Page (1:2125171) in database ID 9 is allocated in the SGAM (1:2044929) and PFS (1:2119056), but was not allocated in any IAM. PFS flags 'MIXED_EXT ALLOCATED 0_PCT_FULL'.

Repairing this error requires other errors to be corrected first.

Msg 8906, Level 16, State 1, Line 1

Page (1:2125172) in database ID 9 is allocated in the SGAM (1:2044929) and PFS (1:2119056), but was not allocated in any IAM. PFS flags 'MIXED_EXT ALLOCATED 0_PCT_FULL'.

Repairing this error requires other errors to be corrected first.

Msg 8906, Level 16, State 1, Line 1

Page (1:2125173) in database ID 9 is allocated in the SGAM (1:2044929) and PFS (1:2119056), but was not allocated in any IAM. PFS flags 'MIXED_EXT ALLOCATED 0_PCT_FULL'.

Repairing this error requires other errors to be corrected first.

Msg 8906, Level 16, State 1, Line 1

Page (1:2125331) in database ID 9 is allocated in the SGAM (1:2044929) and PFS (1:2119056), but was not allocated in any IAM. PFS flags 'MIXED_EXT ALLOCATED 0_PCT_FULL'.

Repairing this error requires other errors to be corrected first.

CHECKDB found 7 allocation errors and 0 consistency errors not associated with any single object.

Table error: table 'sys.sysschobjs' (ID 34). Index row in index 'nc2' (ID 3) does not match any data row. Possible extra or invalid keys for:

Msg 8956, Level 16, State 1, Line 1

Index row (1:76905:21) with values (name = 'DF__TMP_SDT_4__inode__3A9B7C2E' and nsid = 1 and nsclass = 0 and id = 983268398) pointing to the data row identified by (id = 983268398).

Msg 8951, Level 16, State 1, Line 1

Table error: table 'sys.sysschobjs' (ID 34). Data row does not have a matching index row in the index 'nc2' (ID 3). Possible missing or invalid keys for the index row matching:

Msg 8955, Level 16, State 1, Line 1

Data row (1:198310:3) identified by (id = 313466131) with index values 'name = 'DF__TMP_SDT_4__HResu__12AF1D13' and nsid = 1 and nsclass = 0 and id = 313466131'.

Msg 8952, Level 16, State 1, Line 1

Table error: table 'sys.sysschobjs' (ID 34). Index row in index 'nc2' (ID 3) does not match any data row. Possible extra or invalid keys for:

Msg 8956, Level 16, State 1, Line 1

Index row (1:628785:26) with values (name = 'DF__TMP_SDT_4__times__49DDBFBE' and nsid = 1 and nsclass = 0 and id = 1239269310) pointing to the data row identified by (id = 1239269310).

Msg 8952, Level 16, State 1, Line 1

Table error: table 'sys.sysschobjs' (ID 34). Index row in index 'nc2' (ID 3) does not match any data row. Possible extra or invalid keys for:

Msg 8956, Level 16, State 1, Line 1

Index row (1:628786:17) with values (name = 'DF__TMP_SDT_4__CS_Na__47F5774C' and nsid = 1 and nsclass = 0 and id = 1207269196) pointing to the data row identified by (id = 1207269196).

Msg 8952, Level 16, State 1, Line 1

Table error: table 'sys.sysschobjs' (ID 34). Index row in index 'nc2' (ID 3) does not match any data row. Possible extra or invalid keys for:

Msg 8956, Level 16, State 1, Line 1

Index row (1:628786:27) with values (name = 'DF__TMP_SDT_4__FileN__3B8FA067' and nsid = 1 and nsclass = 0 and id = 999268455) pointing to the data row identified by (id = 999268455).

Msg 8952, Level 16, State 1, Line 1

Table error: table 'sys.sysschobjs' (ID 34). Index row in index 'nc2' (ID 3) does not match any data row. Possible extra or invalid keys for:

Msg 8956, Level 16, State 1, Line 1

Index row (1:628786:28) with values (name = 'DF__TMP_SDT_4__FileN__3C83C4A0' and nsid = 1 and nsclass = 0 and id = 1015268512) pointing to the data row identified by (id = 1015268512).

Msg 8951, Level 16, State 1, Line 1

Table error: table 'sys.sysschobjs' (ID 34). Data row does not have a matching index row in the index 'nc2' (ID 3). Possible missing or invalid keys for the index row matching:

Msg 8955, Level 16, State 1, Line 1

Data row (1:1264219:33) identified by (id = 716943566) with index values 'name = 'DF__TMP_SDT_4__inode__2ABBB0CE' and nsid = 1 and nsclass = 0 and id = 716943566'.

Msg 8951, Level 16, State 1, Line 1

Table error: table 'sys.sysschobjs' (ID 34). Data row does not have a matching index row in the index 'nc2' (ID 3). Possible missing or invalid keys for the index row matching:

Msg 8955, Level 16, State 1, Line 1

Data row (1:1378391:16) identified by (id = 105465390) with index values 'name = 'DF__TMP_SDT_4__IsCas__0649462E' and nsid = 1 and nsclass = 0 and id = 105465390'.

Msg 8951, Level 16, State 1, Line 1

Table error: table 'sys.sysschobjs' (ID 34). Data row does not have a matching index row in the index 'nc2' (ID 3). Possible missing or invalid keys for the index row matching:

Msg 8955, Level 16, State 1, Line 1

Data row (1:1404013:26) identified by (id = 2108948525) with index values 'name = 'DF__TMP_SDT_4__Creat__7DB4002D' and nsid = 1 and nsclass = 0 and id = 2108948525'.

Msg 8951, Level 16, State 1, Line 1

Table error: table 'sys.sysschobjs' (ID 34). Data row does not have a matching index row in the index 'nc2' (ID 3). Possible missing or invalid keys for the index row matching:

Msg 8955, Level 16, State 1, Line 1

Data row (1:1428566:32) identified by (id = 748943680) with index values 'name = 'DF__TMP_SDT_4__FileN__2CA3F940' and nsid = 1 and nsclass = 0 and id = 748943680'.

Msg 8951, Level 16, State 1, Line 1

Table error: table 'sys.sysschobjs' (ID 34). Data row does not have a matching index row in the index 'nc2' (ID 3). Possible missing or invalid keys for the index row matching:

Msg 8955, Level 16, State 1, Line 1

Data row (1:1623836:12) identified by (id = 233465846) with index values 'name = 'DF__TMP_SDT_4__Share__0DEA67F6' and nsid = 1 and nsclass = 0 and id = 233465846'.

Msg 8951, Level 16, State 1, Line 1

Table error: table 'sys.sysschobjs' (ID 34). Data row does not have a matching index row in the index 'nc2' (ID 3). Possible missing or invalid keys for the index row matching:

Msg 8955, Level 16, State 1, Line 1

Data row (1:1684344:19) identified by (id = 41465162) with index values 'name = 'DF__TMP_SDT_4__FWTim__0278B54A' and nsid = 1 and nsclass = 0 and id = 41465162'.

Msg 8951, Level 16, State 1, Line 1

Table error: table 'sys.sysschobjs' (ID 34). Data row does not have a matching index row in the index 'nc2' (ID 3). Possible missing or invalid keys for the index row matching:

Msg 8955, Level 16, State 1, Line 1

Data row (1:1799058:44) identified by (id = 1500946359) with index values 'name = 'DF__TMP_SDT_4__times__59769FB7' and nsid = 1 and nsclass = 0 and id = 1500946359'.

Msg 8951, Level 16, State 1, Line 1

Table error: table 'sys.sysschobjs' (ID 34). Data row does not have a matching index row in the index 'nc2' (ID 3). Possible missing or invalid keys for the index row matching:

Msg 8955, Level 16, State 1, Line 1

Data row (1:1927776:4) identified by (id = 393466416) with index values 'name = 'DF__TMP_SDT_4__SymDi__1773D230' and nsid = 1 and nsclass = 0 and id = 393466416'.

Msg 8951, Level 16, State 1, Line 1

Table error: table 'sys.sysschobjs' (ID 34). Data row does not have a matching index row in the index 'nc2' (ID 3). Possible missing or invalid keys for the index row matching:

Msg 8955, Level 16, State 1, Line 1

Data row (1:1927779:7) identified by (id = 521466872) with index values 'name = 'DF__TMP_SDT_4__Creat__1F14F3F8' and nsid = 1 and nsclass = 0 and id = 521466872'.

Msg 8951, Level 16, State 1, Line 1

Table error: table 'sys.sysschobjs' (ID 34). Data row does not have a matching index row in the index 'nc2' (ID 3). Possible missing or invalid keys for the index row matching:

CHECKDB found 7 allocation errors and 327 consistency errors in database 'Varonis'.

repair_allow_data_loss is the minimum repair level for the errors found by DBCC CHECKDB (Varonis, repair_rebuild).

Msg 596, Level 21, State 1, Line 0

Cannot continue the execution because the session is in the kill state.

Msg 0, Level 20, State 0, Line 0

A severe error occurred on the current command. The results, if any, should be discarded

Concurrent connection -IF EXISTS(...) fails

$
0
0

Hi,

I am having a webservice , which uses a stored procedure to insert data to db. I am using the IF EXISTS () 
condition to check whether duplicate data is being inserted to the table. But when the server traffic at peak IF exists is failing resulting in the duplicate insertion of the data. How i can make a lock on the table which will not affect the performance.Please guide.


SEVERE: CVU do not support target environment..when installing Oracle client

$
0
0

Hi there,

this is the full log when I tried to install. I need to set up a linked server between my SQL 2014 and Oracle 11

is it familiar to someone?

Using paramFile: C:\AdminSQL\Oracle\install\oraparam.ini


Checking monitor: must be configured to display at least 256 colors.    Actual 4294967296    Passed

The commandline for unzip:
C:\AdminSQL\Oracle\install\unzip -qqqo ..\stage\Components\oracle.jdk\1.5.0.17.04\1\DataFiles/"*.jar" -d "C:\Users\ENRIC~1.VIV\AppData\Local\Temp\OraInstall2016-07-28_03-14-16PM" INFO: Loading data from: jar:file:/C:/Users/enric.vives/AppData/Local/Temp/OraInstall2016-07-28_03-14-16PM/ext/jlib/installcommons_1.0.0b.jar!/oracle/install/driver/oui/resource/ConfigCommandMappings.xml
INFO: Loading beanstore from jar:file:/C:/Users/enric.vives/AppData/Local/Temp/OraInstall2016-07-28_03-14-16PM/ext/jlib/installcommons_1.0.0b.jar!/oracle/install/driver/oui/resource/ConfigCommandMappings.xml
INFO: Restoring class oracle.install.driver.oui.ConfigCmdMappings from jar:file:/C:/Users/enric.vives/AppData/Local/Temp/OraInstall2016-07-28_03-14-16PM/ext/jlib/installcommons_1.0.0b.jar!/oracle/install/driver/oui/resource/ConfigCommandMappings.xml
INFO: Verifying target environment...
INFO: Checking whether the IP address of the localhost could be determined...
SEVERE: CVU do not support target environment..
Refer associated stacktrace #oracle.install.driver.oui.OUISetupDriver:13
INFO: Completed verification of target environment.
WARNING: Verification of target environment returned with errors.
WARNING: [WARNING] [INS-13001] Environment does not meet minimum requirements.
   CAUSE: Minimum requirements were not met for this environment
   ACTION: Either check the logs for more information or check the supported configurations for this product..
Refer associated stacktrace #oracle.install.commons.util.exception.DefaultErrorAdvisor:16

RBS maintainance job Orphan cleanup not working

$
0
0

The problem are that Orphan cleanup won't start up. He starting up. chekcking pools and always stuck on 5 pool. And can delete other pool data.

The command I'm runing:

> C: cd "C:\Program Files\Microsoft SQL Remote Blob Storage> 10.50\Maintainer" "Microsoft.Data.SqlRemoteBlobs.Maintainer.exe" -ConnectionStringName RBSMaintainerConnection -Operation GarbageCollection ConsistencyCheck ConsistencyCheckForStores> -GarbageCollectionPhases rdo -ConsistencyCheckMode r >> SIS_RBS_NOTIME_Maintainer%date%.log

The Error I'm getting:

This task has ended. Processed 334 work units total. 0 Work units were incomplete. Needed to delete 1606751 blobs. Succeeded in deleting 1606751 blobs, 0 blobs were not found in the blob store.
Starting Orphan Cleanup.
    Starting Orphan Cleanup for pool <PoolId 25, BlobStoreId 1, StorePoolId 0x19000000>.
    Skipping the current unit of work because of an error. For more information, see the RBS Maintainer log.
    Starting Orphan Cleanup for pool <PoolId 270, BlobStoreId 1, StorePoolId 0x0e010000>.
    Skipping the current unit of work because of an error. For more information, see the RBS Maintainer log.
    Starting Orphan Cleanup for pool <PoolId 94, BlobStoreId 1, StorePoolId 0x5e000000>.
    Skipping the current unit of work because of an error. For more information, see the RBS Maintainer log.
    Starting Orphan Cleanup for pool <PoolId 122, BlobStoreId 1, StorePoolId 0x7a000000>.
    Skipping the current unit of work because of an error. For more information, see the RBS Maintainer log.
    Starting Orphan Cleanup for pool <PoolId 154, BlobStoreId 1, StorePoolId 0x9a000000>.
    Skipping the current unit of work because of an error. For more information, see the RBS Maintainer log.
    No work is available at this time. 
    Other clients, processes or threads may be currently working on other tasks.
This task has ended. Processed 6 work units total. 5 Work units were incomplete. Needed to delete 0 blobs. Succeeded in deleting 0 blobs, 0 blobs were not found in the blob store. Enumerated 0 blobs, 0 blobs are being considered for orphan cleanup.
This task has ended.


The Event viewer shows:

Message ID:2, Level:ERR , Process:8244, Thread:1
Skipping the current unit of work because of an error. For more information, see the RBS Maintainer log.
Operation: WorkExecute
BlobStoreId: 0
Log Time: 2015.02.04 23:43:47

Message ID:3, Level:ERR , Process:8244, Thread:1
Skipping unit of work <PoolId 25, BlobStoreId 1, StorePoolId 0x19000000> because of an error. For more information, see the RBS Maintainer log.
Operation: WorkExecute
BlobStoreId: 0
Log Time: 2015.02.04 23:43:47
Exception: System.Data.SqlClient.SqlException: The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION.
Internal error in RBS. rbs_sp_gc_get_slice did not find any work unit.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
   at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   at Microsoft.Data.SqlRemoteBlobs.SqlOperations.ExecuteNonQuery(RemoteBlobCommand commandObject, SqlCommand command)
   at Microsoft.Data.SqlRemoteBlobs.Maintainer.BeginEnumerateCommand.ExecuteDatabaseOperation2()
   at Microsoft.Data.SqlRemoteBlobs.RemoteBlobCommand.ExecuteInternal()
   at Microsoft.Data.SqlRemoteBlobs.RemoteBlobCommand.Execute()
   at Microsoft.Data.SqlRemoteBlobs.Maintainer.OrphanCleanup.ProcessPoolOrSlice(Int32 nestingDepth, SqlRemoteBlobContext context, BlobDetails blobDetails, Request parentRequest)
   at Microsoft.Data.SqlRemoteBlobs.Maintainer.WorkExecutor.ExecutePool(Int32 nestingDepth, SqlRemoteBlobContext context)
   at Microsoft.Data.SqlRemoteBlobs.Maintainer.OrphanCleanup.ProcessWorkUnit(Int32 nestingDepth, SqlRemoteBlobContext context)
   at Microsoft.Data.SqlRemoteBlobs.Maintainer.WorkExecutor.Execute(Int32 nestingDepth)

Also in database for those pools the work_state = 20. To other pools work_state = 30.

Are its possible to repair or just skip that pools to clean up the database?




SQL Server 2019 CTP 3.0 repair and unistall.

$
0
0

Hi!

I have SQL Server 2017 installed and I tried install SQL Server 2019 side by side.

I made mistake and selected Default Instance for SQL Server 2019. Sql Server installation failed.

and now I am trying to uninstall SQL Server 2019 CTP 3.0

When I do that installation do not even see that SQL Server 2019 CTP 3.0 installed, because it is not installed. (some files are  missing)

So I have damaged version of SQL Server CTP 3.0. Which I have half-installed. 

When I try repair or reinstall SQL Server CTP 3.0 as new Named Instance I am getting this error.

--MSI (s) (48:74) [08:24:00:777]: SECREPAIR: Error determining package source type
--MSI (s) (48:74) [08:24:00:777]: SECUREREPAIR: SecureRepair Failed. Error code: 52435F60620
--MSI (s) (48:74) [08:24:09:892]: Product: Microsoft OLE DB Driver for SQL Server -- Error 1316. The specified account already exists.

When I run uninstall, it does not show that SQL Server is installed.

How to fix broken installation of SQL Server 2019 CTP 3.0


RUV



Sql server agent doesn't work

$
0
0

Hi!

I've ms sql server 2017 express edition for linux. 

I installed it on my ubuntu 18.04 server.

Everything is great, but sql server agent doesn't work.

The reason I could see in sqlagent.log:

2019-08-09 15:41:27 - ? [101] SQLServerAgent service successfully started
2019-08-09 15:41:27 - ? [350] Waiting for SQL Server to start...
2019-08-09 15:41:31 - ? [000] Event Global\sqlserverRecComplete opened
2019-08-09 15:41:31 - ? [500] Waiting for SQL Server to recover all databases...
2019-08-09 15:41:36 - ? [100] Microsoft SQLServerAgent version 14.0.3223.3 (X64 unicode retail build) : Process ID 24
2019-08-09 15:41:36 - ? [495] The SQL Server Agent startup service account is regataVM\regataVM$.
2019-08-09 15:41:36 - ? [151] Running SQL Server Agent cross-platform
2019-08-09 15:42:06 - ! [298] SQLServer Error: 10061, TCP Provider: No connection could be made because the target machine actively refused it. [SQLSTATE 08001] 
2019-08-09 15:42:06 - ! [165] ODBC Error: 0, Login timeout expired [SQLSTATE HYT00] 
2019-08-09 15:42:06 - ! [298] SQLServer Error: 10061, A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online. [SQLSTATE 08001] 
2019-08-09 15:42:06 - ! [150] SQL Server does not accept the connection (error: 0). Waiting for Sql Server to allow connections. Operation attempted was: Verify Connection On Start.
2019-08-09 15:42:06 - ! [000] Unable to connect to server '127.0.0.1,1433'; SQLServerAgent cannot start
2019-08-09 15:42:06 - ! [103] SQLServerAgent could not be started (reason: Unable to connect to server '127.0.0.1,1433'; SQLServerAgent cannot start)
2019-08-09 15:42:11 - ! [298] SQLServer Error: 10061, TCP Provider: No connection could be made because the target machine actively refused it. [SQLSTATE 08001] 
2019-08-09 15:42:11 - ! [165] ODBC Error: 0, Login timeout expired [SQLSTATE HYT00] 
2019-08-09 15:42:11 - ! [298] SQLServer Error: 10061, A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online. [SQLSTATE 08001] 
2019-08-09 15:42:11 - ! [382] Logon to server '127.0.0.1,1433' failed (DisableAgentXPs)
2019-08-09 15:42:11 - ? [102] SQLServerAgent service successfully stopped
2019-08-09 15:42:11 - ? [098] SQLServerAgent terminated (normally)

It looks like sql server agent tries to connect to localhost instead real server address.

As I said, Sql server works fine with remote access with specific ip adress which I specified in mssql-conf.

Perfmon CPU and memory counters for VMWare

$
0
0

Running SQL 2014 /Win 2012 on VMWare.

Is there any point in including the 2 objects : Processor (% Processor Time and % Privileged Time) and Memory (Available MBytes and Pages/sec)

Or this will show incorrect values?

For VMWare  CPU and memory I would use Jonathan’s

https://sqlperformance.com/2017/05/monitoring/troubleshooting-cpu-vmware

Do you have a link for the limits, and which of the counters/attributes below you recommend?

VM Processor
% Processor Time
Effective VM Speed in MHz
Host processor speed in MHz
Limit in MHz
Reservation in MHz
Shares

VM Memory
Memory Active in MB
Memory Ballooned in MB
Memory Limit in MB
Memory Mapped in MB
Memory Overhead in MB
Memory Reservation in MB
Memory Shared in MB
Memory Shared Saved in MB
Memory Shares
Memory Swapped in MB
Memory Used in MB

Thank you,


Monitor SAN Perfmon counters (logical or physical disk counters)

$
0
0

I run Perfmon on Win 2012 R2. Storage is SAN based, hosts are VMWare. Not clear to me if I should use physicalDisk or logicalDisk object counters .

Thank you,


Licenses in virtual environment

$
0
0

As per SAP Note 2139358, Microsoft changed Terms of Use for SQL Server licenses. So, after 31 October 2019 SQL Server must be installed on a physically dedicated server, independently of SQL version.

Note says also that if the customer acquired SQL licenses before March 11, 2015, he needs to sign an amendment to download SQL 2014 or higher.

Question is: If customer purchased SQL licenses before March 11, 2015, and does not want to upgrade to 2014 or higher, can he keep on SQL 2012 until end of extended support period (July 12, 2022) with SQL installed on a virtual machine?

Viewing all 15264 articles
Browse latest View live


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