Newsletter Subject

Database Sequence Objects with dbatools (2023-05-31)

From

sqlservercentral.com

Email Address

subscriptions@sqlservercentral.com

Sent On

Wed, May 31, 2023 08:46 AM

Email Preheader Text

SQLServerCentral Newsletter for May 31, 2023 Problems displaying this newsletter? . Featured Content

SQLServerCentral Newsletter for May 31, 2023 Problems displaying this newsletter? [View online](. [SQL Server Central]( Featured Contents - [Database Sequence Objects with dbatools]( - [PASS Data Community Summit 2023 registrations are open!]( - [Why a monitoring tool is an essential tool for growing server estates]( - [From the SQL Server Central Blogs - Why you still need DBA resource in the cloud]( - [From the SQL Server Central Blogs - Using Docker on Windows with Persistent SQL Server Settings and Databases]( - [SQL Server Execution Plans, Third Edition, by Grant Fritchey]( Question of the Day - [Full Managed Instance Backups]( The Voice of the DBA  Scaling Up Monitoring Monitoring software is important when it's in production. Operations departments know that catching issues early, being proactive, and having data to troubleshoot make their job easier. Not having these things makes their job much more stressful. Most of us work with data in some way, and availability is important. Certainly, security, integrity, and performance matter as well, but many people don't have any monitoring systems set up. Instead, they troubleshoot problems when someone files a ticket or calls. I'm amazed at this, though I know building and managing monitoring is hard, and purchasing third-party products can be outside of your budget. Still, having something in place makes everyone's job easier. If you decide to build a system, then you can do it in many ways. I saw a description of how Amazon built a monitoring system for their Prime Video service. This is a more complex system than many of us deal with for databases, but I did find it interesting that they chose a distributed architecture that used multiple components. It didn't scale, so they started to move from small functions, almost like microservices, to a bit more monolithic structure. I am not saying that microservices or functions or serverless are bad choices. They meet certain needs, and they can work very well. Azure SQL Database Serverless can work well in some situations. However, I do think that this was a case of engineers trying to be too clever and making assumptions about production loads from PoC-type experimentation. I would say that far too many software engineers think that their solution will scale without actually testing it. Too often their view is if it works here, it will work there, but the history of software has shown that working on my machine doesn't mean working on another. That's why we use Continuous Integration: for independent validation and verification. This is also a problem when databases are involved, as the level of data used for development and testing doesn't do a good enough job of predicting how the system works under load. We need better [test data management]( which is becoming a whole new category of software practices and tools. We should ensure we include good instrumentation in our software for monitoring purposes, but we should also ensure that we start monitoring and evaluating how our system will perform in test and development environments, as that's the idea of shift-left. Lastly, I think monitoring in production is important, but I wouldn't build another system. I admit I'm biased, but I also think the build v buy debate doesn't make sense here unless your staff has a lot of spare time to spend maintaining a homegrown system. Steve Jones - SSC Editor [Join the debate, and respond to today's editorial on the forums](   Featured Contents [SQLServerCentral Article]( [Database Sequence Objects with dbatools]( Mikey Bronowski from SQLServerCentral This article delves into five new dbatools command that work with sequence objects. [External Article]( [PASS Data Community Summit 2023 registrations are open!]( Additional Articles from Redgate In 2023, connect, share & learn with like-minded peers, speakers, and industry leaders during the full week of data celebrations. Summit happens in person, from November 14th to 17th in Seattle. Check out the blog post and learn more. [External Article]( [Why a monitoring tool is an essential tool for growing server estates]( Additional Articles from SimpleTalk I enjoyed writing scripts to manage the servers, as it taught me a lot about the internals of SQL Server. Many of these scripts were eventually automated using SQL Server’s agent to run and save data on the different servers so we could review the results, looking for issues. [Blog Post]( From the SQL Server Central Blogs - [Why you still need DBA resource in the cloud]( Matthew McGiffen from Matthew McGiffen DBA Why a DBA, rather then being redundant, is even more valuable when your databases run in the cloud. [Blog Post]( From the SQL Server Central Blogs - [Using Docker on Windows with Persistent SQL Server Settings and Databases]( hellosqlkitty from SQLKitty This is an easy way to retain the data and settings you create and change on your SQL Server Docker instance. There’s a lot of talk about attaching databases... [SQL Server Execution Plans eBook, Third Edition, by Grant Fritchey]( [SQL Server Execution Plans, Third Edition, by Grant Fritchey]( Grant Fritchey from SQLServerCentral Every Database Administrator, developer, report writer, and anyone else who writes T-SQL to access SQL Server data, must understand how to read and interpret execution plans. This book leads you right from the basics of capturing plans, through how to interrupt them in their various forms, graphical or XML, and then how to use the information you find there to diagnose the most common causes of poor query performance.   Question of the Day Today's question (by Steve Jones - SSC Editor):  Full Managed Instance Backups As of April 2023, if I have an Azure SQL Managed Instance, how often are the automated full backups run on my databases? 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) The Secure Enclave When using Always Encrypted in SQL Server 2019, where is the secure enclave located? Answer: In memory in the database engine Explanation: A secure enclave is a secure place where computations can be run. This exists in memory in the database engine, though the keys are often stored on a client machine or in a secure third-party location. Ref: Always Encrypted with secure enclaves - [ [Discuss this question and answer on the forums](    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 [Best migration approach]( - Hi Colleagues, I am considering the across-the-wire migration method to SQL Server 2017. However, my source is an SQL Server 2014 Availability group with three nodes, one asynchronous. Is launching a new VM on the remote site and the same cluster to migrate this first node a good idea? Later, demote the old node, then […] SQL Server 2016 - Development and T-SQL [import from CSV - special chars]( - My data csv file sometimes comes in with special characters and French accents too (è ë à ç ) And then this special apostrophe in surnames e.g. O’Brien. They go in the database as this: O’brien I am using SSIS for import. Where do I need to make changes to allow these special chars? The tables have […] SQL Server 2019 - Administration [Does Query Store persist data across an upgrade from SQL 2016 to SQL 2019]( - This may be somewhere in the docs, but my Google-fu wasn't able to find it... We're testing an upgrade from SQL 2012 to SQL 2019, but tests indicate performance in SQL 2019 with compatibility level 110 is worse than native SQL 2012 for some critical queries and switching to compatibility level 150 (native 2019) is […] [adaptive memory grants]( - Hi we have a sql server we use as a data warehouse. It has 1TB of RAM but still suffers from memory pressure. Looking at the plans there are excessive memory grants. I changed the compatibility level to 150 to take advantage of the Adaptive Memory Grants. It's been in place for around a month […] [Upgrade to SQL2019 from 2012 and everything is slow - what to look for?]( - We have recently started a process of planning the upgrade of our four-node SQL2012 availability group to SQL2019. The main database is pretty large (a few TB) and we've spent years tuning the SQL to get the performance to where it needs to be such that huge complex procedures absolutely fly on SQL2012. We've had […] [DBCC CHECKDB error 2576 allocation errors]( - Getting the following after the execution of the DBCC CHECKDB:  Msg 2576, Level 16, State 1, Line 1 The Index Allocation Map (IAM) page (0:0) is pointed to by the previous pointer of IAM page (3:17) in object ID 0, index ID -1, partition ID 0, alloc unit ID 72057617208115200 (type Unknown), but it […] SQL Server 2019 - Development [Query to Insert Data Based on CustomerID from one table to another]( - Hello All, Below is the my existing table structure from which I need to insert records to a new table I need a query to insert records into a new table for each customer for same date.  For example considering above data structure query should insert records into a new table as below based on […] [Encryption insert driving me mad]( - Hi all, I'm wondering if someone can help me with this, I have a table (very simple) CREATE TABLE [api].[Employee]( [EmployeeID] [int] NULL, [CreatedDate] [datetime] NULL, [Title] [varchar](10) NULL ) ON [PRIMARY] GO I've then gone and encrypted the Title column in SSMS using Randomized encryption type with a key in our Azure Key vault, […] [Most performant way to join a DATE to an INT]( - Hello and thanks in advance if you can help. I guess its somewhat acceptable in dimensional modeling to use the INT data type when creating a date dimension surrogate key. I can't say I agree with this but here we go. I need to join tables on DATE and INT columns. What is the most […] [Cumulative Sum by Groups]( - HEY, I HAVE TWO TABLES: CUSTOMERS AND USERS PER CUSTOMER I NEED TO CREATE TWO CUSTOMERS GROUPS: DVIR & RON - 'CRNTER GROUP', AND DANNY & DAVID 'OTHER GROUP'. AFTER THAT I NEED TO SUM THE NUMBER OF USERS FOR EACH GROUP. I STARED BY USING UNION ALL AND PARTITION BY: WITH "CUST-CTE" AS ( […] [Trigger Email After the record is inserted/deleted/updates from a table]( - Hi, I have following requirement. There is Sql server DB table OrderDetails. It has date, UserName , Details, OrderID columns. Case 1: I want to send email alert whenever any new record is inserted then email should be sent with below details. The new records date and time of insertion, UserName who inserted the record, […] SQL Azure - Administration [Scheduled Jobs in Azure SQL Databases Failing for Auto-Paused DB]( - Hello! I have somewhat similar kind of PowerShell script which executes the stored procedure on a schedule. Since the database is set to auto-pause, job is failing at times with the error message below: "Exception calling "Open" with "0" argument(s): on server is not currently available. Please retry the connection later. " How can I […] Integration Services [Visual Studio 2019 Pro won't load my projects]( - HI all, For some reason I've been having issues with VS pro opening up my projects that are in my SIS Solution. I'm NOT having the same problem with my SSRS solution. That opens fine. I have both Solutions/projects under Azure Devops/Git. I had this issue about 2 weeks ago and I was able to […] Design Ideas and Questions [Database Design Help]( - Hello, I am looking for some input on a database I am attempting to design for a video game. I have most of the design basically done, but I am having trouble finishing this last part. The basis of the database is around the entities "item", "fluid", "node", and "building". The schema related to these […] SQL Server 2022 - Development [VNN and unique ports]( - Background TLDR: We are creating non-prod WFC clusters. Each node in the cluster will have a handful of sql instances and each instance will have many Always on groups separating logic database sets.  The Issue: I did some testing and while the warning about 1433 on VNN creation with unique IP's per VNN is […]   [RSS Feed]( This email has been sent to {EMAIL}. To be removed from this list, please click [here](. If you have any problems leaving the list, please contact the webmaster@sqlservercentral.com. This newsletter was sent to you because you signed up at SQLServerCentral.com. ©2019 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved. webmaster@sqlservercentral.com  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

EDM Keywords (217)

xml writes worse works working work wondering windows well way warning want voice visit view verification valuable users use upgrade unless tools today times time ticket though think thanks testing test tb taught talk tables table system switching sum stressful started stared staff sqlservercentral sqlkitty sql2019 sql2012 sql source somewhere something someone solution software slow simpletalk signed shown settings set servers serverless server sent see scripts scale saying say saw run right retain respond removed redundant redgate record reason read ram question query projects production process problem proactive predicting pointed plans planning place person performance perform partition outside open often number node newsletter needs need move migrate microservices memory may many manage machine lot looking look load level learn launching know keys key join issues issue involved interrupt internals interesting instead instance inserted input information important import idea history help hard handful guess group gone go get functions forums following find far failing exists execution executes everything even evaluating ensure encrypted email editorial docs diagnose development details design description decide debate day date databases database data customerid customer creating create considering computations cluster cloud clever chose changed change case calls building build brien bit biased becoming basis basics based availability attempting around answer another amazed also allow agree agent advance admit across able 2012 1tb 17th 150 1433

Marketing emails from sqlservercentral.com

View More
Sent On

08/06/2024

Sent On

07/06/2024

Sent On

05/06/2024

Sent On

03/06/2024

Sent On

01/06/2024

Sent On

31/05/2024

Email Content Statistics

Subscribe Now

Subject Line Length

Data shows that subject lines with 6 to 10 words generated 21 percent higher open rate.

Subscribe Now

Average in this category

Subscribe Now

Number of Words

The more words in the content, the more time the user will need to spend reading. Get straight to the point with catchy short phrases and interesting photos and graphics.

Subscribe Now

Average in this category

Subscribe Now

Number of Images

More images or large images might cause the email to load slower. Aim for a balance of words and images.

Subscribe Now

Average in this category

Subscribe Now

Time to Read

Longer reading time requires more attention and patience from users. Aim for short phrases and catchy keywords.

Subscribe Now

Average in this category

Subscribe Now

Predicted open rate

Subscribe Now

Spam Score

Spam score is determined by a large number of checks performed on the content of the email. For the best delivery results, it is advised to lower your spam score as much as possible.

Subscribe Now

Flesch reading score

Flesch reading score measures how complex a text is. The lower the score, the more difficult the text is to read. The Flesch readability score uses the average length of your sentences (measured by the number of words) and the average number of syllables per word in an equation to calculate the reading ease. Text with a very high Flesch reading ease score (about 100) is straightforward and easy to read, with short sentences and no words of more than two syllables. Usually, a reading ease score of 60-70 is considered acceptable/normal for web copy.

Subscribe Now

Technologies

What powers this email? Every email we receive is parsed to determine the sending ESP and any additional email technologies used.

Subscribe Now

Email Size (not include images)

Font Used

No. Font Name
Subscribe Now

Copyright © 2019–2024 SimilarMail.