Here's a few of the new posts today on the forums. To see more, visit the forums.
|
SQL Server 2017 - Administration |
Restart SQL server from CMD - We have a issue in SQL Server 2017 (RTM-CU21) with SSISDB when a server restart happens SQL server will go into a stopped state and I cannot restart it from the configuration manager have to run the following command from cmd to start the service Net Start MSSQLSERVER /T902 how can I make this […] |
Replication issue - my table is getting replicated from server 1 to server 2. I got a request to delete the records in table in server 1 and insert new set of records. does replication take care of the records in server 2 or should i do something to make both in sync. |
Missing constraint after backup and restore - Hi we have this procedure to restore a db: On the prod db Generate a script of a db and than click on Tables after that click on advanced in Types of data to script select schema and data. We launch a ps script that use sqlcmd -E -S -Q on the db and than […] |
script d\'olla in azure - hello, how to configure the olla script to backup on Azure Ola Hallengren's maintenance solution i want to make backup database to blob azure thanks |
SQL Server 2017 - Development |
Cannot restore DB using T-SQL script - Hello, I had a database called Training_01 and did a backup of it. It is now in 'C:\Program Files\Microsoft SQL Server\MSSQL14.MSSQLSERVER\MSSQL\Backup\RodierTrainingFood.bak' I did a File liste of it and saw that the logical name was OS_OS_Training_01 so it is a different name than the name of the original database. The goal is to know how […] |
sqlcmd: The size (65535) given to the column 'x' exceeds the maximum allowed - Hello I am trying to copy SQL Server table with varchar(max) to Amazon Redshift. There is no direct connection, I have to save data to file and load data from the file. The maximum length for VARCHAR in Redshift is 65535 bytes SELECT LEFT(CAST('ABC' AS VARCHAR(MAX)), 65535) AS Col; sqlcmd -i "select.sql" -o "out.txt" Msg […] |
SQL Server 2016 - Administration |
SCOM/SCCM alert when Always On High Availability dashboard is green - Hello experts, Does anyone know why SCOM (or is it SCCM?) would send the following alert when everything is OK and green in the Always On High Availability > Show Dashboard? The Metric is: Microsoft.SQLServer.Windows.Monitor.Database.DBStatus (UnitMonitor) https://systemcenter.wiki/?GetElement=Microsoft.SQLServer.Windows.Monitor.Database.DBStatus&Type=UnitMonitor&ManagementPack=Microsoft.SQLServer.Windows.Monitoring&Version=7.0.0.0 MSSQL on Windows: Database is in offline/recovery pending/suspect/emergency state The databases in each AG are also online and […] |
SQL Server 2016 - Development and T-SQL |
Storing File in SQL database - Best option - What do I tell a .net developer is the best approach for storing various file type in a SQL db? PDF, TIF, JPG... |
sql server 2016 performance tuning - I have opportunity to tune below monster query. Is there anything right off the bat you guys think I should change? DECLARE @pDate date SELECT @pDate = '20200910' DECLARE @dt6M date = (SELECT DATEADD(MONTH, -6, @pDate)) DECLARE @dt3M date = (SELECT DATEADD(month, -3, @pDate)) IF OBJECT_ID('tempdb..#tmpMasters0') IS NOT NULL DROP TABLE #tmpMasters0 CREATE TABLE […] |
Administration - SQL Server 2014 |
Migration of Server - We are looking to move the SQL server to different datacenter. Since it's a standalone instance so it can be moved using V2V or other different options. However, the IP address might change after the move? I am thinking changing from configuration manager would be suffice the IP Address Listened by the SQL Server. Do […] |
Transaction log used space - It's a little weird for me. I have a database (AdventureWorks2014; SQL Server 2014) in full recovery model. Executing this script 3 times: declare @i int = 0 declare @date datetime while @i <= 1000 begin set @date = getdate() begin tran update Production.TransactionHistory set TransactionDate = getdate(), ActualCost = @i + TransactionID where TransactionID […] |
SQL Server AMD Patch applied to INTEL Server - I have a situation (not me personally but a client) where SQL Server 2014 SP2 on an INTEL Server has been upgraded to SP3 and then CU4 for SP3, but the patch files were AMD. After this the latest Security Patch was also applied (SQLServer2014-KB4535288-x86.exe) which doesn’t have an infrastructure designation. I would have thought […] |
Development - SQL Server 2014 |
Insert Trigger - Hi All, I have table A that has 2 columns(col 1,col2). I would like a create trigger that collects all duplicate inserts.For example ,when i insert new records that both col 1and col2 exists on Table A ,then insert that record into Table Audit as well. Here what came up with ,but logic is not […] |
Reporting Services |
SSRS and SharePoint - We currently have SSRS 2017 and are looking at adding SharePoint to our environment. The question has come up as to whether we should implement SharePoint with Reporting Services or without and keep our SSRS 2017 separate as it is. I'm just starting out with Reporting Services and have no experience with SharePoint. I'm not […] |
SSRS Query Designer not showing newly added measures - We have recently added new measures to our existing cube (that was originally developed in SSAS 2012 and then we stood up SSAS 2019) in dev and test. When I go into my SSRS project using VS 2015, then the query designer and refresh my connection to SSAS 2019, the measures that were developed in […] |