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

understanding parallelism and high cpu

$
0
0

Hi Everyone,

I was just doing a readup upon high cpu and CXPACKET wait/parallelism.

One thing, which is over my reach is below statement.

"worker time is greater than its elapsed time is a great indication of parallelism"

Can anyone please explain an example how could it be possible cpu> total elapsed time. How this is possible? Again i am just learner and I wanted to know who this can happen in real time?

Looking for brief explanation on this.

Thanks in Advance.


DBCC CHECKDB (master): error 2570 in sys.sysbinobjs

$
0
0

Dear experts,

After running the DBCC checkdb against master databas with DATA_PURITY argument, we recieved the error 2570 in sys.sysbinobjs. The complete output is the below (it's in spanish but you'll get it):

Command: DBCC CHECKDB ([master]) WITH NO_INFOMSGS, ALL_ERRORMSGS, DATA_PURITY

Mensaje 2570, Nivel 16, Estado 2, Servidor CRM-S, L¡nea 1P gina (1:354), zona 28 en el id. de objeto 58, id. de ¡ndice 1, id. de partici¢n 281474980511744, id. de unidad de asignaci¢n 281474980511744 (tipo "In-row data"). El valor de la columna "name" est  fuera del intervalo del tipo de datos "nvarchar". Actualice la columna de forma que contenga un valor v lido.CHECKDB detect¢ 0 errores de asignaci¢n y 1 errores de coherencia en la tabla 'sys.sysbinobjs'. (id. de objeto 58).CHECKDB detect¢ 0 errores de asignaci¢n y 1 errores de coherencia en la base de datos 'master'.

Then, I followed the instructions in this KB article and checked the data with a DAC connection. The real problem is that the suggested solution is to update the row with a valid value, but the object is a system catalog. Unfortunately, we discovered the problem too late and our master db backups were already corrupts.

I don't think this is a crucial problem for our system, we don't even use Service Broker, but of course I'd like to have it fixed. The current SQL version is 10.50.2550 (SQL 2008 R2 SP1 with Microsoft Security Bulletin MS12-070). Maybe applying SP2 will fix the problem but I really don't feel comfortable running a patch upgrade with problems in master db.

Any help will be really appreciated.

Cheers,

Javier.

How to use trigger to create SQL Agent job on secondary replica server from primary server in Always On High availability environment?

$
0
0

I have 2 Boxes Server A and Server B.

I have setup always on high availability between these servers.

Server A is primary and Server B is secondary.

I want to set up a process like if I create sql agent job on primary, it will create the same job on secondary as well.

does anyone has any process or ideas?

Thanks in advance for your help.

Regards,

Nik


Regards, Naman

clustering request ques

$
0
0

HI,

in my clustering setup quorum and msdtc are locating one node and disks are locating in another node,

here clustering working or not?


Strange behavior of select query; it doesnot return rows whereas table has data

$
0
0

the following select query returns:
Select * from sales where CustLastname ='Smith'

Dave    Smith
John    Smith
Marry    Smith
........ Lets say large out put of million rows. The output has other columns too, not specifying them for simplicity.



The following select query on the same table doesnot return any output:


Select * from sales where CustFirstname ='Dave'
---- Now rows returned -----

Whereas when I modify the query a little bit like:
Select * from sales where CustFirstname ='Dave' + CHAR(0)

It returns the rows
Dave    Smith
Dave    Wells
....


Other facts about the issue:
1.    Initially, I thought this is a corruption issue so performed a dbcc with and without dataloss
2.    I even restored the database from production to the QA environment and still the same issue.
3.    This behaviour is only with the column CustFirstname, queries on other columns work perfectly.
4.    Tried to execute the query with sqlcmd with output to a file, same issue.
5.    the table has a single collation. This columns has the same collation as the other columns in the table.
6.    I tried to copy the output of the table in to a new table using select * into but the new table also has the same issue.
7.    I tried to even drop the clustered index on the table which was coming as the only index being scanned for the output of the query.

I have already spend over 5-6 overs to understand what can be the reason behing this issue but no success till now.
I feel I can fix this issue by creating a new table first and then use the insert into caluse to copy all data but I need to understand what is the root cause of this issue.


SQL Server Target Memory

$
0
0

Hi All

I have few SQL 2008 R2 32bits on Server 2008 32bits, I leave all the min and max memory setting to default ( i know it's a bad practise). I start up all the sql servers and check their target memory... and found that all in different values..

how could this happened?Will it affect the performance ?Some server has physical 2GB and some has 4GB memory 

Estimated Time to for Backup

$
0
0

Dear All,

I got a task to take a backup of a database which is 400GB.

Before that i need to provide estimated time.

I know it depends on how the server is responding.

Server config 256GB RAM n 24COre processor

Can any one tell me the estimated time.


How to free space after truncating a table?

$
0
0

Hi all,

I have a question about freeing space in SQL server.

After I trucate a table in the db using truncate table statement, I did not get any free space. I also try to shrink db using GUI but also did not get any space...

Can anyone advise?


----> Kinect

Log shipping Copy Job hangs

$
0
0

Hi,

I have several DBs on 2008 R2 log shipped to DR server. Quite often Copy Job for some DBs can run for days (I assume hangs as normally it completes within minutes). Restart of the Job does not always help. Last message in the Job history is "Coping log backup file to temporary work file". I can see that *.wrk file in the destination folder but the Job does not progress further. 

Thank you in advance for any troubleshooting suggestions or root cause.


how to change database recovery mode from standby to with recovery

$
0
0

Hi,

how to change database recovery mode from standby to with recovery

Percentage of backup is processed till time query...

$
0
0

We have a huge size of database...

How to know the percentage of backup is processed till time when backup is processing of that database ??

operating system error 27(failed to retrieve text for this error. reason: 15105) encountered

$
0
0

Hi All,

Operating system error 27(failed to retrieve text for this error. reason: 15105) encountered

Event id: 17053   Source: MSSQLSERVER

and i got same error when try to backup or change size of files for one Database..


Regards, Ibrahim Hamdy

Sql server error log

$
0
0

hi ,

if any chances to delete the sql server error log information,

(xp_readerrorlog) information... 

how to change database recovery mode from standby to with recovery

$
0
0

Hi,

Dear team

how to change database recovery mode from standby to with recovery currently my databse in Standby / Read_only mode.

Kindly provide solucation on urgent basis.

Database size

$
0
0

Hi,

I want to find the database size and the space reserved for database. I want to check the overall space allocated to database including current database size and space reserved.

Regards


What is the data stream type for SQL VDI backup.

$
0
0

HI 

Can any body tell me ,What is the data stream type used for SQL VDI backup ?

I also wanted to know if the tape format is a MTF format ?

Is the VDI stream also contains Volume,folder and file descriptor blocks for data base backup ?if yes what are these values for SQL server.

Thanks

Arun

SQL 2008 R2 to SQL Server 2008 degrade passible

$
0
0
Can I install SQL 2008 on SQL 2008 R2 server as   I need 2008 only.  There is no data in the system

Constraint for column

$
0
0

Hi All,

I have many columns in my table with numeric datatype(5,2). how can i add constraint for all columns for not exceeding the size 5.

Thanks,

Venkat.

SqlServer 2012 available wait data

$
0
0

Under Sybase, you can query the MDA table monProcessWaits (actually a pseudo table mapped to output from a stored procedure) for cumulative waits and types per spid. So I can query this table every 5 seconds,  for example, and calculate by subtracting current waits from previous waits and current time waited minus previous time waited how long a given spid waited in the period, the type of waits and wait time for each type. This is a powerful capability especially when the wait data can be correlated with other events that have occurred such as slow stored procedures.

The same capability does not seem to exist in Sql Server. The closest thing seems to be sys.dm_os_waiting_tasks which gives you spids that are waiting at a point in time, what they are waiting for, how long they've been waiting, etc. Am I missing anything?

If I were to run sys.dm_os_waiting_tasks every 3 seconds against an Sql Server database from a connected node would I be putting any significant load on the Sql Server instance?

Avg. Disk Queue Length

$
0
0

Hi techies, I want your expert comments on the below out put of Avg. Disk Queue Length counter of a server.

MachineName Date Average Minimum Maximum
servername8/2/2013 3:39000
servername9/4/2013 9:011121.75611805039.136279
servername9/4/2013 9:021774.18793705390.97306
servername9/4/2013 9:061588.5293460.0039065176406.338763
servername9/4/2013 9:10167.73224440.003493427649.7818135
servername9/4/2013 9:111107.6406450.000166664941.020105
servername9/4/2013 9:14244.65070730.0025532351135.337003
servername9/4/2013 9:161117.17760.0026467374980.081515
servername9/4/2013 9:211108.0433440.0025934035207.054463
servername9/4/2013 9:221040.7829210.0024465735124.382717
servername9/4/2013 9:239.456722690.00104662633.6021774
servername9/4/2013 9:24119.03352170.001446705729.853147
servername9/4/2013 9:25203.92719350.006779741102.242387
servername9/4/2013 9:261221.7008450.0023400625348.74248
servername9/4/2013 9:271867.810990.0010600286469.5524
servername9/4/2013 9:29179.022856501361.835603
servername9/4/2013 9:3011.12465055094.65123206
servername9/4/2013 9:35398.1327130.0311474991712.072576
servername9/4/2013 9:371340.0389440.0018333825053.418495
servername9/4/2013 9:38221.00524310.0255523521125.273332
servername9/4/2013 9:471970.1671220.0027532286274.132
servername9/4/2013 9:48653.67081490.0287674354496.39807
servername9/4/2013 9:49190.60937880.0012533671333.465446
servername9/4/2013 9:5014.604054360.001353281162.3933974
servername9/4/2013 9:522050.4248090.0046134576690.460893
servername9/4/2013 9:550.5758217540.0010533613.029700913
servername9/4/2013 9:561108.51494505055.222259
servername9/4/2013 9:5872.114326540285.5356821
servername9/4/2013 10:00205.10333320.000380011454.974686
servername9/4/2013 10:04478.108719901825.43821
servername9/4/2013 10:07173.44104170.00276656565.6301265
servername9/4/2013 10:08176.3991450.001173365546.8135302
servername9/4/2013 10:09175.45453070566.7795835
servername9/4/2013 10:10172.98180210.00412011618.3621482
servername9/4/2013 10:15194.77715290.001020027721.4163133
servername9/4/2013 10:16202.27896150.005200139718.7188946
servername9/4/2013 10:20180.02894680.019712576595.507044
servername9/4/2013 10:21115.68391240.004433452452.0425616
servername9/4/2013 10:22104.85189740.002080056711.9677676
servername9/4/2013 10:2493.896954580.008493007494.2756131
servername9/4/2013 10:25162.66928070.025174006742.361386
servername9/4/2013 10:271822.87971105746.61389
servername9/4/2013 10:28340.583593802587.021812
servername9/4/2013 10:30368.44702810.0001466711739.049251
servername9/4/2013 10:321795.20756806643.753873
servername9/4/2013 10:34394.90722880.0362409681416.762777
servername9/4/2013 10:361456.3326680.0073201956748.228723
servername9/4/2013 10:371956.6672150.0044731626690.263668
servername9/4/2013 10:3999.372476570.00200659522.9206921
servername9/4/2013 10:411310.5734560.0040134416509.934172
servername9/4/2013 10:421619.2136910.0057597796582.133399
servername9/4/2013 10:472007.2499540.0052064676629.383452
servername9/4/2013 10:48886.39296950.0280407496006.594107
servername9/4/2013 10:49292.70393930.0093396411395.733315
servername9/4/2013 10:511347.9216220.0075868696499.4756
servername9/4/2013 10:521903.3587590.0032600876339.065273
servername9/4/2013 10:53481.19478240.0259406932607.234824
servername9/4/2013 10:558.6570580180.00080002149.07806404
servername9/4/2013 10:561162.52416505234.356386
servername9/4/2013 10:58206.705356301709.626145

Viewing all 15889 articles
Browse latest View live


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