Transactional log backup script error
We are getting the error as below:Message Executed as user: domain\DBAdmin. sqlmaint.exe failed. [SQLSTATE 42000] (Error 22029). The step failed.The transactional logs are not deleting since Sept...
View ArticleSQLServer 2016 - PolyBase - Exporting Data
All,In PolyBase, can t we append data into the External Table (csv file as the source) with rows from T-SQL?The below example seems to indicate...
View ArticleWhere can I find prepared SQL statements (sp_prepare) in the system...
Environment: SQL Server 2014 on Windows Server 2012 R2.Our application uses hibernate and the jTDS JDBC driver, so we are (by default) getting generated SQL statements coming through as sp_prepare and...
View ArticleAlways On availability groups VS Kubernetes Service
there are two different approach to create HA SQL cluster 1. Windows cluster, then sql always on availability groups, 2. Use kubernetes, such as AKS, then build , Which options is better or what's pro...
View ArticleHigh Disc Latency Issue
Hi,We are experiencing occasional high disc latency and high CPU utilization in the SQL Server and want to know how to check the bottlenecks. we have a graph which describes the high disc latency and...
View ArticleSQLSever 2016 - PolyBase - Datetime data
All,When I query an External Table which has a datetime column why is it giving me an error even though I was able to enter data into it successfully? This table is pointing to Azure Blob Storage. Msg...
View Articledbmail alert code
Hi, I am new to the SQL coding. Need help in configuring the mirroring alert when the db will go to suspect mode. I configured dbmailprofile and succesfully i am able to send the mail through sql...
View ArticleThe failure occurred when executing the command 'sp_cdc_create_change_table'....
I'm trying to enable a table for CDC and get the below error. Enabling CDC did work previously and we have added multiple tables before. Msg 22832, Level 16, State 1, Procedure...
View Articlecheckdb killed/rollback - stuck for 3 days
I have a scenarios whereby a checkdb on an 800GB database was cancelled and 3 days later, there is sessions stuck in "killed/rollback" state.I ran select blocking_session_id, wait_time,wait_type,...
View Articlecheck the time of the restored database for ms sql server 2014
Dear,We want to restore a ms sql database from full database backup and differential backup.Please help to tell me how to confirm the time of restored database. Thanks!
View ArticleSQL Alerts
I am having a requirement to send mail alerts when there is a blocking. And I am planning to use SQL alerts.We have a counter called 'Processes Blocked'. Can it be used to capture blocking details? If...
View ArticleSQL 2016 ENT Edition Database -Lock pages in memory option on VM SQL Server
We are almost running all our production systems in VM and almost all servers are 64 bit , currently we have an Windows Server 2012 R2 VM Server that runs with SQL2016 SP2 ENT Core based edition.OLTP...
View ArticleSQLServer 2019 Polybase - External access operation failed because the...
All,I tried to create an External Data Source against another SQLServer (2016) from a SQLServer 2019 server but I get the below error:<<External access operation failed because the location URI...
View ArticleGetDate() in SQL Server on Linux and UTC
Hi, Is my understanding correct that in SQL Server on Linux we will always get UTC time when running SELECT GetDate()? Can't find any documentation related to this at all. Thanks
View ArticleTotal Server Memory VS Target Server Memory made me crazy.
I often see somebody use the Total Server Memory compare to Target Server Memory to decide whether the SQL Server under memory pressure. a book say:”Total and Target should be almost the same on a...
View ArticleOPENROWSET and csv file
All,The link shows how to create a format file using BCP. This assumes that the data is always extracted from a SQLServer table.We receive lot of csv files from our business partners for which we...
View ArticleSQL Agent Job
Hi All,How can i schedule a SQL job, which should not run on first 6 days of every month.Vinai Kumar Gandla
View Articlerestore ms sql server reportserver database error
Dear,When I restore reportserver database on ms sql server, there is error[database in use].But I checked the service, there is no reportserver service.Please tell me how to restore this special...
View ArticleInstalling CU for SQL 2016
Hi,I need suggestions from you for below requirememnt. we are having two production SQL Servers. Version: SQL 2016Productlevel: SP1Edition: Enterprise, Core based licensing 64 bitProduct version:...
View ArticleAgent job failing with string or binary data truncated, proc runs successful...
have a monthly sql agent job that executes a stored proc and it started failing a month ago with string or binary data would be truncated error. It has been running for years with no issues, no server...
View Article