Here's a few of the new posts today on the forums. To see more, visit the forums.
|
SQL Server 2017 - Administration |
Extended events query plan - All, Firstly apologises as I'm sure I'm missing the obvious but I've searched and I can't work it out. I have setup extended events and included both the plan_handle and query_hash actions. I'm retrieving the results with the following: set dateformat dmy SELECT n.value('(action[@name="query_hash"]/value)[1]', 'nvarchar(128)') as query_hash, n.value('(action[@name="plan_handle"]/value)[1]', 'nvarchar(max)') as plan_handle from ( select cast(event_data […] |
SQL Server 2017 - Development |
Group By with SELECT MAX - Is there a tutorial for this? And can someone help me with what is wrong? This woks fine if I remove the MAX and GROUP BY. I don't understand what I need to group by. ERROR: Msg 8120, Level 16, State 1, Line 27 Column 'Documents.DocumentID' is invalid in the select list because it is […] |
SQL Server 2016 - Administration |
Migrate from AWS SQL Server RDS to EC2 - Hello, I could not find any documentation on how to migrate SQL server RDS to an EC2 instance. I have a requirement to migrate a large DB to ec2. Can anyone help me with the steps to migrate the DB with low downtime, please? Thanks in advance |
Dynamic Data Masking and Adhoc queries. - This is the first time we are implementing this, Data Masking that became available in SQL Server 2016. I am not sure that this is a best Data Masking solution though. Because documentation says that a non-privileged user can run an ad-hoc query, using some functions like CAST, and data becomes visible. Is my understanding […] |
SQL Server 2016 - Development and T-SQL |
Returning single row multiple values - I am wanting to return only one row for continuous employment, what is the indcator is there WORKTYPE, RELATIONSHIPSTATUS and BEGINDATE. The bolded line is the BEGINDATE I want for Employee 100043, Employee 105640 has ENDDATE of 9999-12-31 which will be GETDATE, The attach image is of the results as they should be returned. --===== […] |
DelimitedSplit8K License Question - This may be a question specifically for Jeff Moden, but does anyone know what license governs the DelimitedSplit8K function? Tally OH! An Improved SQL 8K “CSV Splitter” Function I ask because I may want to adapt it to fit some code I'm writing, and I just want to make sure I stay within the lines. […] |
Question related to architecture - Hello Fellow DBA friends, Currently I am working on a project where a system has to be migrated to our system. I just want to know whether I should go with creating a new DB schema for its objects in current database or should I create a new database altogether ? What are the specific […] |
Administration - SQL Server 2014 |
Transaction Log Shipping Location Change - It has been a while since I have done anything with log shipping and wondered if someone can provide me with some assistance. So basically the old file server is being decommissioned where the Log shipping writes to. We have a new file server and as such, I would like a simple way to modify […] |
Who modified my Database? - Hi, we have an issue where entire cubes are sometimes deleted from our SSAS database. I am assuming a human has done this, but I cant find any way of determining who did it or when it has happened. Does anyone know where (if at all) Database schema modifications would be logged? Thanks! |
SQL Server 2019 - Administration |
Subscription owner and multiple subscriptions - We are using reporting service 2019 Enterprise. There is an issue with running the subscription the other people created. For example two user are both content manager role. And the first user created the subscription, and she becomes the owner of the subscription automatically. She runs the report with no problem. But when the second […] |
SQL Server 2019 - Development |
Custom Header Row in Query Result - Don't laugh too hard. For 36 months I've been sending a monthly file to a vendor that requires a custom header on Row 1 of the flat text file. I've been opening the text file in Notepad++ and manually setting the header. I want to level up and stop doing this. There are only three […] |
Add column to existent table with default costraint value based on condition - Add column to existent table with default value based on condition Hello, i would to create a new column with default value, but i would know if its possible to speficy dfault value upon a value on another column, example i would write something like: ALTER TABLE [MyTable1] ADD NewRange bit NOT NULL default (IF […] |
Vague job scheduler support for SQL Server on Linux - I’m having some trouble figuring out the kind of support for Linux that the SQL Server 2019 job scheduler has. It’s clear that the job scheduling procedure API, and SQL Server Agent have both been ported to Linux and appear to work. But there are a limited number of kinds of job steps supported. These “kinds” of […] |
Powershell |
double check if file exists in S3 bucket directory - Hello, I did google this, and not sure if I am doing it right or maybe just missing one minor thing, I am just trying to verify if the file exists in S3, if so, great, if not, then... I will figure something out for now I have the following code: $DBList = Invoke-SQLQuery […] |
The Future of Community |
We need to move beyond SQL Server... - I think we should have a discussion about topic. First, the future is more data. SQL Server is just one place it is put. We need reflect the needs of our customers and prospective clients. How do we get there? We do SQL Server now and add others annually. Postgres, MySQL, Oracle and Vertica have […] |