Here's a few of the new posts today on the forums. To see more, visit the forums.
|
SQL Server 2017 - Administration |
Chance data Capture with AG - Since CDC uses log reader to read the changes from the Log. If the SQL server is configured for AOAG group, I was thinking to enable the CDC on secondary replica instead of primary replica. Would you see any issues with this setup? I am thinking Change data capture are not supported on secondary databases that […] |
TDE- Transparent Data Encryption related question - Hi Experts, Looking for suggestions on TDE encryption. We have a 3TB database in UAT env. Its in 2-node(node-A, node-B) Alwayson AG. SQL Server version is SQL 2017 EE CU22. We turned on TDE encryption node-A. It took more than 12 hours and completed of about 40% encryption. Meanwhile, unexpected failover occured. we brought it […] |
SQL Server 2017 - Development |
Extract data with variable column names and order - Hi guys, Just looking for any good suggestions on how to tackle this problem. I have a table of attributes which are held in very wide sparsely populated table (at least it's not EAV!). For display purposes in the application there is a separate table that defines which columns are being used, their display order […] |
SQL Server 2016 - Development and T-SQL |
Help Transforming TSQL to MSSQL - Hello, I am not great with SQL and the statement I wrote is in TSQL and it is working. I would like this same statement to run in MSSQL, can you please restate it correctly or put me on the right track? It is the With statement that is killing me! I think it needs […] |
Enabling FileStream in AG participated Database - Hi team, I was asked to enable FileStream for one of the existing varbinary(max) column in existing table. It is already participating in Avalability Group where we have 1 primary & 1 secondary server. Now as part of the change, i am doing the below Enable FileStream at instance level by enabling it via SQL […] |
SQL Server 2019 - Administration |
Perf hit for Increasing tran log frequency - we are currently doing a 1 hour tran log backup for a system, I'd like to push that up to 1 minute. Is there a performance hit to be concerned about with doing this? I've gotten some pushback regarding performance and doing tran log backups this frequent. My view is that each hit will be […] |
tlog back up and normal restore back migration - Hi Expert, why there is less down time in tail log backup as compared to the normal backup and restore in migration Shree |
SQL Server Agent Failing After Windows Shutdown - Hi All~ Where I work, we have Azure SQL Server that we are connecting to through SSMS. I have created several SQL Server Agent Jobs, using my own login as a Proxy. These jobs run a VBS Script (using a command line) that uploads data into our db, creates reports, and moves and manipulates files […] |
Database Mail - Times out - Hello All, I have a lovely program called "TreeSize" on my SQL Server that can send an email out via SMTP just fine. I decided to try setting up Database Mail so I can get email alerts when Backups complete, etc. I am following these steps: https://www.mssqltips.com/sqlservertip/1100/setting-up-database-mail-for-sql-server/ Again, my TreeSize Application can send mail no […] |
SQL Server 2019 - Development |
SQL Spatial - find all locations within X distance of a point. - I have a really stupid question, and I'm betting the answer is "Well, what happened when you actually ran the query?", but I'll ask anyway. (Maybe I just need a bigger spatial dataset). Say I have a center point P that's my location. I can do all the "find the distance" stuff just fine using […] |
nested while - CREATE Table TABLEA(N varchar(50),Q int,R int) ALTER PROCEDURE [dbo].[SP](@N varchar(100),@Q int=0,@R int=0) AS BEGIN DECLARE @I int = 1 BEGIN WHILE (@I <= @R) BEGIN WHILE (@I <= @Q) BEGIN INSERT INTO [dbo].[TABLEA] SELECT @N,@Q,@R SET @Q = @Q - 1 END SET @R = @R -1 END END END exec [dbo].[SP] 'NameA',10,2 Current TableA […] |
SSRS 2016 |
Execution Log Clean Up - The task that cleans up out of date execution log entries runs at 0200 every morning. This is not an ideal time for us because we're a 24 hour business and the most important times for are actually overnight. There have recently been complaints raised because SSRS is unavailable for a short period at 0200 […] |
Integration Services |
SIS gets stuck on data flow task loading screen upon opening project - I'd like to start by mentioning that I have searched for this topic, although there are similar solutions out there, I haven't found one specific to my case and others I've tried haven't worked, so I am seeking any help relating to my issue. In SSIS, Anytime I open a project, whether I import it […] |
Anything that is NOT about SQL! |
Searching for PII Data in Teams and Outlook - I've been performing a a Proof-of-Concept within our business, showing how Redgate's various tools can help the company to keep a track of PII data and let us use databases that have PII data as the basis for QA and Dev environments. One of the conversations with our InfoSec people raised a question that they […] |
PostgreSQL |
OLE DB provider "PGNP" for linked server "MyLinkedServer" reported an error - Hi, I am trying to migrate SQL Server databases from 2008 to 2019. My old server has a linked server to PostgreSQL (version 8) I've installed the driver and created the linked server: I've installed the driver and created the linked server: EXEC master.dbo.sp_addlinkedserver @server = N'MyLinkedServer', @srvproduct=N'MyLinkedServer', @provider=N'PGNP', @datasrc=N'N'MyLinkedServer', @provstr=N'PORT=5432;CNV_SPECIAL_FLTVAL=ON;', @catalog=N'MyDB' ... The linked […] |