Quantcast
Channel: Forum SQL Server Database Engine
Viewing all 15889 articles
Browse latest View live

Connectivity errors in SQL jobs

$
0
0
Hi All,

We are seeing intermittent communication link failures for sql jobs and we have to re-run the jobs once again.
Also, some of our team suspecting its a TCP Chimney offload issue.
What is the concept behind TCP chimney offload how it is related to job failure's.
Can anybody explain what does it mean in simple terms and why it might cause connection drops?

Thanks,
-Sam

Virtual Accounts are no longer working following server crash

$
0
0

We are having issues following a server crash.  Cause of the crash is unknown, all that is listed in the event viewer is bug check.

All of our virtual access for the SQL Server Services  we get the service did not start due to a logon failure.  I have cleared out the password and tried again, and still same error.  I can switch the service run under system, and everything starts up.  When I switch back to using NT Service\MSSQLServer I get the same error.

When I look at the local security policy, the service account has the proper permissions.

SQL Server 2012 SP2 with CU6 (5613)

Any Ideas?

DJ


Single user mode session lost after backgound processes jump in

$
0
0
We have an application running on SQL server. This application restores DB very frequently using Single user mode. Following are the SQLs that are executed to restore the database in single user mode and to get the database back in multi user mode.
alter database [test-db] set single_user with rollback immediate;   --This sql is run using test-db
use master;restore database [test-db] from database_snapshot = 'snapshot_test-db';
alter database [test-db] set multi_user;

After switching the test-db to single user mode some 4-5 background processes of Taskmanager jump in for the test-db kicking off the session that application has taken over in single user mode . These background process are deadlocked between them selves. Please refer to the output of sp_who2 below at link.

http://social.microsoft.com/Forums/getfile/200625

and following is the deadlock XML.

NOTE: SPIDs in deadlock XML may differ from the output of sp_who2 as spids keeps on changing for these processes.

<deadlock-list><deadlock victim="process4bbfc78"><process-list><process id="process4bbfc78" taskpriority="0" logused="10000" waitresource="DATABASE: 5 " waittime="705" schedulerid="1" kpid="1648" status="background" spid="22" sbid="0" ecid="0" priority="0" trancount="0"><executionStack/><inputbuf></inputbuf></process><process id="process6d44388" taskpriority="0" logused="10000" waitresource="DATABASE: 5 " waittime="419" schedulerid="1" kpid="5796" status="background" spid="30" sbid="0" ecid="0" priority="0" trancount="0"><executionStack/><inputbuf></inputbuf></process><process id="process6d44718" taskpriority="0" logused="10000" waitresource="DATABASE: 5 " waittime="109" schedulerid="1" kpid="3908" status="background" spid="16" sbid="0" ecid="0" priority="0" trancount="0"><executionStack/><inputbuf></inputbuf></process><process id="process4bbee38" taskpriority="0" logused="10000" waitresource="DATABASE: 5 " waittime="313" schedulerid="1" kpid="2656" status="background" spid="15" sbid="0" ecid="0" priority="0" trancount="0"><executionStack/><inputbuf></inputbuf></process></process-list><resource-list><databaselock subresource="FULL" dbid="5" dbname="unknown" id="lock4671600" mode="S"><owner-list><owner id="process6d44718" mode="S"/><owner id="process4bbee38" mode="S"/></owner-list><waiter-list><waiter id="process4bbfc78" mode="X" requestType="wait"/></waiter-list></databaselock><databaselock subresource="FULL" dbid="5" dbname="unknown" id="lock4671600" mode="S"><owner-list><owner id="process4bbfc78" mode="S"/></owner-list><waiter-list><waiter id="process6d44388" mode="X" requestType="wait"/></waiter-list></databaselock><databaselock subresource="FULL" dbid="5" dbname="unknown" id="lock4671600" mode="S"><owner-list><owner id="process4bbfc78" mode="S"/></owner-list><waiter-list><waiter id="process6d44718" mode="X" requestType="wait"/></waiter-list></databaselock><databaselock subresource="FULL" dbid="5" dbname="unknown" id="lock4671600" mode="S"><owner-list><owner id="process4bbfc78" mode="S"/></owner-list><waiter-list><waiter id="process4bbee38" mode="X" requestType="wait"/></waiter-list></databaselock></resource-list></deadlock></deadlock-list>

On searching for this problem I found out that people have faced similar problem but I was unable to find out the root cause and debug steps for this problem. Stopping the SQL server is provided as a solution to kick out these background processes but this is not a feasible in our case as code to restore DB runs very frequently resulting in this problem at a good frequency.

I also made sure that SQL Server Agent is not running. The SQL services running on server are SQL server, SQL Server Browser and SQL Server VSS Writer.

Any help will be appreciated as this is a blocker problem.

Thanks,


Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

$
0
0

When I try to open up SQL Server Management Studio in SQL Server 2005 I get the following error message:

Attempted to read or write protected memory.  This is often an indication that other memory is corrupt.

How do you fix this?


lcerni

Data file is pointed to a transaction log physical file name

$
0
0

a member of our team was deleting a lot of data last night and had tried to create a new transaction log file. it was late last night and he accidentally ended up with a file that SQL lists as a ROWS data file but the physical file is a transaction log ldf file.

we have tried to remove it but without luck. is there any way to remove it?

Login failed for user 'bobjim'. Reason: Password did not match that for the login provided. [CLIENT: ]

$
0
0

This error is generated when the db.open command in the dll that attempts to connect is run from a service created as a vb.net service project.  It does not occur when the same dll is called from a Windows form.  The dll works perfectly when called from the Windows form.   It appears that the password is being changed or dropped.  It may be that the logon is being attempted with LocalSystem as the user.  The error message is ambiguous - what does  [CLIENT: <local machine>] imply?  Why doesn't it read [CLIENT: bobjim]?

According to the Windows application log, the service starts and stops successfully.

What am I missing?  Is there a setting required for LocalSystem?  Does LocalSystem have to be added to the list of users for the SQL Server?

One other symptom is that when the service starts, the dll can create a log file, but apparently cannot write to it.  In conjunction with the above symptom this makes me suspect that there is a permissions issue.

Here is the connection string with the password obfuscated.

data source=Jim4;initial catalog=ShastaTest;persist security info=true;user id='bobjim';password='xxxxxxxxx';workstation id=JIM4;packet size=4096

The database is on an sql 2012 server configured for mixed mode authentication.  Access to the database with SMC works properly logged on as user bobjim with the same password.

The manifest for the service project was compiled with each of the following with no difference in results.

        <requestedExecutionLevel  level="asInvoker" uiAccess="false" />
        <requestedExecutionLevel  level="requireAdministrator" uiAccess="false" />
        <requestedExecutionLevel  level="highestAvailable" uiAccess="false" />

The service was installed using srvman.  Here is the properties dialog for the service.

This is the OnStart code in SweepCalREDIEService project

    Protected Overrides Sub OnStart(ByVal args() As String)
        ' Insert code here to define processing.
        SweepCalREDIE.SweepCalRedie.SweepCalREDIE_Start()
    End Sub

Any suggestions would be appreciated.  It is not good practice to require a user to stay logged on to keep the application running for a large enterprise.  The application needs to run as a service and be set up for automatic start to ride through power outages or other interruptions.


Login local server failed after update Windows 8.1 to Windows 10

$
0
0

Yesterday I updated my PC system from Windows 8.1 to Windows 10. I cannot login my local SQL server 2012. But I can work normally remote SQL Server with Microsoft SQL Server Management Studio. The local server information is :

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)(Microsoft SQL Server, Error: 2)

TEMPDB - DBCC SHRINKFILE Does not free disk space (SQL SERVER 2008)

$
0
0

After a sudden growth of the TEMPDB data file to approximately 66 GB on production environment i have followed the second method available on MS KB (Method 2: Use the DBCC SHRINKDATABASE command) :

https://support.microsoft.com/en-us/kb/307487

However, after issuing the below script to shrink the file it didn't work and the file remains not shrink with the same 66 GB although the used space of the file now is  220 MB and free space is about 65 GB:

use tempdb
   go

   dbcc shrinkfile (tempdev, 'target size in MB')
   go
   -- this command shrinks the primary data file

   dbcc shrinkfile (templog, 'target size in MB')
   go
 

Is there any required actions to be applied prior to running the DBCC SHRINKFILE script ?

Regards


Table with index many partitions and update stats

$
0
0

Hi exprt,

I need to know following questing

1. assume I have table with 100  as month range.  Application users need to run reports for specific month. but procedure is delete data then load data then run report. I need to update statistics for only that partition rather than total table which will take more hours to get don update statistics.

how to sole this

regards

Ashwan

How do I extract all privileges and the user password for a user in a DDL format for a SQLServer

$
0
0

My goal is to write a DR plan where i am restoring all user databases onto a diffrent server in a event of hardware failure. I was trying to figure out a way to extract DDL of user accounts and their permissions on all user databases so i can simplify my DR documentation.

 

Thanks!

 

 

This is the plan I came up with...to restore all system and user dbs on a different Physical SQLServer.

1. build named instance $PROD
2. restore master database
    - startup sqlserver in single user mode -m or DAC sqlcmd -S ServerName -U sa -P<xxx> –A
    net stop MSSQLSERVER$PROD
    net start MSSQLSERVER$PROD -m
    - restore database master from disk e:\master.bak with replace;
   
3. start sqlserver normally

4. stop SQLServer agent

5. restore msdb
    -restore database msdb disk e:\msdb.bak with replace;

6. restart SQLServer

7. Restore User Databases.

8. Run Sp_change_users_login for all users
    -Sp_Change_users_logins 'auto_fix','username'

 

 

How to capture the date and time when a db changed to single user

$
0
0

Hi Everyone,

I have a requirement to track the sqlserver when any DB changed from multiuser to singleuser.

I want to capture the date and time when anyone change any db from multiuser to single user and save this information in one text or csv file.

How can we do this using powershell?

Please suggest me if there is any other way to do it.

Thanks

sudeep 

No Description - Modify Backup Maintenance Plan failes to save.

$
0
0

Hello,

 

SS2k5 - 9.00.3050 (x64) - Most current SP

 

I've created a backup maintenance plan 'All User Databases'.  Plan saved and executes.

 

Modify plan to add new subplan step to remove old backup files, save fails with a Studio Dialog encapsulating the message  ->  No Description

 

Cannot save the Maintenance Plan.

 

Any ideas about how to save the Plan?

 

Thank You...  Covi

 

How to send mails from SQL Server - stored procedures?

$
0
0

Hi,

I want to know the equivalent of the followingbbwhich is Informix stored procedure :

MAILX -S 'TXIX STORED PROCEDURE FAILED' CSENDEM YEEW MARKM";

in MSSQL server .

How do we send the mail with this message  from MSSQL server stored procedure?

Regards,

What is wait type UCS_SESSION_REGISTRATION?

$
0
0

On one of my SQL 2012 servers I see this wait type is responsible for very high waits - often as high as 60% of the wall clock time. What exactly does it represent? I can find no documentation on it anywhere.

Full SQL version is 11.0.3513. That's 2012 SP1 with security KB 3045317 applied.


Chuck

Issue with linked server

$
0
0

HI All,

We are configure linked server between SQL server 2005 to SQL server 2008.

I execute select * from command for some table its working fine and some table its giving below error.

Kindly help me how to resolve this issue.

Question
You cannot vote on your own post
0

OLE DB provider "SQLNCLI" for linked server "servername" returned message "Invalid character value for cast specification".

OLE DB provider "SQLNCLI" for linked server "servername" returned message "Invalid character value for cast specification".

Msg 7330, Level 16, State 2, Line 1

Cannot fetch a row from OLE DB provider "SQLNCLI" for linked server "servername".


CDC confusion - operation sequence of 3,4,1,2 returned as 1,4 by net changes function

$
0
0
I'm struggling to understand what I'm seeing in CDC's returned data and I wonder if anyone can tell me whether they can make sense of it.

I am seeing the following output from a query directly against the change table for a given primary key value - An update followed by a delete and then an insert, (but the delete and insert have the same start lsn)
__$start_lsn                           __$seqval              __$operation    __$update_mask
-------------------------             ----------------------  ------------ ---------------------------------------------
0x00BE03A8000457990085  0x00BE03A800045799001E  3            0x000000000000000000000000000000001000000000
0x00BE03A8000457990085  0x00BE03A800045799001E  4            0x000000000000000000000000000000001000000000
0x00BE04EA00005BC40059  0x00BE04EA00005B030173  1            0x01FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
0x00BE04EA00005BC40059  0x00BE04EA00005B030173  2            0x01FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 



If I execute a call to get net changes with the arguments 0x00BE03A8000457990085, 0x00BE04EA00005BC40059, 'all', I get the follwing:

__$start_lsn             __$operation    __$update_mask
----------------------   ------------    ------------------
0x00BE04EA00005BC40059  1               NULL
0x00BE04EA00005BC40059  4               NULL        



I'm not entirely sure about this, but I would expect to see just a single update (4) row from the get net changes function, given that the start and end lsn passed as the arguments specify an interval wherein the row existed at both the start and end of the interval. But I'm also confused about the "delete followed by insert" recorded in the change table, especially since both rows have not only the same (natural) primary key value, but also the same surrogate (identity column) value.

My best guess is that something in the system code might be doing weird stuff with identity insert and reusing the same natural key, and that this is confusing CDC. Can anyone clarify what I'm seeing here?

Rebuilding Index Online Blocks and Causes Resource Consumption Spikes

$
0
0

I have a large terabyte database with about three tables north of 25 GB in size. The database has an extremely high amount of write transactions happening throughout the day. The tables are heavily fragmented. When I attempt an online index rebuild, there is enough intermittent blocking to cause an outage of the associated application. In addition, the machine's CPU and disk latency skyrockets.

Anyone have any suggestions in how to approach?


Adam

CDC error;

$
0
0

We have a database enabled for CDC and last few days we encountered this error multiple times
 The Log-Scan Process failed to construct a replicated command from log sequence number (LSN) 
{0026bfad:00073eaa:002d}. Back up the publication database and contact Customer Support Services. [SQLSTATE 42000] (Error 18805)  Log Scan process failed in processing log records. Refer to previous errors in the current session to identify the cause and correct any associated problems. [SQLSTATE 42000] (Error 22859)  The statement has been terminated. [SQLSTATE 01000] (Error 3621)

Checking the sys.dm_cdc_errors we notice this "Violation of PRIMARY KEY constraint 'lsn_time_mapping_clustered_idx'. Cannot insert duplicate key in object 'cdc.lsn_time_mapping'. The duplicate key value 
is (0x0026bfad00073eaa002c)." So we go and cleanup from cdc.lsn_time_mapping and the CDC process continues. But we cannot find the reason why its happening . Also see a connect item from sometime ago.

http://connect.microsoft.com/SQLServer/feedback/details/334459/msit-mso-cdc-capture-job-fails-with-pk-violation-error

But Our server is running sql 2008 sp3 cu2(10.0.5768) . So anyone know if we can still hit that issue? 

note:Also this database has been enabled for CDC for several years and we have started encountering this issue recently.

 


tail log backup error on IsHeaderWritable

$
0
0

hi all,

steps to reproduce:
a. Restore with recovery to my box(Windows 8.1) or windows server(Windows 2012 R2 Std)
restore database [TestDB]
 
b. Backup normal log
backup log [TestDB]
to disk = 'd:\Backups\TestDB.trn'
 
c. Backup tail log
backup log [TestDB]
to disk = 'd:\Backups\TestDB_tail.trn' with norecovery
 
Then I got following error:
 
Processed 6 pages for database 'TestDB', file 'Odyssey_SD001_Log' on file 1.
Location:     container.cpp:6448
Expression:   IsHeaderWritable ()
SPID:         55
Process ID:   2808
Msg 3013, Level 16, State 1, Line 5
BACKUP LOG is terminating abnormally.
Msg 3624, Level 20, State 1, Line 5
A system assertion check has failed. Check the SQL Server error log for details. Typically, an assertion failure is caused by a software bug or data corruption. To check for database corruption, consider running DBCC CHECKDB. If you agreed to send dumps to Microsoft during setup, a mini dump will be sent to Microsoft. An update might be available from Microsoft in the latest Service Pack or in a Hotfix from Technical Support.
 
 
d. Run DBCC CHECKDB
There is no error, I am wondering if either the restore or the dbcc has a bug.
 
 
DBCC results for 'TestDB'.
Service Broker Msg 9675, State 1: Message Types analyzed: 14.
Service Broker Msg 9676, State 1: Service Contracts analyzed: 6.
Service Broker Msg 9667, State 1: Services analyzed: 3.
Service Broker Msg 9668, State 1: Service Queues analyzed: 3.
Service Broker Msg 9669, State 1: Conversation Endpoints analyzed: 0.
Service Broker Msg 9674, State 1: Conversation Groups analyzed: 0.
Service Broker Msg 9670, State 1: Remote Service Bindings analyzed: 0.
Service Broker Msg 9605, State 1: Conversation Priorities analyzed: 0.
DBCC results for 'sys.sysrscols'.
There are 1121 rows in 13 pages for object "sys.sysrscols".
DBCC results for 'sys.sysrowsets'.
There are 153 rows in 2 pages for object "sys.sysrowsets".
DBCC results for 'sys.sysclones'.
There are 0 rows in 0 pages for object "sys.sysclones".
DBCC results for 'sys.sysallocunits'.
There are 178 rows in 2 pages for object "sys.sysallocunits".
DBCC results for 'sys.sysfiles1'.
There are 2 rows in 1 pages for object "sys.sysfiles1".
DBCC results for 'sys.sysseobjvalues'.
There are 0 rows in 0 pages for object "sys.sysseobjvalues".
DBCC results for 'sys.syspriorities'.
There are 0 rows in 0 pages for object "sys.syspriorities".
DBCC results for 'sys.sysdbfrag'.
There are 0 rows in 0 pages for object "sys.sysdbfrag".
DBCC results for 'sys.sysfgfrag'.
There are 0 rows in 1 pages for object "sys.sysfgfrag".
DBCC results for 'sys.sysdbfiles'.
There are 2 rows in 1 pages for object "sys.sysdbfiles".
DBCC results for 'sys.syspru'.
There are 0 rows in 0 pages for object "sys.syspru".
DBCC results for 'sys.sysbrickfiles'.
There are 0 rows in 0 pages for object "sys.sysbrickfiles".
DBCC results for 'sys.sysphfg'.
There are 1 rows in 1 pages for object "sys.sysphfg".
DBCC results for 'sys.sysprufiles'.
There are 2 rows in 1 pages for object "sys.sysprufiles".
DBCC results for 'sys.sysftinds'.
There are 0 rows in 0 pages for object "sys.sysftinds".
DBCC results for 'sys.sysowners'.
There are 19 rows in 1 pages for object "sys.sysowners".
DBCC results for 'sys.sysdbreg'.
There are 0 rows in 0 pages for object "sys.sysdbreg".
DBCC results for 'sys.sysprivs'.
There are 146 rows in 1 pages for object "sys.sysprivs".
DBCC results for 'sys.sysschobjs'.
There are 2285 rows in 33 pages for object "sys.sysschobjs".
DBCC results for 'sys.syscsrowgroups'.
There are 0 rows in 0 pages for object "sys.syscsrowgroups".
DBCC results for 'sys.sysexttables'.
There are 0 rows in 0 pages for object "sys.sysexttables".
DBCC results for 'sys.syscolpars'.
There are 920 rows in 14 pages for object "sys.syscolpars".
DBCC results for 'sys.sysxlgns'.
There are 0 rows in 0 pages for object "sys.sysxlgns".
DBCC results for 'sys.sysxsrvs'.
There are 0 rows in 0 pages for object "sys.sysxsrvs".
DBCC results for 'sys.sysnsobjs'.
There are 1 rows in 1 pages for object "sys.sysnsobjs".
DBCC results for 'sys.sysusermsgs'.
There are 0 rows in 0 pages for object "sys.sysusermsgs".
DBCC results for 'sys.syscerts'.
There are 0 rows in 0 pages for object "sys.syscerts".
DBCC results for 'sys.sysrmtlgns'.
There are 0 rows in 0 pages for object "sys.sysrmtlgns".
DBCC results for 'sys.syslnklgns'.
There are 0 rows in 0 pages for object "sys.syslnklgns".
DBCC results for 'sys.sysxprops'.
There are 0 rows in 1 pages for object "sys.sysxprops".
DBCC results for 'sys.sysscalartypes'.
There are 34 rows in 1 pages for object "sys.sysscalartypes".
DBCC results for 'sys.systypedsubobjs'.
There are 0 rows in 0 pages for object "sys.systypedsubobjs".
DBCC results for 'sys.sysidxstats'.
There are 258 rows in 6 pages for object "sys.sysidxstats".
DBCC results for 'sys.sysiscols'.
There are 450 rows in 2 pages for object "sys.sysiscols".
DBCC results for 'sys.sysendpts'.
There are 0 rows in 0 pages for object "sys.sysendpts".
DBCC results for 'sys.syswebmethods'.
There are 0 rows in 0 pages for object "sys.syswebmethods".
DBCC results for 'sys.sysbinobjs'.
There are 23 rows in 1 pages for object "sys.sysbinobjs".
DBCC results for 'sys.sysaudacts'.
There are 0 rows in 0 pages for object "sys.sysaudacts".
DBCC results for 'sys.sysobjvalues'.
There are 277 rows in 40 pages for object "sys.sysobjvalues".
DBCC results for 'sys.syscscolsegments'.
There are 0 rows in 0 pages for object "sys.syscscolsegments".
DBCC results for 'sys.syscsdictionaries'.
There are 0 rows in 0 pages for object "sys.syscsdictionaries".
DBCC results for 'sys.sysclsobjs'.
There are 16 rows in 1 pages for object "sys.sysclsobjs".
DBCC results for 'sys.sysrowsetrefs'.
There are 0 rows in 0 pages for object "sys.sysrowsetrefs".
DBCC results for 'sys.sysremsvcbinds'.
There are 0 rows in 0 pages for object "sys.sysremsvcbinds".
DBCC results for 'sys.sysxmitqueue'.
There are 0 rows in 0 pages for object "sys.sysxmitqueue".
DBCC results for 'sys.sysrts'.
There are 1 rows in 1 pages for object "sys.sysrts".
DBCC results for 'sys.sysconvgroup'.
There are 0 rows in 0 pages for object "sys.sysconvgroup".
DBCC results for 'sys.sysdesend'.
There are 0 rows in 0 pages for object "sys.sysdesend".
DBCC results for 'sys.sysdercv'.
There are 0 rows in 0 pages for object "sys.sysdercv".
DBCC results for 'sys.syssingleobjrefs'.
There are 174 rows in 1 pages for object "sys.syssingleobjrefs".
DBCC results for 'sys.sysmultiobjrefs'.
There are 124 rows in 1 pages for object "sys.sysmultiobjrefs".
DBCC results for 'sys.sysguidrefs'.
There are 0 rows in 0 pages for object "sys.sysguidrefs".
DBCC results for 'sys.sysfoqueues'.
There are 0 rows in 0 pages for object "sys.sysfoqueues".
DBCC results for 'sys.syschildinsts'.
There are 0 rows in 0 pages for object "sys.syschildinsts".
DBCC results for 'sys.syscompfragments'.
There are 0 rows in 0 pages for object "sys.syscompfragments".
DBCC results for 'sys.sysftsemanticsdb'.
There are 0 rows in 0 pages for object "sys.sysftsemanticsdb".
DBCC results for 'sys.sysftstops'.
There are 0 rows in 0 pages for object "sys.sysftstops".
DBCC results for 'sys.sysftproperties'.
There are 0 rows in 0 pages for object "sys.sysftproperties".
DBCC results for 'sys.sysxmitbody'.
There are 0 rows in 0 pages for object "sys.sysxmitbody".
DBCC results for 'sys.sysfos'.
There are 0 rows in 0 pages for object "sys.sysfos".
DBCC results for 'sys.sysqnames'.
There are 99 rows in 1 pages for object "sys.sysqnames".
DBCC results for 'sys.sysxmlcomponent'.
There are 100 rows in 1 pages for object "sys.sysxmlcomponent".
DBCC results for 'sys.sysxmlfacet'.
There are 112 rows in 1 pages for object "sys.sysxmlfacet".
DBCC results for 'sys.sysxmlplacement'.
There are 19 rows in 1 pages for object "sys.sysxmlplacement".
DBCC results for 'sys.sysobjkeycrypts'.
There are 0 rows in 0 pages for object "sys.sysobjkeycrypts".
DBCC results for 'sys.sysasymkeys'.
There are 0 rows in 0 pages for object "sys.sysasymkeys".
DBCC results for 'sys.syssqlguides'.
There are 0 rows in 0 pages for object "sys.syssqlguides".
DBCC results for 'sys.sysbinsubobjs'.
There are 3 rows in 1 pages for object "sys.sysbinsubobjs".
DBCC results for 'sys.syssoftobjrefs'.
There are 4 rows in 1 pages for object "sys.syssoftobjrefs".
DBCC results for 'sys.filestream_tombstone_133575514'.
There are 0 rows in 0 pages for object "sys.filestream_tombstone_133575514".
DBCC results for 'sys.syscommittab'.
There are 0 rows in 0 pages for object "sys.syscommittab".
DBCC results for 'sys.filetable_updates_261575970'.
There are 0 rows in 0 pages for object "sys.filetable_updates_261575970".
DBCC results for 'sys.plan_persist_query_text'.
There are 0 rows in 0 pages for object "sys.plan_persist_query_text".
DBCC results for 'sys.plan_persist_query'.
There are 0 rows in 0 pages for object "sys.plan_persist_query".
DBCC results for 'sys.plan_persist_plan'.
There are 0 rows in 0 pages for object "sys.plan_persist_plan".
DBCC results for 'sys.plan_persist_runtime_stats'.
There are 0 rows in 0 pages for object "sys.plan_persist_runtime_stats".
DBCC results for 'sys.plan_persist_runtime_stats_interval'.
There are 0 rows in 0 pages for object "sys.plan_persist_runtime_stats_interval".
DBCC results for 'sys.plan_persist_context_settings'.
There are 0 rows in 0 pages for object "sys.plan_persist_context_settings".
DBCC results for 'sys.sqlagent_jobs'.
There are 0 rows in 0 pages for object "sys.sqlagent_jobs".
DBCC results for 'sys.sqlagent_jobsteps'.
There are 0 rows in 0 pages for object "sys.sqlagent_jobsteps".
DBCC results for 'sys.sqlagent_job_history'.
There are 0 rows in 0 pages for object "sys.sqlagent_job_history".
DBCC results for 'sys.sqlagent_jobsteps_logs'.
There are 0 rows in 0 pages for object "sys.sqlagent_jobsteps_logs".
DBCC results for 'sys.queue_messages_1977058079'.
There are 0 rows in 0 pages for object "sys.queue_messages_1977058079".
DBCC results for 'sys.queue_messages_2009058193'.
There are 0 rows in 0 pages for object "sys.queue_messages_2009058193".
DBCC results for 'sys.queue_messages_2041058307'.
There are 0 rows in 0 pages for object "sys.queue_messages_2041058307".
DBCC results for 'StorageDocs'.
There are 132000 rows in 7122 pages for object "StorageDocs".
CHECKDB found 0 allocation errors and 0 consistency errors in database 'TestDB'.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
 
 Microsoft support has identified that is_media_read_only of sys.master_file is set to 1 which is the root cause, we have to either copy data to new database or login as single user and DAC mode to hack the value as below:
select @@servername
GO
use master
GO
sp_configure 'allow updates', 1
GO
reconfigure with override
GO
update sys.sysbrickfiles set status=544 where dbid=?
 
We have hundreds of databases running on the sql box, there is no read only media, just wondering how could this happen, only 3 of us have access to the sql server none of us would hack the database to like this.

chunklets and autogrow

$
0
0

Hello,

I've a discussion with a administrator about the autogrow option or setting a large database file in order to minimize fragmentation. I said that he should reserve diskspace by setting the initial database to a certain amount of GB's.. He responded that"he has HP 3PAR and that works with Chunklets. This are pieces distributed over a number of disks and is not comparable with conventional SAN's".

Now, I've no experience with Chunklets and I would like to know does he has a point?

Regards,

Hennie

Viewing all 15889 articles
Browse latest View live


Latest Images

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