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

Fehler beim PerfLib 2.0-Zähler removal. Exitcode: 2. Befehlszeile: C:\WINDOWS\system32\unlodctr.exe /m:hkengperfctr.xml aus Verzeichnis C:\Program Files\Microsoft SQL Server\120\Shared\.

$
0
0
Hello I'm trying since a long time to solve a problem with SQL. I'm getting constantly an error if im trying to download the SQL Features Database Service Engine and SQL Server Replication. This is like that since I've upgraded to windows 10. Management Studio is working but I can't use it without Database Engine and Replication. 

The error message while im downloading the : 

Fehler:

Fehler beim PerfLib 2.0-Zähler removal. Exitcode: 2. Befehlszeile: C:\WINDOWS\system32\unlodctr.exe /m:hkengperfctr.xml aus Verzeichnis C:\Program Files\Microsoft SQL Server\120\Shared\.

Hilfe erhalten Sie durch Klicken auf: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft%20SQL%20Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.2000.8&EvtType=0x590D6427%25400x24BDAA65%25401260%25401

(Sorry for german)

and in the end when it shows that they are both not downloaded this error message: 

Database Engine Services – Fehler
Erforderliche Aktion:
Beheben Sie den Fehler mithilfe der folgenden Informationen, deinstallieren Sie die Funktion, und führen Sie den Setupvorgang dann erneut aus.
Ursache für Funktionsfehler:
Fehler während des Setupvorgangs für die Funktion.
Fehlerdetails:
  Fehler beim Installieren von Instanzfunktionen der SQL Server Database Engine Services
Fehler beim Warten auf das Wiederherstellungshandle des Datenbankmoduls. Überprüfen Sie das SQL Server-Fehlerprotokoll auf die möglichen Ursachen.
Fehlercode: 0x851A0019
Besuchen Sie http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.2100.60&EvtType=0x4BDAF9BA%401306%4025&EvtType=0x4BDAF9BA%401306%4025  um Hilfe bei der Problembehandlung zu erhalten.


I don't know what i should do i've tried to download perflib.dll again but it already was there or is it even because data isnt there?

Thank you!


Entity–relationship model

$
0
0

Hi experts, 3 quick questions!

 

1-     What’s the quickest tool you use for creating an Entity–relationship model?

2-     Last time I created one was years ago, is there any quick guide… I always confuse the one-to many and write them down the incorrect way.

3-     The diagrams I want to create are for tables stored in sql… Has sql any built-in way to export an E-R model? (in any case, I don’t know if I ll be able to use it, because not all the FK-PK constraints are in-place, there are many that are just in the logic but I want to write them down in the model).

 

 

 

 

SQL Server 2014 Buffer Pool Extension on Azure VM

$
0
0

I am using a VM on Azure D12_v2 (4 cores, 28 GB) to run SQL Server, using the Buffer Pool Extension feature. I have dedicated 100 GB of SSD for the BPE. I am constantly monitoring buffer pool memory through the sys.dm_os_buffer_descriptorsDMV, using the is_in_bpool_extension to check pages in BPE. I use the following query for checking memory buffers.

SELECT  SUM(1-is_in_bpool_extension)*8/1024 RAM_MB, SUM(is_in_bpool_extension*1)*8/1024 BPE_MB
FROM sys.dm_os_buffer_descriptors(nolock)


While the Server is warming I am noticing a constant increase in buffer pool memory until it reaches almost 20 GB of memory without using BPE. When BPE starts getting data, I am noticing a constant decrease in buffers in standard memory given by this query (for example 14GB and 8GB in BPE, 9GB and 20GB in BPE, etc). Now, after 5 days, I see 5GB in RAM and 46GB in BPE. Does this means I am loosing buffers from standard memory? Or many buffers coexist in RAM and BPE and the bit nature of the field is_in_bpool_extension cannot reflect what exactly happening?

As you understand RAM is much faster than SSD (one metric I have is 10691 MB/s for RAM speed, and50 MB/s for SSD speed for this kind of machines. If I am loosing buffers from RAM it seems using BPE is not a good option. Anyway, I don't see any server performance problem, but I am not sure I see it in full workload these days. 

Can anybody explain to me what is happening and why I am getting these results?

PS: On this server coexist almost 80 databases of a total size 200 GB, using a typical medium sized ERP workload.

Thanks,

Dimitris


The semaphore timeout period has expired

$
0
0

 We installed SSMS at our Virtual Machine instance and we are having a connection problem between our VM and our SQL Engine.

Error below:

"Msg 121, Level 20, State 0, Line 0
A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - The semaphore timeout period has expired.)"

Auditing SQL Database using configuration files.

$
0
0
Im an internal IT Auditor in a financial institution currently auditing databases. The majority of the databases are SQL. As the dictated by the Audit program I need to sit down the Database Administrator and revise how the SQL instance is configured. Instead of bugging the Administrator to navigate through the different options, is there a configuration file that can be exported so that I can carefully review from my desk? The process in place requires the Administrator to fill out a form to specify what the settings are going to be, but most of the times the databases are not configured as shown on paper. What Im asking for is something similar to ashow run command performed on a Cisco device where it can be exported to a notepad document. 

Restoring database with Standby option

$
0
0

Hi, 

I have a standby database, and I am trying to restore the t-log backup over the standby database which is having FlieStream data. 

When I restore the t-log backup on a normal database without FileStream enabled, it works absolutely fine without any issue. 

But I am getting the below error: 

System.Data.SqlClient.SqlError: The file "XXXXXXXXFS" was not fully restored by a database or file restore. The entire file must be successfully restored before applying this backup set. (Microsoft.SqlServer.Smo)

Can you please help me on this. 

Oracle Provider for Ole Db vs Oracle ODBC

$
0
0

Hi there, i need to pull data from Oracle 11 from SQL Server 2014.

No drivers installed yet in my SQL Server.

What are the best recommendations and suggestions for achieve that having in mind that Oracle is in another domain? Which is the best driver for getting data all over the network?

At first I would need to set up a linked server between them and then just use it from a SSIS package.

Thanks for your help!!

a read operation on a large object failed error 7886 sev 20 state 2

$
0
0

when running the SharePoint 2013 farm backup there is an error 7886 severity 20 state 2 in the sql server log  (a read operation on a large object failed while sending data to the client. a common cause for this is if the application is running in read committed isolation level, the connection will be terminated) . Farm consists of one WFE and one SQL only. not sure which database it relates to though. Noticed that after the backup the sharepoint synchronization service does not restart, remains off. next time when the backup runs the synchronization service starts up and so on , one backup turns it off than second one turns it on. was wondering the terminated connection is the reason for the synchronization stoppage.

how should I fix this error 7886?


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

connection problems in sql management studio 2014

$
0
0
Every two days I cannot use it because it wont connect to user-pc, which is the database engine, even though the day before it did. What is wrong with it? Should I just reinstall everything or is there something else I can do to fix this? It worked OK yesterday, not the day before but did the day before that when I installed all the sql server stuff. Can anyone please help?

Error i backup my database

$
0
0

Good evening,

since a few days I am trying to save my database SQL Server 2008 R2, but I always end up with the following message:

Msg 3013, Level 16, State 1, Line 1
BACKUP DATABASE is terminating abnormally.
Msg 823, Level 24, State 3, Line 1
The operating system returned the 1117 error (can not meet the demand due to an I/O device error.) To SQL Server during a write operation at the 0x0000067ac62000 offset in file ' E:\SQL_Data\migration\base_1.mdf '. You may find more details in additional messages that appear in the error log and the event log SQL Server system. This is a severe error condition system level that jeopardizes the integrity of the database and must be corrected immediately. Perform a full consistency check of the database (DBCC CHECKDB). This error may be due to many factors; for more information, see the online documentation for SQL Server.

my base is installed on a physical machine and not on a VM.

Thank you for your help.

SQL Server 2012 changes its time to some future date when restoring database

$
0
0
I have a pair of clustered servers that are a development environment.  They are on a pair of HP GL380P servers and we weekly restore our production database to this environment.  We have found that for some reason when we do the restore on the primary in the cluster it will start having time problems and eventually the time gets so out of whack that Kerberos on that machine fails and networked accounts cant log into it.  Looking at the event viewer I see where it goes through a process of trying to correct the time about 12 times with in a few seconds then sets itself to some odd interval from the current date.  Some times it two days and 12 hours we have had it go as much as a week.  We have done some testing and find that it follows the cluster because we have never had a time/date issue on Box 2 but when it was made primary in the cluster the problem started occurring there.  I had saw where there was a fix for a similar issue in SQL 2008 but cannot find anything for 2012, anybody else encounter this?  Any suggestions?

Temp DB space allocation

$
0
0

Hi 

I am completely new to Database management now have the responsibility to reconfigure the TEMP DB to optimize the performance

My DEV SQL server 2014 has the TEMP DB (D drive) space as 223 GB and the Temp DB has 7 data files 3 log files, Below are its current space allocations,

Please suggest the best file size changes to apply that will improve the performance and do not go out of space frequently.

SQL 2012 - Error 17189 Server failed with error code 0xc0000000 to spawn a thread to process a new login or connection. Check the SQL Server error log and the Windows event logs for information about possible related problems. [CLIENT: ]"

$
0
0

Hi,

My Name is Dominic Ho, I found my SQL 2012 Server has the following error recently starting from 21th July 2016

Error 17189 serveitty 16 state 1 

SQL Server failed with error code 0xc0000000 to spawn a thread to process a new login or connection. Check the SQL Server error log and the Windows event logs for information about possible related problems. [CLIENT: <local machine>]"

Defaul instance in my Local Box 2014 is dead

$
0
0

Hi all,

Only thing remarkable was Oracle's client yesterday installation... But obviously nothing related to this issue.

SQL Server and SQL Server Agent restarted successfully but from my SSMS nothing to do and what's more, just look this picture:

I'm trying to kill processes but after a few seconds I get time-out...

The other two instances in my local box working properly.

"SQLAgent -Initial Boot probe"  What's that?


Error showing when try to write subquery

$
0
0

Hi

this is a working query

select conductor_id,conductor_id2 from routeBusdetails where uname='prathap' and tour_date='2016-08-01' and conductor_id is not null

my requirement is to write above query in sub query like following

select conductor_id,cname from routeconductormaster where uname='prathap' and conductor_id not in(select conductor_id,conductor_id2 from routeBusdetails where uname='prathap' and tour_date='2016-08-01' and conductor_id is not null )

following error is showing
Msg 116, Level 16, State 1, Line 1
Only one expression can be specified in the select list when the subquery is not introduced with EXISTS.

how to solve this

Regards

Baiju

can not restore .bak file on sql server 2012

$
0
0

i have  .bak file  downloaded from internet , and i also have istalled  sql server  2012.

my problem that i can not restore  this  .bak file and get this error massage :

TITLE: Microsoft SQL Server Management Studio
------------------------------
Restore of database 'SRO_VT_SHARD' failed. (Microsoft.SqlServer.Management.RelationalEngineTasks)
------------------------------
ADDITIONAL INFORMATION:
System.Data.SqlClient.SqlError: The operating system returned the error '5(Access is denied.)' while attempting 'RestoreContainer::ValidateTargetForCreation' on 'C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\SRO_VT_SHARD.mdf'. (Microsoft.SqlServer.SmoExtended)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=11.0.2100.60+((SQL11_RTM).120210-1846+)&LinkId=20476

- .bak file  version  = 661  10  50  1600 = sql server  2008R

- my sql version     = Microsoft SQL Server 2012 - 11.0.2100.60 (Intel X86)

any help please

 

Timeout Error after 80% of memory usage

$
0
0

Hi,

We need to resolve an issue related to Timeout error in sql server please find below details.

SQL Server 2014 standard edition. 

Windows 2012 R2

Server memory 32GB

Memory upper limit for SQL server is 20000 MB

Database MDF file size is 8 GB

Log file size is 15 GB

File stream Size is 100 GB

After starting SQL SERVER service, on Task manager it shows memory usage as 8 GB for SQL server.

After accessing the database through application, memory usage of sql server engine start growing, in a day it will reach upto 16 GB. When it reaches 16GB we are getting Timeout error, if we restart the SQL server engine, it will start working again. Kindly advise how can we address this issue.

Thanks and Kind regards

Abraham


SQL plan cache erase often 10 to 15 min - how to identify cause

$
0
0
Hi,

I am troubleshooting performance issues on BO server, as some of the reports are taking very long time to execute. 
Understand BO performance is done at different levels but I am just making sure all OK from SQL level, so started tunning SQL scripts via execution plans and checking heavily used tables and done deep analysis on indexmanagement and created covering indexes/additional indexes after the creation the reports execution accepted time. 

But on the server cachedplans get erases very often every 10 to 15 min interval, no one runnnig dbcc freeprocache command or changing any db level settings. Is there any way I can find why its clearing out plan cache? 

Have checked the SQL logs no odd errors or memory is not under pressure server has 34 gb ram allocated 30 gb to SQL. 
Just for more info, as this server holds BO related databases I can see from the db side it does clearing up whole table/load new data very often into BO databases. 
But the core data DB get refreshed every night from live and running index scripts, have done explict tests running adhoc command in SMS and check if it exists in plan cache and wait another 15min and see still exist - this just disappears. 

Any suggestions greatly welcomed

satwick

Msg 2537 running DBCC CHECKDB related to SOUNDEX computed column

$
0
0

We have been seeing Msg 2537 running DBCC CHECKDB for many months.  All of the failures are related to computed, persisted columns.  All the computed columns with the problem use soundex function and have a definition like:
[theColumnASound]  AS (soundex([theColumnA])) PERSISTED

I have genericized the messages changing <specificSchema>.<specificTable> to theSchema.theTable but otherwise posted them exactly as displayed.  Here is one example:

Command: DBCC CHECKDB ([theDatabase]) WITH NO_INFOMSGS, ALL_ERRORMSGS, DATA_PURITY, EXTENDED_LOGICAL_CHECKS
Msg 2537, Level 16, State 106, Server theServer, Line 1
Table error: object ID 1924306015, index ID 0, partition ID 72057594151043072, alloc unit ID 72057594207076352 (type In-row data), page (1:13066), row 35. The record check (valid computed column) failed. The values are 8 and 0.
Msg 2537, Level 16, State 106, Server theServer, Line 1
Table error: object ID 1924306015, index ID 0, partition ID 72057594151043072, alloc unit ID 72057594207076352 (type In-row data), page (1:36178), row 4. The record check (valid computed column) failed. The values are 8 and 0.
Msg 2537, Level 16, State 106, Server theServer, Line 1
Table error: object ID 1924306015, index ID 0, partition ID 72057594151043072, alloc unit ID 72057594207076352 (type In-row data), page (1:36178), row 5. The record check (valid computed column) failed. The values are 8 and 0.
Msg 2537, Level 16, State 106, Server theServer, Line 1
Table error: object ID 1924306015, index ID 0, partition ID 72057594151043072, alloc unit ID 72057594207076352 (type In-row data), page (1:44841), row 9. The record check (valid computed column) failed. The values are 8 and 0.
CHECKDB found 0 allocation errors and 4 consistency errors in table 'theSchema.theTable' (object ID 1924306015).
CHECKDB found 0 allocation errors and 4 consistency errors in database 'theDatabase'.
repair_allow_data_loss is the minimum repair level for the errors found by DBCC CHECKDB (theDatabase).
Outcome: Failed
Duration: 00:02:15
Date and time: 2015-09-07 02:37:24

Customer A has the problem and runs on this configuration:
Dell PowerEdge R720
600 Gb 10kRPM SAS drives and a PERC H310 controller  drives configured as RAID 10
Standard Edition (64-bit)
Microsoft SQL Server 2012 (SP1) - 11.0.3153.0 (X64)
 Jul 22 2014 15:26:36
 Copyright (c) Microsoft Corporation
 Standard Edition (64-bit) on Windows NT 6.2 <X64> (Build 9200: )
Customer B has the problem and runs on this configuration:
HP  ProLiant DL380 G5
Standard Edition (64-bit)
Microsoft SQL Server 2008 (SP3) - 10.0.5538.0 (X64)   Apr  3 2015 14:50:02   Copyright (c) 1988-2008 Microsoft Corporation  Standard Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)

Our product runs in a unique SQL Server OLTP database for each customer.  We have identical code in each DB.  The code can run either in a SQL Server instance hosted by the customer or we host it in Amazon Web Services (AWS) at the customer's option.  We are hosting more than ten customers in AWS.  We *never* have the Msg 2537 DBCC CHECKDB failure on our AWS instances. 
Amazon Web Services SQL Server runs on this configuration:
AWS ECC instance m2.large (you won't understand this if you don't know AWS but it is a measure of the hardware the Amazon virtual machine runs on.)
standard, magnetic storage
Standard Edition (64-bit)
Microsoft SQL Server 2008 (SP3) - 10.0.5520.0 (X64)   Jul 11 2014 16:11:50   Copyright (c) 1988-2008 Microsoft Corporation  Standard Edition (64-bit) on Windows NT 6.0 <X64> (Build 6002: Service Pack 2)

After restoring a database backup with the problem to a traditional architecture like a Dev server with RAID-5 the problem persists.  Restoring the exact same backup to a laptop with an SSD "fixes" the problem in that DBCC CHECKDB runs without any errors. Data comparison between the Dev server Dev server with the reported problem and the laptop reports the data is identical.  So the only apparent difference is the failure of DBCC CHECKDB.

Results of repair on a Dev server running: DBCC CHECKDB ([theDatabase], REPAIR_ALLOW_DATA_LOSS) WITH ALL_ERRORMSGS, NO_INFOMSGS
Repair: Deleted record for object ID 1924306015, index ID 0, partition ID 72057594151043072, alloc unit ID 72057594207076352 (type In-row data), on page (1:13066),  slot 35. Indexes will be rebuilt.
Repair: Deleted record for object ID 1924306015, index ID 0, partition ID 72057594151043072, alloc unit ID 72057594207076352 (type In-row data), on page (1:36178),  slot 4. Indexes will be rebuilt.
Repair: Deleted record for object ID 1924306015, index ID 0, partition ID 72057594151043072, alloc unit ID 72057594207076352 (type In-row data), on page (1:36178),  slot 5. Indexes will be rebuilt.
Repair: Deleted record for object ID 1924306015, index ID 0, partition ID 72057594151043072, alloc unit ID 72057594207076352 (type In-row data), on page (1:44841),  slot 9. Indexes will be rebuilt.
Repair: The Nonclustered index successfully rebuilt for the object "theSchema.theTable, PK_Alias" in database "theDatabase".
Msg 2537, Level 16, State 106, Line 1
Table error: object ID 1924306015, index ID 0, partition ID 72057594151043072, alloc unit ID 72057594207076352 (type In-row data), page (1:13066), row 35. The record check (valid computed column) failed. The values are 8 and 0.
        The error has been repaired.
Msg 2537, Level 16, State 106, Line 1
Table error: object ID 1924306015, index ID 0, partition ID 72057594151043072, alloc unit ID 72057594207076352 (type In-row data), page (1:36178), row 4. The record check (valid computed column) failed. The values are 8 and 0.
        The error has been repaired.
Msg 2537, Level 16, State 106, Line 1
Table error: object ID 1924306015, index ID 0, partition ID 72057594151043072, alloc unit ID 72057594207076352 (type In-row data), page (1:36178), row 5. The record check (valid computed column) failed. The values are 8 and 0.
        The error has been repaired.
Msg 2537, Level 16, State 106, Line 1
Table error: object ID 1924306015, index ID 0, partition ID 72057594151043072, alloc unit ID 72057594207076352 (type In-row data), page (1:44841), row 9. The record check (valid computed column) failed. The values are 8 and 0.
        The error has been repaired.
Msg 8945, Level 16, State 1, Line 1
Table error: Object ID 1924306015, index ID 2 will be rebuilt.
        The error has been repaired.
CHECKDB found 0 allocation errors and 4 consistency errors in table 'theSchema.theTable' (object ID 1924306015).
CHECKDB fixed 0 allocation errors and 4 consistency errors in table 'theSchema.theTable' (object ID 1924306015).
CHECKDB found 0 allocation errors and 4 consistency errors in database 'theDatabase'.
CHECKDB fixed 0 allocation errors and 4 consistency errors in database 'theDatabase'.

Comparison of tables between a reference and the repaired table shows the rows were deleted.  The deleted rows are significant to the business and removing them has a negative impact to the business.  When the rows for which errors are reported and left in, we have no issues except the Msg 2537.

Do you have a patch or a recommendation?


Matt

Viewing all 12963 articles
Browse latest View live


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