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

Diskspd and application database design decisions

$
0
0

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?


checkdb

$
0
0

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




database performance degradation

$
0
0

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

SQL server/Report server - ( services ) NT Service\MSSQLSERVER vs Network Service

$
0
0

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  


Backup plan of sql server database

$
0
0

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

How can i schedule the database backup to different location (Another Server)

$
0
0

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

Create Database in Azure Blob Storage Error

$
0
0

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 12
CREATE DATABASE failed. Some file names listed could not be created. Check related errors.
Msg 5159, Level 24, State 5, Line 12
Operating system error (null) on file "https://<storage_account_name>.blob.core.windows.net/data/testdb_log.ldf" during MakePreviousWritesDurable.
Msg 596, Level 21, State 1, Line 11
Cannot continue the execution because the session is in the kill state.
Msg 0, Level 20, State 0, Line 11
A severe error occurred on the current command.  The results, if any, should be discarded.

I 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.

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. (

$
0
0

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: 53)

A network-related or instance-specific error occurred

$
0
0

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: 53)

Query on SQL Server 2017 Always-On

$
0
0
Hi All,

DC1: (servers are in WSFC)
DB_Server1
DB_Server2

DC2:
DB_Server3

DC1 and DC2 servers are located in different geo locations. Is it possible to configure SQL 2017 Always-On/SQL 2017 Distributed Always-On in above environmnet? 
As per my understanding, the servers should be in WSFC, but DC2 DB server is not in cluster, its standalone machine. If it's not possible to configure SQL always-On in above env, please suggest which SQL HA/DR solution i can use...

How to find cpu & max mem setting on sql azure single database

$
0
0

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:

https://techcommunity.microsoft.com/t5/DataCAT/CPU-and-Memory-Allocation-on-Azure-SQL-Database-Managed-Instance/ba-p/305508

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

script for changing filegroup in partition schema

$
0
0

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])
GO

Schema.TableIndex IDStructureIndexRowsIn-Row GBLOB GBPartition #Partition FunctionBoundary TypeBoundary PointFilegroupNeed to Change this 
dbo.BigTable1CLUSTEREDPK_BigTable2151710.0304641720100pf_EventDataLeft / UpperNULLBigTable_DEFAULTBigTable_DEFAULT
dbo.BigTable1CLUSTEREDPK_BigTable166190.002388099pf_EventDataLeft / Upper1/1/2029 0:00BigTable_DEFAULTBigTable_2029
dbo.BigTable1CLUSTEREDPK_BigTable00098pf_EventDataLeft / Upper1/1/2021 0:00BigTable_DEFAULTBigTable_2012
dbo.BigTable1CLUSTEREDPK_BigTable00097pf_EventDataLeft / Upper12/1/2020 0:00BigTable_DEFAULTBigTable_2011
dbo.BigTable1CLUSTEREDPK_BigTable00096pf_EventDataLeft / Upper11/1/2020 0:00BigTable_DEFAULTBigTable_2010
dbo.BigTable1CLUSTEREDPK_BigTable00095pf_EventDataLeft / Upper10/1/2020 0:00BigTable2008BigTable_2009
dbo.BigTable1CLUSTEREDPK_BigTable00094pf_EventDataLeft / Upper9/1/2020 0:00BigTable_DEFAULTBigTable_2008
dbo.BigTable1CLUSTEREDPK_BigTable00093pf_EventDataLeft / Upper8/1/2020 0:00BigTable_DEFAULTBigTable_2007
dbo.BigTable1CLUSTEREDPK_BigTable00092pf_EventDataLeft / Upper7/1/2020 0:00BigTable_DEFAULTBigTable_2006
dbo.BigTable1CLUSTEREDPK_BigTable00091pf_EventDataLeft / Upper6/1/2020 0:00BigTable_DEFAULTBigTable_2005
dbo.BigTable1CLUSTEREDPK_BigTable00090pf_EventDataLeft / Upper5/1/2020 0:00BigTable_DEFAULTBigTable_2004
dbo.BigTable1CLUSTEREDPK_BigTable00089pf_EventDataLeft / Upper4/1/2020 0:00BigTable_DEFAULTBigTable_2003
dbo.BigTable1CLUSTEREDPK_BigTable00088pf_EventDataLeft / Upper3/1/2020 0:00BigTable_DEFAULTBigTable_2002
dbo.BigTable1CLUSTEREDPK_BigTable00087pf_EventDataLeft / Upper2/1/2020 0:00BigTable_DEFAULTBigTable_2001
dbo.BigTable1CLUSTEREDPK_BigTable50000380.3596039086pf_EventDataLeft / Upper1/1/2020 0:00BigTable1912
dbo.BigTable1CLUSTEREDPK_BigTable20000396.7081375085pf_EventDataLeft / Upper12/1/2019 0:00BigTable1911

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])
GO

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

problem Report rdlc with sql localdb

$
0
0

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 invoking 
just-in-time (JIT) debugging instead of this dialog box.


************** Exception Text **************
System.Data.SqlClient.SqlException (0x80131904): 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) ---> System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean withFailover)
   at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover)
   at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout)
   at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance)
   at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions)
   at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
   at System.Data.SqlClient.SqlConnection.Open()
   at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)
   at Gestion_Butcher.ButcherDBDataSetTableAdapters.GetClientTableAdapter.Fill(GetClientDataTable dataTable, Nullable`1 id) in E:\project c#\Gestion_Butcher\Gestion_Butcher\Gestion_Butcher\ButcherDBDataSet.Designer.cs:line 17463
   at Gestion_Butcher.view.FormClient.Form1_Load(Object sender, EventArgs e) in E:\project c#\Gestion_Butcher\Gestion_Butcher\Gestion_Butcher\view\FrmClient.cs:line 27
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
ClientConnectionId:00000000-0000-0000-0000-000000000000




************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Gestion_Butcher
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/salim/Desktop/Debug/Gestion_Butcher.exe
----------------------------------------
PresentationFramework
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.dll
----------------------------------------
WindowsBase
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
PresentationCore
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll
----------------------------------------
System.Xaml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll
----------------------------------------
ToastNotifications.Messages
    Assembly Version: 2.2.5.0
    Win32 Version: 2.2.5.0
    CodeBase: file:///C:/Users/salim/Desktop/Debug/ToastNotifications.Messages.DLL
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
MahApps.Metro
    Assembly Version: 1.2.4.0
    Win32 Version: 1.2.4.0
    CodeBase: file:///C:/Users/salim/Desktop/Debug/MahApps.Metro.DLL
----------------------------------------
PresentationFramework.Aero
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.Aero/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.Aero.dll
----------------------------------------
MaterialDesignThemes.Wpf
    Assembly Version: 2.4.0.1044
    Win32 Version: 2.4.0.1044
    CodeBase: file:///C:/Users/salim/Desktop/Debug/MaterialDesignThemes.Wpf.DLL
----------------------------------------
MaterialDesignColors
    Assembly Version: 1.1.3.0
    Win32 Version: 1.1.3
    CodeBase: file:///C:/Users/salim/Desktop/Debug/MaterialDesignColors.DLL
----------------------------------------
Dragablz
    Assembly Version: 0.0.3.203
    Win32 Version: 0.0.3.203
    CodeBase: file:///C:/Users/salim/Desktop/Debug/Dragablz.DLL
----------------------------------------
MaterialDesignThemes.MahApps
    Assembly Version: 0.0.11.0
    Win32 Version: 0.0.11
    CodeBase: file:///C:/Users/salim/Desktop/Debug/MaterialDesignThemes.MahApps.DLL
----------------------------------------
ToastNotifications
    Assembly Version: 2.2.5.0
    Win32 Version: 2.2.5.0
    CodeBase: file:///C:/Users/salim/Desktop/Debug/ToastNotifications.DLL
----------------------------------------
HamburgerMenu
    Assembly Version: 0.1.0.0
    Win32 Version: 0.1.0.0
    CodeBase: file:///C:/Users/salim/Desktop/Debug/HamburgerMenu.DLL
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Windows.Interactivity
    Assembly Version: 4.5.0.0
    Win32 Version: 3.0.40218.0
    CodeBase: file:///C:/Users/salim/Desktop/Debug/System.Windows.Interactivity.DLL
----------------------------------------
PresentationFramework-SystemXml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework-SystemXml/v4.0_4.0.0.0__b77a5c561934e089/PresentationFramework-SystemXml.dll
----------------------------------------
Xceed.Wpf.Toolkit
    Assembly Version: 3.3.0.0
    Win32 Version: 3.3.0.0
    CodeBase: file:///C:/Users/salim/Desktop/Debug/Xceed.Wpf.Toolkit.DLL
----------------------------------------
UIAutomationTypes
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/UIAutomationTypes/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationTypes.dll
----------------------------------------
System.Data
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Management
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
System.Transactions
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
System.Numerics
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
PresentationFramework-SystemData
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework-SystemData/v4.0_4.0.0.0__b77a5c561934e089/PresentationFramework-SystemData.dll
----------------------------------------
UIAutomationProvider
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/UIAutomationProvider/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationProvider.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Microsoft.ReportViewer.WinForms
    Assembly Version: 14.0.0.0
    Win32 Version: 14.0.1016.229
    CodeBase: file:///C:/Users/salim/Desktop/Debug/Microsoft.ReportViewer.WinForms.DLL
----------------------------------------
System.Data.DataSetExtensions
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.DataSetExtensions/v4.0_4.0.0.0__b77a5c561934e089/System.Data.DataSetExtensions.dll
----------------------------------------
Microsoft.ReportViewer.Common
    Assembly Version: 14.0.0.0
    Win32 Version: 14.0.1016.229
    CodeBase: file:///C:/Users/salim/Desktop/Debug/Microsoft.ReportViewer.Common.DLL
----------------------------------------
Microsoft.SqlServer.Types
    Assembly Version: 14.0.0.0
    Win32 Version: 2017.0140.1000.169 ((SQLServer).170822-2340)
    CodeBase: file:///C:/Users/salim/Desktop/Debug/Microsoft.SqlServer.Types.DLL
----------------------------------------
Microsoft.ReportViewer.ProcessingObjectModel
    Assembly Version: 14.0.0.0
    Win32 Version: 14.0.1016.229
    CodeBase: file:///C:/Users/salim/Desktop/Debug/Microsoft.ReportViewer.ProcessingObjectModel.DLL
----------------------------------------


************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.


For example:


<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>


When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

DBCC skipping one database during integrity check

$
0
0

Hi,

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 changed Agent XPs to 0?

$
0
0

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


diagnostic setting to collect platform logs and metrics in Azure pricing details

$
0
0

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.





CDC not working on SQL SERVER 2019

$
0
0

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)

Question on "DacFramework.msi" installer decoupling in SQL Server 2019

$
0
0

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.

  1. How to directly install the mentioned installer in Program Files (x86) not Program Files folder ?
  2. Is there any other installer for mentioned msi for x86 ?

Sound bit silly but it's better to ask rather than reinventing something which is already there.

Thank you !!


SQL Server 2014 Std , Without execting all lines in the Procedure getting exit some times .

$
0
0

 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

In SSMS “SQL Server Agent” sub folders are appearing twice

$
0
0

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)

Viewing all 12963 articles
Browse latest View live


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