Here's a few of the new posts today on the forums. To see more, visit the forums. |
SQL Server 2017 - Administration |
SQL Server Vulnerability Assessment for Ransomware review - Hello experts, Does anyone have advice on which, if any, results from the SQL Server Vulnerability Assessment can be used to identify and remediate ransomware risk? https://docs.microsoft.com/en-us/sql/relational-databases/security/sql-vulnerability-assessment?view=sql-server-ver15 Thanks for any help. -- webrunner |
SQL Server 2017 - Development |
Truncate vs Delete for Bulk Removal of (some not all ) records - EDIT : the table is not 1gb its 1tb Hi I have a table with 351,495,000 records (about 1TB in size) . I need to remove a bunch of historical data , approx 219,000,000 records. Which be quicker , a delete based on criteria (int column , biggest value 4 digits) , or […] |
SQL Server 2016 - Administration |
DR test - failover with potential data loss on live server. - Hi All, So I want to test failover to my DR site. My current set up is 2 x replica in site A (synchronous), 1 in site B (async). It's a busy live server. How would you do this? Options I see: Tell client they risk data loss & put them off. Set site A […] |
Cannot create SQL AG Listener - HI i am getting this error when i am creating the listener in my AG Cluster resource of type 'Network Name' in clustered role failed. The error code was '0x52e' ('The user name or password is incorrect.'). |
Restore Database with RECOVER generates new values for identity columns - Hi, We have restored the production backup to a different machine for testing purposes. We found that one of our tables which has auto-increment column marked as "identity" is having different values when compared to Production for the same set of records in the same table. For example, In Production we have a table T1 […] |
SQL Server 2016 - Development and T-SQL |
Query removing NULLs when not chosen to - I have a result set below from this query: SELECT [CALL_ID], [DATE], [TIME], [CAMPAIGN], [CALL_TYPE], [DISPOSITION], [HANDLE_TIME] FROM A2WH..CallLogCommon WHERE [DATE] = '2021-11-05' AND [CAMPAIGN] = 'Chareleston IB' AND [CALL_TYPE] NOT LIKE '3rd%' ORDER BY [DATE] If I change my query to this to get rid of the word 'Test' in my Disposition column my […] |
How to capture particular text from standard column to populate computed column - In SQL Server 2016, While Creating a table I want to populate a computed column that will get a value of E00... or NULL based on the value of the standard title column. So, If the title column contains text E00.. then only the computed column will have the E00.. value else NULL. As shown […] |
Rounding issue after decimal in TSQL - HI All, My query is like below: declare @id numeric(17,2) = '123.456' select @id Output : 123.46 Expected output is : 123.45 Please help me on this query. |
SQL Server 2019 - Administration |
vmware logical drive set up - Installing SQL Server using different drives for data, tran logs, tempdb and backups has obvious advantages on physical servers. Is there any PERFORMANCE advantages on vmware. I am pretty sure whole server is on 1 data store. |
Just got a new DEV server set up How do I load a subset of my production data? - Hi all, The company I'm working for has finally, after a year of me asking, set up a 2019 Standard Edition DEV SQL server for us so we don't do development in prod anymore. We have seven databases (Only two are important) with associated procs, tables, views, etc... that I want to move data from. […] |
Linked server failed - HI, Here is my issue: I have 2 SQL 2019 instances and set up 1 linkded server. It works fine in local (remote to the server), but got the error from my workstation: Msg 18456, Level 14, State 1, Line 28 Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. Domain administrator already setup delegation and […] |
Maintenance Plan excludes the AlwaysON database - Dear Friends, Want to ask if its normal for the Maintenance Plans to exclude the database(s) in Always On availability Group ? I setup one and saw it works this way...Thanks in advance for ur valuable comments. Thanks and Best Regards Arshad |
SQL Server 2019 - Development |
Why is the MS calculation for SQL Server table size not reflect Storage in SSMS - Hi there We have been referring to the following article, in order to work out the size of a table in SQL Server https://docs.microsoft.com/en-us/sql/relational-databases/databases/estimate-the-size-of-a-heap?view=sql-server-ver15 Now summarising the calculation we have the following: Null_Bitmap: 2 + ((Num_Cols + 7) / 8) Fixed_Data_Size: Real (4 Bytes) + DateTime( 6 Bytes) Row […] |
SQL Server Newbies |
Unable to filter data from the query - Hi, As you know I am a newbie and learning myself how to query the database. I am unable to filter the data from the query below. SELECT DISTINCT a.InvoiceDate AS TransactionDate ,SUM(CASE WHEN a.TrnYear = '2022' AND (a.ProductClass NOT IN ( '_FRT%','CXXX')) THEN a.NetSalesValue ELSE 0 END) AS Dailycheck ,a.ProductClass ,a.SalesOrder,ar.Name FROM TrnDetail AS […] |
Reporting Services |
SSRS 2019 Prompts for authentication - I have a new SSRS 2019 installation and when users access the site they are prompted to authenticate. Once they do this, everything works fine. However this didn't happen on our SSRS 2016 estate. How can I get this to just open without prompting? I've tried WindowsNTLM and WindowsNegotiate (SPN has been registered) in the […] |