I am curious to learn what design decision in SQL Server database design, that one should take after you understand disk subsystem capabilities using DiskSpd.
Any pointers to share?
I am curious to learn what design decision in SQL Server database design, that one should take after you understand disk subsystem capabilities using DiskSpd.
Any pointers to share?
Hello,
I have a SQL Server 2012 which is around 11TB. The checkdb takes around 80 hours.
Can I restore the backup of this SQL Server 2012 instance on a SQL Server 2016 instance and run the checkdb, since i can use maxdop in SQL Server 2016 and the checkdb completes in very less time like 15 hours instead.?
Thanks
bilal
On 20/11 starting from 8:00 A.M the application got "Timeout expired" error messages.
We noticed database performance degradation.
The DB was up, accepting connections but most of the queries (on different tables) were running very slow. (e.g: 3 minutes instead of several seconds)
During this time, the CPU was less than 40%, memory was stable ~ 85%.
There were no locks, nor load on the database.
The problem was solved after restarting the SQL Service.
No error messages detected in the Cluster, the virtual host, SQL logs and in the server event viewer.
Please guide us how can we find the root cause of the problem,
how to avoid it, and what else can we check if we hit the same problem again.
Configuration
==========
WIndows cluster on hyper-V
OS Name: Microsoft Windows Server 2016 Standard
OS Version: 10.0.14393 N/A Build 14393
Each cluster server has 16 CPU, 64G Ram
SQL Server version: Microsoft SQL Server 2017 (RTM-CU11) – 14.0.3038.14
Kiran
hi,
we have two servers , one run on NT Service\MSSQLSERVER & another one is Network Service .
can you explain this difference.
NT Service\MSSQLSERVER VS Network Service
Hi,
I have few databases and i want to backup them on daily basis.
I want to make it schedule everyday at midnight 12 AM.
I am planning to take a differential backup as it takes only updated changes.
But i want first time as full backup and from the next time it only takes changes in everyday basis.
How can I setup this.Please let me know
Does differential backup first time takes full backup or not ?
Ram
HI Team,
I want to take the database backup everyday but which needs to stored in another server.
How can I do that ?
Please help....!!
Ram
SQL Server Version: 2019 (15.0.2070.41)
OS Version: Ubuntu: 16.04
Followed instructions to create:
- Azure Storage account
- Storage Account Container
- Access Policy/Permissions
- Generated Shared Access Signature (SAS)
When attempting to create database receive the following error:
Msg 1802, Level 16, State 4, Line 12I receive this error through SSMS and SQLCMD directly on the Ubuntu server.
Note: I am able to backup my a DB to this newly created storage account successfully.
sp_configure (managed instance only in azure), gives the info for max mem setting, I have a 'single database' in azure, how to find its max mem setting:
SELECT
process_memory_limit_mbFROMsys.dm_os_job_object;
does above give the max mem setting?
To find CPU:
SELECT
COUNT(1)ASSchedulerCount
FROM
sys.dm_os_schedulers
WHERE
status='VISIBLE ONLINE';
Are above the best ways to get cpu & max mem info on a azure single database (interested to know if there are any other ways to verify the results from above 2)Thanks
D
Here is the sample partition function and schema. I have included my requirement to change the file group "Need to Change FG"
After merging the partition function and deleting all the RANGE which was mapped wrong below is the partition function.
Partition_Function
CREATE PARTITION FUNCTION [pf_EventData](datetime) AS RANGE LEFT FOR VALUES (N'2012-01-01T00:00:00.000',N'2019-11-01T00:00:00.000', N'2019-12-01T00:00:00.000', N'2020-01-01T00:00:00.000', N'2029-01-01T00:00:00.000')
GO
Partition Schema
CREATE PARTITION SCHEME [ps_EventData] AS PARTITION [pf_RtEvents] TO ([BigTable_Empty], [BigTable1911], [BigTable1912], [BigTable_DEFAULT], [BigTable_DEFAULT], [BigTable_DEFAULT], [BigTable_DEFAULT], [BigTable_DEFAULT], [BigTable_DEFAULT], [BigTable_DEFAULT], [BigTable_DEFAULT], [BigTable2008], [BigTable_DEFAULT], [BigTable_DEFAULT], [BigTable_DEFAULT], [BigTable_DEFAULT], [BigTable_DEFAULT], [BigTable_DEFAULT])Schema.Table | Index ID | Structure | Index | Rows | In-Row GB | LOB GB | Partition # | Partition Function | Boundary Type | Boundary Point | Filegroup | Need to Change this |
dbo.BigTable | 1 | CLUSTERED | PK_BigTable | 215171 | 0.030464172 | 0 | 100 | pf_EventData | Left / Upper | NULL | BigTable_DEFAULT | BigTable_DEFAULT |
dbo.BigTable | 1 | CLUSTERED | PK_BigTable | 16619 | 0.002388 | 0 | 99 | pf_EventData | Left / Upper | 1/1/2029 0:00 | BigTable_DEFAULT | BigTable_2029 |
dbo.BigTable | 1 | CLUSTERED | PK_BigTable | 0 | 0 | 0 | 98 | pf_EventData | Left / Upper | 1/1/2021 0:00 | BigTable_DEFAULT | BigTable_2012 |
dbo.BigTable | 1 | CLUSTERED | PK_BigTable | 0 | 0 | 0 | 97 | pf_EventData | Left / Upper | 12/1/2020 0:00 | BigTable_DEFAULT | BigTable_2011 |
dbo.BigTable | 1 | CLUSTERED | PK_BigTable | 0 | 0 | 0 | 96 | pf_EventData | Left / Upper | 11/1/2020 0:00 | BigTable_DEFAULT | BigTable_2010 |
dbo.BigTable | 1 | CLUSTERED | PK_BigTable | 0 | 0 | 0 | 95 | pf_EventData | Left / Upper | 10/1/2020 0:00 | BigTable2008 | BigTable_2009 |
dbo.BigTable | 1 | CLUSTERED | PK_BigTable | 0 | 0 | 0 | 94 | pf_EventData | Left / Upper | 9/1/2020 0:00 | BigTable_DEFAULT | BigTable_2008 |
dbo.BigTable | 1 | CLUSTERED | PK_BigTable | 0 | 0 | 0 | 93 | pf_EventData | Left / Upper | 8/1/2020 0:00 | BigTable_DEFAULT | BigTable_2007 |
dbo.BigTable | 1 | CLUSTERED | PK_BigTable | 0 | 0 | 0 | 92 | pf_EventData | Left / Upper | 7/1/2020 0:00 | BigTable_DEFAULT | BigTable_2006 |
dbo.BigTable | 1 | CLUSTERED | PK_BigTable | 0 | 0 | 0 | 91 | pf_EventData | Left / Upper | 6/1/2020 0:00 | BigTable_DEFAULT | BigTable_2005 |
dbo.BigTable | 1 | CLUSTERED | PK_BigTable | 0 | 0 | 0 | 90 | pf_EventData | Left / Upper | 5/1/2020 0:00 | BigTable_DEFAULT | BigTable_2004 |
dbo.BigTable | 1 | CLUSTERED | PK_BigTable | 0 | 0 | 0 | 89 | pf_EventData | Left / Upper | 4/1/2020 0:00 | BigTable_DEFAULT | BigTable_2003 |
dbo.BigTable | 1 | CLUSTERED | PK_BigTable | 0 | 0 | 0 | 88 | pf_EventData | Left / Upper | 3/1/2020 0:00 | BigTable_DEFAULT | BigTable_2002 |
dbo.BigTable | 1 | CLUSTERED | PK_BigTable | 0 | 0 | 0 | 87 | pf_EventData | Left / Upper | 2/1/2020 0:00 | BigTable_DEFAULT | BigTable_2001 |
dbo.BigTable | 1 | CLUSTERED | PK_BigTable | 50000 | 380.3596039 | 0 | 86 | pf_EventData | Left / Upper | 1/1/2020 0:00 | BigTable1912 | |
dbo.BigTable | 1 | CLUSTERED | PK_BigTable | 20000 | 396.7081375 | 0 | 85 | pf_EventData | Left / Upper | 12/1/2019 0:00 | BigTable1911 |
Here is what I am expecting
Partition_Function
CREATE PARTITION FUNCTION [pf_EventData](datetime) AS RANGE LEFT FOR VALUES (N'2012-01-01T00:00:00.000',N'2019-11-01T00:00:00.000', N'2019-12-01T00:00:00.000', N'2020-01-01T00:00:00.000', N'2020-02-01T00:00:00.000', N'2020-03-01T00:00:00.000', N'2020-04-01T00:00:00.000',
N'2020-05-01T00:00:00.000', N'2020-06-01T00:00:00.000', N'2020-07-01T00:00:00.000', N'2020-08-01T00:00:00.000', N'2020-09-01T00:00:00.000', N'2020-10-01T00:00:00.000', N'2020-11-01T00:00:00.000', N'2020-12-01T00:00:00.000', N'2021-01-01T00:00:00.000', N'2029-01-01T00:00:00.000')
GO
Partition Schema
CREATE PARTITION SCHEME [ps_EventData] AS PARTITION [pf_RtEvents] TO ([BigTable1911], [BigTable1912], [BigTable2001], [BigTable2002], [BigTable2003], [BigTable2004], [BigTable2005], [BigTable2006], [BigTable2007], [BigTable2008], [BigTable2009], [BigTable2010], [BigTable2011], [BigTable2012], [BigTable_2101], [BigTable_DEFAULT])After removing the RANGE from partition how to modify the partition schema to add the range to another File group instead of BigTable_DEFAULT
Thanks a lot in advance.
Please click "Mark as Answer" if the post solves your problem - Thanks
I took my program at the client and installed it with sql localdb, all things except the reports that show the following error :
See the end of this message for details on invokingHi,
we are running DBCC Integrity command using for user databases and sometime it's skipping one database.
No error message.
last few days, user databases we have 6 DB and DBCC when running every night, one DB not running DBCC integrity check but other databases running so couldn't understand why one DB not checked by DBCC command.
There are no information or any error message in log.
This kind of behavior happens on another server also randomly during nightly backup, one or two DBs getting skipped sometimes and it's not happening everyday but sometimes.
What could change the "Agent XPs" configuration setting to 0 and leave no trace in the default trace or sql error log? Also is there another way to see who/what changed it?
Platform is Microsoft SQL Server 2012 (SP3-CU4)
Chuck
Hi All,
I would like to create diagnostic settings for my azure Sql database. We are using standard pricing tier.
Can you help me with the pricing /cost if i create all available data and selecting MetricBASIC and InstanceAndappadvanced.
1.Deadlocks
2.Blockings
3.Sql insights etc..
Also, would like to explore if we can create any free alerts/adding metric under this pricing.
Kindly help me on this.
I have explored the few Microsoft links and got some information on alerts and notifications .But couldn't able to find a proper information n diagnostic settings.
Thanks in advance.
I cannot make CDC on SQLSERVER 2019 to work and facing follow error:
Job Log File Viewer:
The call to sp_MScdc_capture_job by the Capture Job fordatabase'XXXX' failed.
SQL Server Log File Viewer:
Process 151 generated fatal exception c000000d EXCEPTION_INVALID_CRT_PARAMETER. SQL Server is terminating this process.
SQLSERVER @@version:
Microsoft SQL Server 2019(RTM-GDR)(KB4517790)-15.0.2070.41(X64) Oct 28201919:56:59 Copyright (C)2019 Microsoft Corporation Enterprise Edition (64-bit)on Windows Server 2019 Standard 10.0<X64>(Build 17763:)(Hypervisor)
Hi,
As DacFramework.msi installer is not packed with SQL Server 2019 setup, we have downloadedDacFramework.msi using following link and installed the same. There is another issue.
Dac Framework installer
https://docs.microsoft.com/en-us/sql/tools/sqlpackage-download?view=sql-server-ver15
Looks like above mentioned installer creates DAC folder but its location seems to have changed. Please see following carefully.
SQL Server 2014
C:\Program Files (x86)\Microsoft SQL Server\120\DAC\bin
SQL Server 2019
C:\Program Files\Microsoft SQL Server\150\DAC\bin
Our Installers:
C:\Program Files (x86)\Microsoft SQL Server\150\DAC\bin
We have our installers which searches for SQLPackage.exe in Program Files (x86) but above mentioned installer is installed in Program Files
I had copied C:\Program Files\Microsoft SQL Server\150\DAC to :\Program Files (x86)\Microsoft SQL Server\150\DAC and run the installer. Appreciate if someone shed light in my questions.
Sound bit silly but it's better to ask rather than reinventing something which is already there.
Thank you !!
HI,
We are using MS SQL server 2014 Std. on Win 2012 Std. Srvr .... <o:p></o:p>
Sometimes procedures are not getting executed thoroughly and getting exit in between without raising any errors. We used Begin Trans, rollback and try,catches... Surprisingly nothing works and later some time it works as normal.
but same solution is working in other servers whose OS is Win 2012 R2 and SQL Server 2014 Std. only differance is R2?
does it have this much impact?
thanks and regards,
SIG_SQL
From a month to now I realized that SSMS is showing all subfolders in SQL Server Agent twice.
Anyone got this?
(Still can't post images)