|
|
|
|
|
|
|
Question of the Day |
Today's question (by Steve Jones - SSC Editor): | |
The Order of Operations | |
What is the result from this code?
SELECT -100.0/-100.0*10.0 | |
Think you know the answer? Click here, and find out if you are right. |
Yesterday's Question of the Day (by Steve Jones - SSC Editor) |
Mail in Azure SQL Database Where can I use Database Mail in Azure SQL Database? Answer: Only in Managed Instances and Instance Pools Explanation: Database Mail is available only in Managed Instance and instant pools. Ref: Azure SQL Database Features - https://docs.microsoft.com/en-us/azure/sql-database/sql-database-features |
Database Pros Who Need Your Help |
Here's a few of the new posts today on the forums. To see more, visit the forums. |
SQL Server 2017 - Administration |
2017 group permissions - I am having weird issue with permissions. I granted a group read write execute to database but the user is still not able to connect to database with the following error "Ther Server principal "User" is not able to access database "Userdatabase"under the current security context. But when I add the user individually the user […] |
Worker Threads Per Session - Morning All, Is it possible to determine how many threads are spawned by a spid in SQL Server 2017. We are running out of threads (every now and then) during load times through the night. I am trying to track down and subsquently prove which particular query is the worst offender? Cheers Alex |
SQL Server 2017 - Development |
XML node queries - All, I'm trying to import XML using t-sql for the first time. I've created the following example to base my questions on: declare @xml xml select @xml=' Person1 Address1 Person2 Addressline1 ' SELECT T.c.value ('id[0]','varchar(255)') AS id, T.c.value ('name[1]','varchar(255)') AS name, T.c.value ('address1[1]','varchar(255)') AS address1 FROM @xml.nodes('/people/person') […] |
How to compare 2 databases to find what objects are out of sync? - Last night, my company tried deploying a large update to almost all tables & sp's to our production database (basically just adding a new field to each table & sp, but the qty of objects updated was pretty massive) but ran into problems because the script we tried to deploy to run all of these […] |
SQL Server 2016 - Administration |
estimated execution plan - I have an SP which is truncating a table and then insert into and selecting again. Now, I am planning to tune this SP. if I decide to view the estimated execution plan then is it a safe action or will it change any data, I know actual execution plan will change. Please let […] |
startup sql in -m error - Wanted to try to startup sql server with a parameter to limit what can connect. Got this from Microsoft site but it says invalid parameter. -m"Microsoft SQL Server Management Studio - Query" |
Administration - SQL Server 2014 |
SSMS Copy Database utiliy - how solid is it & can you rely on it? - Hi If I want to make a 100% accurate copy of a database with nothing missed, triggers, sprocs, indexes, data etc etc copied will SSMS Copy Database do this reliably? i.e. Right click on DB, Tasks, Copy Database.... There are reasons we cant use back up & restore. |
SQL Server 2019 - Development |
Data moth wise - Hi All, I just trying to get data month wise, following is just sample table. I would like to get a result like, only average of one entry month wise, for an year it should be 12 rows. The problem is the table is loading from other sources, it has lot of duplicates and per […] |
Is it acceptable to use the presence of a value in a NULLable column as a flag? - I have a stored procedure that processes rows in a table. The stored procedure is called by an external process (Jitterbit, though I don't believe that is relevant). Occasionally the stored procedure throws an exception which is caught in a TRY CATCH block. My client wants this to work slightly differently; they want the error […] |
Invalid object name OPENJSON - I have an Express edition of SQL 2019 Microsoft SQL Server 2019 (RTM-GDR) (KB4517790) - 15.0.2070.41 (X64) Oct 28 2019 19:56:59 Copyright (C) 2019 Microsoft Corporation Express Edition (64-bit) on Windows 10 Enterprise 10.0 (Build 16299: ) and I have a new DB with compatibility level set to 150. I use SSMS version 18.5 […] |
SQL Server Newbies |
MSSQLSERVER service will not start - Good Morning - I have a SQL Server 2014 that I inherited that I use as backup server. I would like to use it but MSSQLSERVER service will not start. It worked several months ago but it really just sits, neglected, until someone needs it. I cannot log into SSMS to use any of the […] |
Reporting Services |
SSRS report doesn't show some of the non-null data for some reason... - Okay folks... riddle me this one: Why does SSRS not display the non null data that I've chosen to occupy the 2nd column in my tablix, at the 3rd group level, when the field in question is 1) not null, and 2) appears just fine in the detail row ??? I've got the following design: […] |
Integration Services |
optimizing SSIS package - I am trying to optimize an SSIS package which has multiple streams..so step is loading some data ( using sp) and other streams are calculating ( using different sp). Now for loading using the below code DECLARE @yesterday DATE SET @yesterday =DBO.FNGETDATEONLY(GETDATE()) SET @yesterday =DATEADD(DAY, -1, @YESTERDAY) EXEC SPNAMETEST @DATETOBEPROCESSED=@yesterday calculating steams uses below […] |
Stored Procedure as Destination. OLEDB vs ADO.NET - I know I can do this using an OLE DB Command, but I was wondering if its possible to configure an ADO.NET connection and component as a destination? EXEC dbo.WeatherForecastUpsert ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,? If it isnt, no worries. I just cant seem to find a way to do it. |
COVID-19 Pandemic |
Daily Coping 4 Jun 2020 - Today’s tip is to look up at the sky. Remember we are all part of something bigger. http://voiceofthedba.com/2020/06/04/daily-coping-4-jun-2020/ |
| |
©2019 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved. webmaster@sqlservercentral.com |