Getting error for String or binary data would be truncated. The statement has...
I am trying to create SP which will give me fragmentation report in an email in tabular format.please find below code and I am getting error for highlighted part while executing SPCREATE Procedure...
View ArticleData Collection Sets vs Data Collector Sets
SQL Server Management Data Warehouse uses "Data Collection Sets". Windows Performance Monitor uses "Data Collector Sets". Are they the same objects? I.e., are they stored in same data structures? Do...
View ArticleWhat are reasons for wait types listed below, while doing SQL 2016 db restore ?
HI All, BACKUPTHREAD PREEMPTIVE_OS_WRITEFILEGATHER - IFI enabled BACKUPIO ASYNC_IO_COMPLETION And do you think, Virus full scans will be causing these wait types ? please...
View Article" sp_send_dbmail" - SENT_STATUS = UNSENT
Hellomy sp_send_dbmail has stopped working. When I check the tables the message shows as "unsent".I have tried turning off the firewall, re-entering the profile details and re-starting everything, but...
View ArticleCould not connect to SQL Server Management Studio locally when I disabled...
Based on SQL Server hardening, it mentioned that "2.10: Enable only TCP/IP for SQL Server Protocols" and thus i disabled Shared Memory Protocol.Next, I could not connect to SQL Server Management Studio...
View ArticleSessions blocking each other when running queries
I have noticed that sometimes out of maybe 5-6 sessions that are open, two or more of these sessions will always block one another.What I mean is that I will run Update Statistics on any two tables in...
View ArticleAdd Database (SQL Server 2014) to Availability Group Fails in SSMS 17.9
When you add a database to an Availability Group (SQL Server 2014) with the option full database and log backup as your synchronisation preference. The validation gives an error by checking the shared...
View ArticleSQL 2014 ola.hallengren index optimize script tweak?
Hello I downloaded ola.hallengren index optimize script and want to do a test run on just one DB.https://ola.hallengren.com/downloads.html\IndexOptimize.sqlWhere within this script can I tweak to do...
View ArticleFind the source that fired a query
hi ;how can i find the source that fired a query , so ,where is coming query , from studio manager or application .
View ArticleSQL server getting Event ID 10016 every hour
How do I resolve my SQL server getting Event ID 10016 every hour
View ArticleUpdate statistics failed - Could not continue scan with NOLOCK due to data...
Hi guys,One of a maintenance job failed with the below error.Executing the query "UPDATE STATISTICS [dbo].[tbl_****_*****_comments] ..." failed with the following error : "Could not continue scan with...
View ArticleSQL Server Reports IsVirtualMachine = 1 on Physical Server?
SELECT SERVERPROPERTY('Collation') AS [Collation] , SERVERPROPERTY('Edition') AS [Edition] , SERVERPROPERTY('IsClustered') AS [IsClustered] , SERVERPROPERTY('IsSingleUser') AS...
View ArticleSQL Powershell does not seem to connect to DEFAULT Instance
I recently enabled TLS 1.2 on one of the SQL Servers and the syspolicy_purge_history started to fail on the third step which is powershell command with the below error message:-Message Executed as...
View ArticleError:Cannot connect to WMI provider. You do not have permission or the...
I'm getting the below message when i try and access SQL Config Manager on my Windows Server 2003 R2"Cannot connect to WMI provider. You do not have permission or the server is unreachable. Note that...
View ArticleMS SQL SSMS - Choose which DataBases a User is able to see
Hello WorldI need to know how to configurate SQL-User Settings so they can only see their Database when they login in SSMS.I've created 3 Databases and 3 Users (SQL-Users) with Microsoft Server...
View ArticleProblem connecting to sql server database
I'm net developer.My office sql database has moved to new virtual machine to another city a way from my office by data center team.The problem is connecting to the database. At first connection in an...
View ArticleAdding New Log File Shows Limited Free Space
I have run into an issue where the log file growth exceeded the amount of space available on the SQL Server. This was due to the database recovery mode being switched from SIMPLE to BULK-LOGGED....
View ArticleVisual Studio 2017 - Unable to Target SQL Server 2012 in SSIS Project
I recently installed Visual Studio 2017 as well as the SSDT component for BI development. When I tried to update the target server version to SQL Server 2012 for a new SSIS project, I noticed that the...
View ArticleChange MAXDOP settings
Hello, Does changing MAXDOP settings require service or server restart? One of my production servers has got 16logical CPU's and current MAXDOP setting is 4 which I would like to change it to 8? Is...
View ArticleBackup SQL Database to blob storage create 1024GB file
I noticed that during a SQL database backup, a file of 1024 GB is created in the blob storage. At the end of the backup, the space is freed and the .bak file takes its normal size. (140 GB)Is this...
View Article