On one of our SQL server 2012 Standard Edition, which hosts SCOM database(Operation manager) the DBCC CHECKDB is taking almost a day. This usually stuck on DBCC SSB check and it is taking more than 24 hours to complete. Is there a way to avoid or skip DBCC SSB check or is this hitting a bug?
DBCC CHECK DB STUCK AT DBCC SSB CHECK
SSL Certificate not visible from SQL Configuration Manager
Hi all,
for some reason I am not able to see the certificate from the Configuration Manager --> SQL server network configuration --> Protocols for MSSQLSERVER when I right click and select the Certificate under the dropdown.
Certificate was imported from sys admin guy and I can see it under Certificates' Personal folder of the Console Root - certificates (Local Computer). It also looks that is configured and imported properly and in line with the requirements under the Microsoft's
links below:
http://technet.microsoft.com/en-us/library/ms191192.aspx
http://technet.microsoft.com/en-us/library/ms189067%28v=sql.105%29.aspx
The version of the operating system is where SQL server resides is Windows Server 2012 Standard Edition and SQL Server is 2012 developer edition.
Since my sql server services Engine is running under service account with Deny Logon Locally domain policy, I started the service as LocalSystem and open the Configuration Manager with an administrative account, but still didn't worked.
Feedbacks on this issue are highly appreciated.
Cheers
SERVER= Property in an Excel Connection String
I have the following property in my Excel Connection String
SERVER=RPDDEV_RPT
This is referencing an alias I suppose. Is there any way I can tell what that alias is referencing?
I looked within SQL Server Configuration Manager and found no aliases at all.
I also checked within Data Sources (ODBC) and found nothing there as well
What am I missing here?
Thanks for your review and am hopeful for a reply.
SQL Server Assertion - Error
We are getting these error from the server causing database to crush/ sql services restarted.
DESCRIPTION: SQL Server Assertion: File: <tmpilb.cpp>, line = 2576 Failed Assertion = 'fFalse' Attempt to access expired blob handle (3). This error may be timing-related. If the error persists after rerunning the statement, use DBCC CHECKDB to check the database for structural integrity, or restart the server to ensure in-memory data structures are not corrupted.
Steps Taken - we had checked our DBCC CHECKDB on the database database came out clean.
Cheers, MAK
SQL Server INSERT STOPS [Timeout]
Hi,
Dear all,
we have SQL SERVER Standard Edition installed on WINDOWS SERVER 2012, at 2 or 3 times: The SQL Server was stopping working for INSERT statement after some mouths of 24/7 working. So it return to work after rebooting the server.Is it normal ?
How can I see logs error reporting ?
What you suggest to me.
As mention, we have the main database with 2 GB size.
Best Regards,
I/O benefit of enabling trace flag 1118
Hi All
I am looking for documentation to proof if there is any I/O benefit after enabling trace flag 1118.
Please suggest and help.
Regards
Rohit Garg
Regards,
Rohit Garg
(My Blog)
This posting is provided with no warranties and confers no rights.
Please remember to click Mark as Answer and Vote as Helpful on posts that help you. This can be beneficial to other community members reading the thread.
how to remove the selected owned schema in a database user in security
Hi all,
I am using SQL Server mgmt studio with 2005 db. I accidentally clicked the
owned schema while in a database user in security. When I went back to
remove the check boxes they were greyed out. How do I remove them?
Regards,
anjali
SSMS stop displaying any database object and DBCC return database consistency error.
I am using Dynamics AX 2012 with SQL Server 2012. Suddenly my database stop working, when I try to check through SSMS there is no table or view or procedure displaying in the management studio but I can see all objects using information_schema.tables.
On executing DBCC command following are the results.
Msg 8944, Level 16, State 13, Line 1
Table error: Object ID 54, index ID 1, partition ID 281474980249600, alloc unit ID 281474980249600 (type In-row data), page (1:27214), row 9. Test (ColumnOffsets <= (nextRec - pRec)) failed. Values are 1036 and 97.
Msg 8978, Level 16, State 1, Line 1
Table error: Object ID 54, index ID 1, partition ID 281474980249600, alloc unit ID 281474980249600 (type In-row data). Page (1:11788) is missing a reference from previous page (1:27214). Possible chain linkage problem.
Msg 8944, Level 16, State 13, Line 1
Table error: Object ID 54, index ID 1, partition ID 281474980249600, alloc unit ID 281474980249600 (type In-row data), page (1:27214), row 9. Test (ColumnOffsets <= (nextRec - pRec)) failed. Values are 1036 and 97.
Msg 8928, Level 16, State 1, Line 1
Object ID 54, index ID 1, partition ID 281474980249600, alloc unit ID 281474980249600 (type In-row data): Page (1:27214) could not be processed. See other errors for details.
Msg 8976, Level 16, State 1, Line 1
Table error: Object ID 54, index ID 1, partition ID 281474980249600, alloc unit ID 281474980249600 (type In-row data). Page (1:27214) was not seen in the scan although its parent (1:148999) and previous (1:11208) refer to it. Check any previous errors.
DBCC results for 'sys.sysidxstats'.
5 inconsistency error.
I restored database but same error still exists
Shamas Saeed (if Post helpful please mark as Answer) http://shamas-saeed.blogspot.com
KB2878968 is not resolved in SQL 2014 SP2 CU1.
This error "CPerIndexMetaQS::ErrorAbort - Index corruption" occurs in SQL2014
SP2 CU1, as well. In the KB is is said that it is resolved in SQL 2014 CU1.
Difference: NOLOCK is not used.
Workarounds tried:
1. DBCC CHECKTABLE does not find problem.
2. Rebuilding indexes does not help.
3. Changing transaction isolation level also does not help.
Explanation:
The query facing this problem is using MERGE operator.
[target] is a CTE. The table which is actually being updated in the CTE was LEFT JOINED, which is resulting in NULL Rows as [target] rows. Trying delete these rows is generating DUMP and the above error.
Rewrite of the query helped.
Probably it is a new bug?
Thank you in advance.
Backup - Restore bug in SQL2014
Please consider the below scenario:
Server A -> SQL 2014 Developer RTM;
Server B -> SQL 2014 Developer RTM;
Both Server are configured in AlwaysOn Group. Server A is a Primary Replica and Server B is a Readable Secondary (Asynchronous commit)
Log backups are performed on Primary Replica (Server A)
Full Backups are performed on Secondary Replica (Server B)
The log backups are running on Server A,while the full backup is running on Server B.
Restoring the Full Backup on Server C with NORECOVERY -> SQL 2014 Developer SP1 CU4
Trying to restore the corresponding Log backups taken from Server A.
Immediately when first log backups shows message that it is restored a Memory exception is thrown and the process is interrupted.
There are no issues with the backups as it was tested several times with different backups.
Workaround: The Log backups should be stopped on the primary while the full backup is running on the secondary. After that the restore is successful (Full + necessary log backups).
I did not find such issue explained or fixed in further patches.
Is someone aware if this is fixed or known?
Error: 17836, Severity: 20, State: 1
2009-04-18 08:03:03.750 Logon Error: 17836, Severity: 20, State: 1.
2009-04-18 08:03:03.750 Logon Length specified in network packet payload did not match number of bytes read; the connection has been closed. Please contact the vendor of the client library. [CLIENT: 10.26.32.96]
Error: 17836, Severity: 20, State: 1.
2009-04-25 08:03:07.090 Logon Length specified in network packet payload did not match number of bytes read; the connection has been closed. Please contact the vendor of the client library. [CLIENT: 10.26.32.96]
009-05-02 08:02:49.890 Logon Error: 17836, Severity: 20, State: 1.
2009-05-02 08:02:49.890 Logon Length specified in network packet payload did not match number of bytes read; the connection has been closed. Please contact the vendor of the client library. [CLIENT: 10.26.32.96]
Sivaprasad Shttp://sivasql.blogspot.com Please click the Mark as Answer button if a post solves your problem!
Reason for really long query (no blockings)
Hi experts, I am extremely curious as of why this query has been running for almost 3 hours now…
On sp_who2, there are no blockings.
I see:
Status: SUSPENDED.
Command: INSERT.
CPUTime: 98,394
DISKIO: 998,372
Wait type: PAGEIOLATCH_SH
Wait Resource: 40:1:15323842
And the code is doing the below…
declare@ActVS3 as SF_ActMerge
SELECT@LastUpdateDate=Max(updatedate)
FROM [BUDatamartsource].[dbo].[Salesforce_Act]
insert@ActVS3
selectAct_id,
Clou_id,
Name,
Box__c,
FE_Sales_Group__c,
FE_Owner__c
from [Repl].[dbo].[Act]
where UpdateDate> @LastUpdateDate
I am 100% sure the insert is doing less than 1,000 insertions, and that Act table has less than 400,00 rows…
why is it taking so long?!?! I do not understand, what could possibly be causing this?
Enable SQL Server Priority Boost to a default 0 or Disable it ?
Based on your experience, is it still dangerous if SQL Server Priority Boost is enabled and set to 0 ( default ) ?
Microsoft is not detailed on the impact of the default setting 0 and setting of 1. I hope to hear some details from your experiences.
OPENROWSET on database with linked tables
I have an access database that has linked tables. When in Access, I can run the query without any issue. It asks me to log into the linked server (and I do). Now, I want that data to be available to my SQL Server Express database. So, I want to create a view:
SELECT * FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0', 'Data Source=|DIRECTORY|\MyDatabase.mdb', 'SELECT * FROM [MyTable]') AS A
However, I get the following error:
Error Source: .Net SqlClient Data Provider
Error Message: Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)"
Am I correct that this is because my SQL Server query is not linking to the networked server like I would ordinarily do when I run the query through Access? Is there a way that I can set up this view?
DBCC & DMV commands
Creating SQL Alias for Sharepoint2013 AFTER farm installed - documentations pls !!
Hello,
I've seen similar posts but have not seen complete procedures on how to go about it.
My problem: I have an existing *new* SP2013 farm (single server). After installation of farm we realized we had to create the SQLAliases.
Please can you propose an article detailing the steps to take including the possible problems encountered and its resolutions.
We have a 3-tier Sharepoint farm with SQL installed as a named instance. TCP/IP as dynamic ports.
Please note the farm was configured by someone else, I am new on the team and am taking on this project ;-)
thanks in advance
Esperanza
How long should it take to copy a file
Alan
SQL query question
Hello,
We are having performance issues on the SQL server 2012 Ent edition. I was able to trace the expensive queries that are causing the perf issues. But I am trying to identify the host name from which those queries are being executed. Can someone refer me a article which can give host names with the expensive queries consuming high cpu, logical reads etc.
Thanks.
sqldev
Database exception: SMux Provider: Physical connection is not usable [xFFFFFFFF]
Hello,
In my application some time i will get below error message:
Database exception: SMux Provider: Physical connection is not usable [xFFFFFFFF]. Unable to open a logical session State:08S02,Native:-1,Origin:[Microsoft][SQL Server Native Client 11.0] State:08S02,Native:-1,Origin:[Microsoft][SQL Server Native Client 11.0]
It seems to be DB connection is getting lost in between. But I didn't find root cause why DB connection is failing.
SQL Server is installed on Virtual machine.
Any idea why application is getting lost DB connection?
Regards,
Narasimhulu
Ordering a plain file from ssis?
hi guys, it is highly probably I'm asking a stupid thing and it does not make any sense at all...
How can I order a plain file by using a SSIS package?
I’ve created this file using three separated data flows.
For different reasons (120 fields) I created the file and populated, and then, add data from other data sources (Oracle)
ideally I would like to load this plain file into a SQL table but I would need to create all the columns by hand...
is it so? If not, what am I missing here?
Thanks for sharing your comments,