Here's a few of the new posts today on the forums. To see more, visit the forums.
|
SQL Server 2017 - Administration |
Measuring Ad-hoc workload on a per database level - Ok so I need to see how much workload on a server (per database) is ad-hoc. Gut feel its high for one db in particular . is the following a valid way to determine this or is there a better approach ? SELECT Convert(INT,Sum ( CASE a.objtype WHEN 'Adhoc' THEN 1 ELSE 0 END) * […] |
Slow Sql server - Hi All, We have a QA server on which a bunch of databases are hosted. It hosts like 20-25 databases. All these databases are not active all the team. At set of databases indicates each environment like QA1 , QA2 , QA3 etc... In each set , there is 1 big db which is around […] |
SQL Server 2016 - Development and T-SQL |
Extracting the clientapp for the victim of a deadlock report - Given a deadlock report, I need to extract the clientapp that was the victim process. The query I've written works and is below: DECLARE @path [nvarchar](MAX) SELECT TOP 1 @path = REPLACE([path] + '\system_health*.xel', '\\', '\') FROM [sys].[dm_os_server_diagnostics_log_configurations] WHERE [is_enabled] = 1 DECLARE @data TABLE ([deadlock] , [exec_time] [datetime]) INSERT INTO @data SELECT CONVERT(XML, [event_data]).query('/event/data/value/child::*') […] |
SQL Server 2019 - Administration |
Bringing Data from SQL Server to AWS automatically - We have a requirement where we want to bring data present in SQL Server to AWS - SQL Server (i.e. AWS RDS). At present the data is present in on-prem SQL Server and on 1st of every month, the data is then transferred from SQL server to excel sheet. The excel sheet contains 7 different […] |
Windows 11 Pro - Hi everyone I just got a new machine. It is running Windows 11 Pro. I am trying to install SS2019 but I am coming across issues. I am getting below error: "Oops... A required file could not be downloaded. This could mean the version of the installer is no longer supported. Please download again from […] |
SQL Server 2019 - Development |
Trying to re-id a database table and getting error on the first select keyword - I have a small table ( < 1000 lines). I deleted the first entry ID 1 as it was invalid. I know it is not necessary to Re-ID it, however I want the first entry to be ID 1 not ID 2. I tried the following script; CREATE TABLE Codelines_backup AS SELECT ID, Rail_Road, NCS_Codeline, […] |
Do you dream about SQL Server and things IT? - Even though I retired 12 years ago it seems that databases and IT in general are so much a part of my life they are even heavily in my dreams. While you could wish to dream of beautiful women such as my dear wife, fabulous wealth, and magical vacations, most of my dreams involve my […] |
Update a sql_variant column - Trying to update a sql_variant column gets me a conversion error I dont understand. Can someone see/tell me, what I am doing wrong... --drop table #test create table #test (test sql_variant) insert into #test values('1234X ') SELECT SQL_VARIANT_PROPERTY(test, 'BaseType') from #test --varchar update t set t.test = CASE WHEN SQL_VARIANT_PROPERTY(t.test, 'BaseType') IN ('char', 'varchar', 'nchar', […] |
Question on last valid Date in the system - Hi Experts, I have several more than 60+ Dates and I need to know which is last valid date for a particular record ? All the timers are extracted in a row for a particular record. |
Converting varchar to Int for date difference - Hi Experts, Constraints: I do not have create permissions and I am learning This is my code Basically testing to fix the T-SQL putting junk 1900 dates and if valid then find the difference between FADate and TDate Unfortunately, even after trying to convert the varchar to Int using convert(int, a.FAdate) I get conversion error. […] |
SQL Azure - Development |
Self-Service BI (Synapse and PBI) - Dear Experts, We have created a MDP (modern data platform) composed of : Azure Datalake Synapse PBI ADF Data Bricks In synapse, we have our stagging area (1-0-1 with the ADLS2) and our dimensional modeling, and then, we import different datasets into PBI. On top of that we have our PBI reports that connect to […] |
Amazon AWS and other cloud vendors |
AWS S3 with video editing? - I'm looking for a solution where I can add the cloud storage as a shared network drive or folder on my PC and then directly edit heavy videos from the cloud via my connection. I have a 10 Gigabit internet connection and all the hardware to support that amount of load. However it seems like […] |
General Cloud Computing Questions |
Aws reporting question - Looking for an idea / workflow to automate reporting for system manager nodes . I know I can get a list of nodes and also get a list of running ec2 instances but what I want is to get a list of the running instances rhat are NOT showing up as managed nodes (so ec2 […] |
Azure Machine Learning |
performance management / other gotchas - I'm moving into a project where ML will be a component, primarily it will be as a DBA although I do have some DEV (SSIS / Tsql) experience. I'm wondering are there any good resources yet on how to admin MS ML on SQL Server , I'm finding a lot of info on how to […] |
Analysis Services |
Error when trying to browse dimension/role, but not when browsing the cube - Ahoi, i have an annoying problem since upgrading vom 2016 to 2019. I have users modifying my the roles in my multimendionsal project. The users have role access to one of the cubes and can browse it using: SSMS/Excel WITHOUT ANY RESTRICTIONS But they can not browse the dimensions, even though they can browse the […] |