Quantcast
Channel: SQL Server Manageability forum
Viewing all 1519 articles
Browse latest View live

MDW Data Collection for Server Activity takes too long

$
0
0

I'm using the Microsoft Management Data Warehouse solution on all of my SQL Server 2008 r2 servers. The Server Activity data collection (collection_set_2_noncached_collect_and_upload) set takes 7 seconds to process on one server (good), and 11 minutes to process on another server (bad). Why is the one server taking so long? Step 3 of the SQLAgent job is the one that is taking too much time. I need to run this collector every 5 minutes, which is impossible due to the total time lag.

Collection set 3 takes about a minute on the bad server, vs 7 seconds on the good server as well. Granted, the connection is over a WAN to another datacenter, but a windows file share copy of an 11mb backup file took about 3 seconds, so I don't think it is network speed.

When I go through SSMS - Server - Management - Data Collection - System Data Collection Sets - Server Activity - Properties, and copy the Input parameters, I can run each statement by itself, and each one returns in less than a second.

My server is Windows 2008R2 enterprise, running on a cluster, with an @@version of

Microsoft SQL Server 2008 R2 (SP1) - 10.50.2500.0 (X64)   Jun 17 2011 00:54:03   Copyright (c) Microsoft Corporation  Enterprise Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) 


Tracking data changes in Database

$
0
0

Hi,

I am working on a project where large amounts of data is created and updated on a regular basis. I am using SQL Server 2008 as the database. All is well and the project is working fine. But the client needs all the changes and updates that are done by the users of different departments in tables. I planned of doing it using Triggers, but i think that it will affect the performance of the system. And this data is to be displayed on an asp.net C# web application for the Admin to monitor. Please suggest me what method i should use to achieve the task. 

Thanks and Regards,

Chandra Sekhar T

How much space need to be added for this DBCC snapshot issue?

$
0
0

Run DBCC checkdb against one database.

Job fails because

"A database snapshot cannot be created because it failed to start. [SQLSTATE 42000] (Error 1823) Write to sparse file 'D:\MSSQL\Data\abc.ndf:MSSQL_DBCC17' failed due to lack of disk space. [SQLSTATE 42000] (Error 5128) "

D:\MSSQL\Data\abc.ndf is 119GB and D drive has only 10 MB space left.

It looks that creating snapshot of D:\MSSQL\Data\abc.ndf causes out of disk space issue.

It looks that we need to add more space. But how much more space need to be added to D drive?

SQL Server 2012 Management Studio Crashed when opening the application

$
0
0

Hi,

I had installed SharePoint 2013 with SQL Server 2012 on a single server environment a couple of months ago. Both the tools were working fine. But today morning i found that when opening SQL Server 2012 Management Studio it displays a pop-up message as attached below:



Event Log:

Faulting application name: Ssms.exe, version: 2011.110.3000.0, time stamp: 0x5081c1cd
Faulting module name: Ssms.exe, version: 2011.110.3000.0, time stamp: 0x5081c1cd
Exception code: 0xc0000005
Fault offset: 0x00004b89
Faulting process id: 0x2b0c
Faulting application start time: 0x01cf54780a2efde8
Faulting application path: C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\Ssms.exe
Faulting module path: C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\Ssms.exe
Report Id: 47e02c36-c06b-11e3-946b-00155d040605
Faulting package full name: 
Faulting package-relative application ID: 

Server Details:

  • Windows Server 2012 Standard
  • MS SharePoint 2013
  • MS SQL Server 2012
  • IIS 8.0

If anyone has faced the same problem or has a workaround, please share!

Thanks 

SQL 2014 changed my NTFS permission - default backup directory setup

$
0
0

Hello everybody.

Today I realize that new SQL 2014 changed my existing folder permissions (NTFS). This folder was shared for domain users and had set NTFS permissions for domain users and local administrators.

In setup of SQL I set backup directory to this shared folder and continued with setup. After finisting setup I realize that this folder is not accesible via network. Finally I realized that setup changed permissions - it added his MSSQL$INSTANCENAME account into Security Tab and added all permissions to it. Other permissions was erased!

What the hell MS is wrong with you?

I must retake ownership to this folder and subfolder to fix it.

This is not funny and I think it is a BUG! I think that older SQL servers do not have begavior like this new one 2014.

Maybe it will be helpfully for somebody.

Maybe Microsoft found his lost saying - This is NOT a BUG, it is a FEATURE!

Have a nice day and keep calm.

Jarda Nechvatal

Missing dataset from backup

$
0
0

I am using a Rackspace account and it use MSSQL 2012 (11.0.3000).  I have used my local SSMS to backup the database and the MyLittleBackup application they have which seems to use the standard backup methods to backup. This goes fine and I am able to download the BAK file.

For testing new applications I would like to restore it to my local instance of SQL Express (11.0.3128). (it is a small DB)

From the GUI I select restore database, device, add file... after adding the file the database list is empty.  If I attempt to restore using the online software to the Rackspace database it shows one backup set.

Since I routinely restore full server backups to my local system I assume that is possible or has something changed?

Any suggestions on why I can't restore the backup using my local system?


John J. Hughes II

SQL 2008 export table data as .trc trace file ?

$
0
0
Is there a way in SQL 2008 to go the other way in exporting a table (already captured trace data) into creating a new .trc trace file?  Thanks in advance.

Import Excel Spreadsheet

$
0
0

Using Microsoft SQL Server 2008 R2

Microsoft SQL Server Management Studio		10.50.1600.1
Microsoft Analysis Services Client Tools	10.50.1600.1
Microsoft Data Access Components (MDAC)		3.85.1132
Microsoft MSXML					2.6 3.0 4.0 6.0 
Microsoft Internet Explorer			8.0.6001.18702
Microsoft .NET Framework			2.0.50727.3655
Operating System				5.1.2600


Trying to import Excel spreadsheets to SQL servers

Tried

SELECT *
FROM   OPENROWSET('Microsoft.Jet.OLEDB.4.0',
 'Excel 12.0 Xml;HDR=YES;Database=C:\Documents and Settings\ebrnhg6\My Documents\Excel\ATM_Cash_Outages.xlsx',
       'SELECT * FROM [Cash_Outages.xlsx]')
Get Error
Msg 7308, Level 16, State 1, Line 1
OLE DB provider 'Microsoft.Jet.OLEDB.4.0' cannot be used for distributed queries because the provider is configured to run in single-threaded apartment mode.

and

SELECT *
FROM   OPENROWSET('Microsoft.ACE.OLEDB.12.0',
 'Excel 12.0 Xml;HDR=YES;Database=C:\Documents and Settings\ebrnhg6\My Documents\Excel\ATM_Cash_Outages.xlsx',
       'SELECT * FROM [Cash_Outages.xlsx]')
Get error
Msg 7403, Level 16, State 1, Line 1
The OLE DB provider "Microsoft.ACE.OLEDB.12.0" has not been registered.

Not sure which is the correct one to use or how to fix the error.

Would appreciate any help with this.

Thank you,

John 


CDC

$
0
0

I have a history table which has data from year 1990. I am planning to archive the last 20 years of data. But for archiving I need to collect stats on the data which are still accessed by the end users. Please let me know how to track it. I know we can use Change data capture (CDC) which is used to track of the DML tasks. I am only after select statement which are against the table.

Any suggestions/help ??


-kccrga http://dbatrend.blogspot.com.au/


sql-server-2005-issues

$
0
0

When ever we run query it consume 3.78 GB out of 4 GB RAM. and when we close its management studio no change in resource consumption Can you please let us know do you have any patch to fix it or How to Fix it?

SQL Server 2005 Resource Governor ?

$
0
0

Hello is there a way or method along the lines of Resource Governor within a SQL 2005 instance (am aware that that feature began starting with SQL 2008) ?  (One DB app is over-consuming resources slowing down other DBs residing on same SQL Server.)

Also what are the pros & cons & things to be aware of SQL 2008 & up in using Resource Governor ?  Heard that though it was a good new feature idea that it's not all that cracked up to be.

Thanks in advance.

SQL SERVER AGENT DASHBOARD and Monitoring system

$
0
0

Hi

we are shopping around for a SQL SERVER management system where users that are not familiar with SQL can monitor Jobs and Job steps. Users will be able to see when a job failed and restart the job (if allowed) or call DBAs if needed based on instructions.

does anybody know of such a tool that would help operations peform their job?

thanks

eddy


eddy.a

After installing SP1 SQL Server 2012 Activity monitor gives Access denied

$
0
0

Yesterday I was able to use Activity monitor in 2012 management studio to view Activity on SQL Server 2008 R2. I installed 2012 SP 1 now I get access denied on the SQL Server 2008 R2 Servers that I connect to with domain authentication. Servers connected to with SQL Server authentication still work, SQL Server 2012 SP1 Activity monitor on same computer, and 2005 management studio Activity monitor still works. Other users who have not installed SP1 are still able to run activity monitor through 2012 management studio. Rights on SQL Servers have not changed. I can connect to the servers, and run queries on user tables, just cannot run Activity Monitor. Does not make a difference if I run management studio as administrator, same results.

Environment:

SQL Server 2012 SP1 installed on Windows 7 Sp 1 64bit, accessing SQL Server 2008 R2

Error text:

===================================

The Activity Monitor is unable to execute queries against server ###.###.###.###.
Activity Monitor for this instance will be placed into a paused state.
Use the context menu in the overview pane to resume the Activity Monitor.

===================================

Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) (mscorlib)

------------------------------
Program Location:

at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at System.Management.ManagementScope.InitializeGuts(Object o)
at System.Management.ManagementScope.Initialize()
at Microsoft.SqlServer.Management.ResourceMonitoring.SqlPerfmonProcessReader.get_LogicalCpuCount()
at Microsoft.SqlServer.Management.ResourceMonitoring.SqlPerfmonProcessReader.GetSqlProcessCpuUtilization()
at Microsoft.SqlServer.Management.ResourceMonitoring.BackgroundSqlCpuTask.Execute()
at Microsoft.SqlServer.Management.ResourceMonitoring.BackgroundWorkRequest.Execute()
at Microsoft.SqlServer.Management.ResourceMonitoring.BackgroundWorkRequestQueue.BackgroundWorker_DoWork(Object sender, DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

Send-MailMessage CommandNotFoundException

$
0
0

Hi, I have no issues running the Send-MailMessage on the Windows powershell on the server. However on the SQL powershell or through SQL Agent I get this message: The version is 2.0

SQL powershell :   + FullyQualifiedErrorId : CommandNotFoundException

SQLAgent shows: The term 'Send-MailMessage' is not recognized as the name of a cmdlet, function, script file, or operable program

Thank you


Paula



Printing a table that is inside a gridview row

$
0
0

Hi,

I am working on an application where the data is bound to the gridview using a dataset. I have a small table inside the gridview row that is populated with some data. My requirement is to print the gridview data. I am currently using gridview print and it works like a charm. But I find it impossible to print the table that is inside the row of the gridview. If i can get the exact format, like it is displayed in the gridview, it would be great. Please help me out. Attached is the image of the displayed data. 

Regards,

Chandragridview table row


SQL Server Configuration Manager – Cannot connect to WMI provider – Invalid class [0x80041010]

$
0
0

Getting this Error when i starts SQL sevrer Configuration Manager on SQL server 2008 R2..mof file located in right folder but it didnt nowrk.

Cannot connect to WMI provider. You do not have permission or the server is unreachable. Note that you can only manage SQL Server 2005 and later servers with SQL Server Configuration Manager. Invalid class [0x80041010]

Cannot connect to WMI provider. You do not have permission or the server is unreachable. Note that you can only manage SQL Server 2005 and later servers with SQL Server Configuration Manager. Invalid class [0x80041010]

If any one has solution get back to me here ASAP

Thanks

SQL Web Edition license migration - SPLA

$
0
0

I currently have SQL Server web edition 2008 R2 SPLA lisence, for which I pay to my VPS server provider (hosting company).

I would like to know if I can get the SPLA lisence key from another supplier and use it with the instance which I already have on my machine.

Meaning that I would keep the existing instance and somehow replace the key with the one that I get from the new supplier.

Another question is - currently I have two instances of SQL Server web edition 2008 R2 on the same server, according to my understanding I don't need to pay for the SPLA license twice. Is this correct?

One last question - is there a way in which I can check on how many cores is the SQL Server web edition 2008 R2 running?

Say that I have a Quad-Code server but I bought licese for two cores, how can I verify that the instanace is running on two cores?

Stop Query if it does not match with Condtions & Control the result count

$
0
0

Dear All,

I have requirement in my Environment, I have to stop the Queries which compromises these conditions

1. If Query is running more than specified threshold (if it running more than 2 mins).

2. If Query is fetching huge data (rows more than 1000 for example)

Please note we have done enough study on resource governor, it works on compile time, we need to control the queries during run time. Also resource governor does not restrict the resources if they are free.

Answers are appreciated.


Workflows don't start after backup is performed on the different sql server instance

$
0
0

Hello everyone!

I have a maintenance plan on sql server instance-1 and Workflow manager running on the 2nd instance with sharepoint 2013. The maintenance plan includes only one full backup task of 1st instance.

Everything is ok until I try to run my maintenance plan: then I can't start any workflows in my site collections. There are no errors/warnings in eventlogs. Nothing can help except restore from full server backup.

Any ideas?

How to clear logs for all databases

$
0
0

How to clear db log files for all the databases at a time on SQL Server 2008 R2?

Regards,

Maqsood


Maqsood Mohammed Senior Systems Engineer MCITP-Enterprise Admin & ITILv3 Foundation Certified

Viewing all 1519 articles
Browse latest View live