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

if clustered index updates then non-clustered index also?

$
0
0

if clustered index updates then non-clustered index also?


Thanks


A significant part of sql server process memory has been paged out. This may result in a performance degradation. Duration: 0 seconds. Working set (KB): 4448, committed (KB): 558008, memory utilization: 0%%.

$
0
0

Hi,

I am suddenly facing this issue in my development server and got the following message in logs:

A significant part of sql server process memory has been paged out. This may result in a performance degradation. Duration: 0 seconds. Working set (KB): 4448, committed (KB): 558008, memory utilization: 0%%.

The overall memory consumption of windows is itself 3.66GB out of 16GB. ALso in the above message the memory utilization is 0%. How can this cause memory pressure for windows. CAn any one help in getting is fixed?

Event Id 326 & 327

$
0
0

I have those event triggered on my log every every few seconds, sometimes as many as 6 per seconds.

I know that some here reported that this is related to the SSRS.

But anyway, What does that changes ? This is still a problem.

Why detach and reattach a database 1333 times per hour ? (actual count from 7.20 to 8.20 am this morning)

Anyone know what I have to do to stop this  ?

Id 327

svchost (1600) The database engine detached a database (2, C:\Windows\system32\LogFiles\Sum\SystemIdentity.mdb). (Time=0 seconds)

Id 326

svchost (1600) The database engine attached a database (2, C:\Windows\system32\LogFiles\Sum\SystemIdentity.mdb). (Time=0 seconds)


k.r.

SQL Server 2012 - RESOURCE MONITOR / PREEMPTIVE_XE_CALLBACKEXECUTE high CPU usage

$
0
0

Hello, 

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

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

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

  Running the following script:

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

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

Thanks.

Question about resource governor

$
0
0

I have a couple of questions regarding resource governor:

1. Do the resource governor settings override the SQL 'max server memory' settings?

For example, if I configured OLTP resource pool (0 to 50 %) and Reporting resource pool (0 to 30%), does it mean I am allocating 80% of the server's total physical memory or does it mean it occupies 50% and 30% of the already allocated 'max server memory' that is dedicated to SQL Instance. I am trying to understand if these chunks of % are taken out of total physical memory or off the already capped off 'max server memory' of the SQL Instance.

2. Can one resource pool utilize the memory allocated to another resource pool?

For example if there is a need of 20% memory at a given time for 2 resource pools, is there a chance that both resource pools utilize same 20% block of memory so that the total % is just 20% or do they use individual blocks that would total up the usage to 40%?

Thank you!

High CPU Alert / notification

$
0
0

I have been trying to setup an alert or some kind of notification when CPU is high on 2008R2 and 2012 to no avail. Here are some I have tried.

http://www.sqlservergeeks.com/sql-server-real-time-monitoring-using-wmi-classes-part-3/

http://social.technet.microsoft.com/Forums/windowsserver/en-US/abf3040a-93ba-4889-a6e8-4f38459a1019/sql-2008r2-performance-condition-alert-for-cpu-threshold-event?forum=sqldatabaseengine

And a bunch of others not a single one works.


Alan

Compare methods in C # to connect to SQL Server database in terms of speed,quality and functionality.

$
0
0

Pleasecomparemethodsin C #to connectto SQL Serverdatabase(forexample, 3-tierarchitecture oftraditional and entityFramework(linq to entity or linq to sql object model)andLinqto SQL)in terms of speed, quality and functionalitytogivemetips.

Thank you.

Mojtaba Malakouti.


AlwaysON backup question 2

$
0
0

Hello!

I set up a backup jobs for the secondary AlwaysON replicas on each of my SQL servers as discussed here 

http://social.technet.microsoft.com/Forums/en-US/642a1574-dbec-414e-87a8-d8fa262d0fa8/alwayson-backup-question?forum=sqldatabaseengine

...and database (called "Resources") and log backups were being created properly while the primary replica was a server named Guest1 and the secondary replica was a server named Guest2:

But after exchanging the roles (Guest1 now is the secondary and Guest2 is the primary) the maintenance plan being run on Guest1 now generates the error that even does not show up in the SQL log - the only evidence of this error is the 12291 event in the Windows Application log, which does not tell much of what's caused the error:

Q1: Given that each SQL server has its own maintenance plan containing a backup job to be run on a secondary replica must I do anything to make a backup job continue to run on a new secondary replica or this must happen automatically?

Q2: What should I check to find out the cause of the error?

Thank you in advance,

Michael



msdb

$
0
0

I think log shipping information is stored in msdb.

likewise mirroring/replication configuration information is also stored in msdb?

appreciate the feedback.

maxdop

$
0
0

is the configurable value for MAXDOP directly related to the number of processors on the machine or the number we want used for SQL Server processing?

if I have 6 CPUs on the host and I want to use 5 for SQL Server processing, should MAXDOP be set to 5?

btw in a thread I had started about SQL Server configuration, one of the posters had mentioned that MAXDOP be set to 50. any reasons for this value?

appreciate the feedback.


drive allocation

$
0
0

how are drives allocated in your production environment for sql server binaries, data files, log files, tempdb, mirroring/replication data files etc.

appreciate the insights.

Reinitializing only new tables in transactional replication

$
0
0

Hi,

I have to add  one new table to an  existing replication. I created  table and added that table to the replication as well.Now I want to reinitialize only the new table rather than all the tables. Please anybody help

DPM Server System State and Bare MEtal using SqlServerWriter

$
0
0

HI All,

Having issuing with bare metal backups of a DPM server and was hoping to get some help.

I have a DPM 2010 Server running on server 2008 r2. SQL databases are hosted locally on a non system drive (e)

 

When I run Windows Server Backup locally on the box to do a bare metal backup (it selects c and d drives along with system state) the backup fails.

 

vssadmin lsit writers shows the following after the backup fails;

 

Writer name: 'SqlServerWriter'
   Writer Id: {a65faa63-5ea8-4ebc-9dbd-a0c4db26912a}
   Writer Instance Id: {9a1fdd12-d702-4ffc-914d-4361259cc55f}
   State: [8] Failed
   Last error: Inconsistent shadow copy

 

Application log shows this;

 

The backup operation that started at '‎2014‎-‎07‎-‎09T08:30:54.453000000Z' has failed because the Volume Shadow Copy Service operation to create a shadow copy of the volumes being backed up failed with following error code '2155348129'. Please review the event details for a solution, and then rerun the backup operation once the issue is resolved.

The backup log shows exactly the same error as above.

When I stop the SQL Server VSS Writer service and run the backup it runs just fine, however then my database backup on this server fails.

The C drive partition is marked as active.

Any ideas as to why bare metal backup is using the SQL writer and failing. Is there any way to specify what writer to use?

Thank in advance.

 

Can not access network share using sql agent jobs

$
0
0
Am trying to access the network share using the batch file in Sql agent jobs, my command is

net use j: /Delete &  net use J: \\server_name\Share_name <Password> <Domain/username> /persistent:Yes

I can sucessfully run the above batch file when I run it mannully as administrator, when I include in a job it get sucess but connection not established. am getting the below message,

Executed as user: XXX . C:\Windows\system32>net use j: /Delete   & net use J: \\server_name\Share_name <Password> <Domain/username> /persistent:Yes  The network connection could not be found.    More help is available by typing NET HELPMSG 2250.The command completed successfully.  Process Exit Code 0.  The step succeeded.

Please help me to resolve the issue


Best Regards Moug

i5 versus i7 for development workstation

$
0
0

I'm trying to design a new development workstation that will be used for local SQL Server development some of the time.

The shop goes back and forth between recommending the Intel i5 and i7 processors.  The main difference for my purposes is going to be that while they are both four-core processors, the i7 also supports hyperthreading so it can work as eight cores.

For local development purposes, do I care?  As soon as I'm actually doing development on a remote server, of course it doesn't matter at all.  And my IO configuration is never going to resemble a big corporate SAN - I may have nothing but two local SSDs, actually, so my IO may be better, unless I intentionally buy a slower rotating disk or attach one via USB (pretty wild, isn't this all!?!)  And few companies are likely to want me to have real copies of their 100gb++ databases so the data will never be exactly right, either. 

So I think I've just talked myself into saving $100 and a little electricity by going with the i5!

Anyone disagree?

Thanks,

Josh


Accidentally overwritten a sql database - Recover possible?

$
0
0

Hi there, 

My wife uses a piece of software called salon Iris.

It uses an SQL database to store client info etc.

She accidentally overwrite her original database with a 'practice template' of clients.

This has overwritten her original.

I have no back up.

Can anyone help?

Thanks

issue regarding schema and SP

$
0
0

Hello All,

One of our client have issue related to schema and Stored procedure.

on a database, when we check the stored procedure by using (select * from sys.procedures where name='logout') it gives 2 rows with 2 different schema id , 1 and 36.

But when we run (select * from sys.schemas where schema_id = 36),  it given no result.

also when we tried to expand the stored procedure tab under programmability it gives below error.

A severe error occurred on the current command. The results, if any, should be discarded.
A severe error occurred on the current command. The results, if any, should be discarded. (Microsoft SQL Server, Error: 0)

We have SQL server 2008R2 with SP3.

We have run the integrity check but no error also restarted the server but the problem still persist.

Can someone please assist me on this.

Trying to move VS 2008 projects from XP to Windows 7 - database problem

$
0
0

I built new computer with windows 7 professional. Have VS 2008 Professional Edition. I had built a website on the old computer (Win. XP) with a database. Not sure if I used the included SQL Server 2005 developer disc or the 2005 express when I built it. Its been working since 2010.

Now that I've copied it all to new machine (Win 7 professional) , i've had various problems. New machine (with new intel processor and Asus MB programs installed among other things SQL Server 2008 and 2008 R2 which was needed for its programs. 

But when i copies my Visual Studio files, I installed 2005 SQL server express with the Visual Studio 2008 (which is what comes with it). (I didn't install the separate  SQL server 2005 developer disk)  I then had to search and figure out how to get SQL Server Mgt Studio Express to install and finally accomplished that using c: prompt & adminstrator rights. (I downloaded "SQLServer2005_SSMSEE_x64.msi" )

Now, that I have VS finding my project file (another issue I had to resolve), it won't connect to my database. (Again, not sure which version I used to create that database since I had two versions, the sql 2005 express and SQL Server 2005 developer edition. )

The error message I am getting is: " The database '' ..." cannot be opened because it is version 655. This server supports version 612 and earlier. A downgrade path is not supported. 

What is the simplest way to fix this?

Thanks,


How to reduce Database size ?

$
0
0

Hi,

I have a large database and I can remove almost half of the data. but i don't know how to reduce the size after the deleting Should i drop the tables and re create them or what ?

please help.

Thanks.

Msg 1088, Level 16, State 9, Line 1 Cannot find the object "sys.syscommittab" because it does not exist or you do not have permissions.

$
0
0

When I am rebuilding indexes/defrag on our production database. SQL serve is throwing below error. It's SQL Server 2008 EE. 

Any idea what could be causing this error?

Msg 1088, Level 16, State 9, Line 1

Cannot find the object "sys.syscommittab" because it does not exist or you do not have permissions.

Thanks,

Sree

Viewing all 12963 articles
Browse latest View live


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