|
|
|
|
|
|
|
|
Question of the Day |
Today's question (by Steve Jones - SSC Editor): | |
SQL Server 2022 VLF Changes | |
In SQL Server 2014, if a log file grew by less than 1/8 of the current file size, only one VLF was created. If the growth was more than 1/8 of the current size, then there would be more VLFs. These were the rules:
| |
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) |
Managed Instance States There is the ability of Azure SQL Managed Instance to stop the instance. With this feature, what are the states that a Managed Instance can report to the admin? Answer: Online, Stopping, Stopped, and Starting Explanation: Previously a Managed Instance only reported that it was online. With the Stop feature, we now have these states (as of Mar 2023).
Ref: Stop and start an instance (preview) - Azure SQL Managed Instance - https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/instance-stop-start-how-to?view=azuresql&tabs=azure-portal |
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 2016 - Administration |
Index Creation for large table failed. - I'm trying to create a clustered index on a very large heap table. Below is the script i'm using to perform the creation job. CREATE CLUSTERED INDEX [IX_Arc_tblFST_GSNID] ON [dbo].[tblFST] ( [GSN_ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = ON, DATA_COMPRESSION=PAGE) ON [ps_tbl_arctbltnr]([TNR_Date]) However the creation […] |
Always ON, HA, File Location Problem - Hello All, I have four VMs setup while I am learning SQL Server Admin tasks and configurations. SVR01 is the DC, the other three are the servers to be used. I am attempting to setup Failover clustering, however I run into this error every single time, no matter what folder I use, what name I […] |
SQL Server 2016 - Development and T-SQL |
Extracting Data from XML file - Hi all, I have a XML file which consists this type of data: 12345 1 ABC XYZ TEST TYPE TEST REFNUM 2016-11-30 TESTCOMMENT TEST DESIGN TEST NAT TEST TYPE EXACT 1964-07-17 […] |
How To Enumerate Hierarchical Info on SP calls - NOTE: Forgive me if I am using the wrong terminology with regards to this. \ I am trying to get a list of all The SP's (Stored Procedures) that are called by an SP. For example let's say I have the following SP's: LF5_Job1, LF5_JOb2, LF5_CalcResFees, F5_CalcCommFees & LF5_PopulatFees The SP LF5_Job contains one 'EXECUTE' […] |
SQL Server 2019 - Administration |
Log File continue growing - Hello everyone, i read a lot about growing Log Files on this forum but can´t find a solution for my problem. I moved a database from one server to another, cause there were several performance problems on that old server. Since i moved the database the lfd file is continue growing. Database (mdf) file is […] |
Generate 1 log file every 1 hour doing a backup every 1 hour? - EXECUTE dbo.DatabaseBackup @Databases = 'USER_DATABASES', @Directory = 'D:\DADOS-LOG', @BackupType = 'LOG', @LogSizeSinceLastLogBackup = 1, @TimeSinceLastLogBackup = 60, @DirectoryStructure = NULL, @FileName = '{DatabaseName}_{BackupType}_{Partial}_{CopyOnly}.{FileExtension}', @AvailabilityGroupDirectoryStructure = NULL -- How to modify this script to generate 1 log file every 1 hour doing a backup every 1 hour? |
how to set to a variable - how can I make SELECT SERVERPROPERTY('MachineName') to set to a variable? Thanks, |
SQL Server 2019 - Development |
Script to import BACPAC file? - Did some searching, and the closest I've seen is using the SqlPackage command-line tool, either directly from CMD or through a PowerShell script. I'm aware that in SSMS, you can do this by right-clicking and selecting "Import Data-tier Application". Is there any way to do this through a standard SQL script? Or is the only […] |
select query - Hi, I would like to select the specific string from the field(Text_Loginame) value from a table. Below are the two records in that filed. Text_Loginame Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. Reason: Could not find a login matching the name provided.[CLIENT: XXXXX] Login failed for user 'ABC\XXXX'. Reason: Failed to open the explicitly specified […] |
Importing XML data into a Table - Hi, I am trying to write a script which will import fields from an XML file into a table. Below is the example XML Test company other Other 111111 […] |
Grouping the words which has maximum count - Hi All, I have to highest two word in the columns. It should have the maximum two words combination. I have attached the excel for reference. |
General |
SQL server loads slow troubleshoot common issues? - What are some best practices to identify and troubleshoot slow query performance issues on an SQL server, and what are some effective tools and techniques to resolve problems with server crashes or connectivity disruptions? How do you optimize SQL queries for performance, and what are some common pitfalls to avoid What are some advanced features […] |
Analysis Services |
How can external customers access SSAS cubes to create their own analysis - My company has a number of SSAS tabular cubes which are deployed to a server and Power BI reports are built on top of that. We have lots of bespoke reporting requirements from external customers and are thinking it would better for them to do there own analysis and reporting as long as we can […] |
Strategies and Ideas |
Injest user-provided Excel? - In today's episode of "Products that Should Exist (and maybe do)": Have you come across a solution (preferably a web-based portal) that allows an end user to upload an Excel file, digests the data, identifies tabular data, walks the user through column mapping to structured data, performs data validation, highlights invalid data, allows editing of […] |
Integration Services |
SSIS package succeeding but Job failing (fail - converting date and/or time) - Hi, I successfully created an SSIS package and it executed perfectly in Visual Studio's development environment. However, when I scheduled this very package within a SQL Server Job Agent, it mysteriously fails: " Hresult: 0x80040E07 Description: "Conversion failed when converting date and/or time from character string.". End Error Error: 2023-05-04 13:33:28.19 Code: 0xC004701A Source: Load […] |
| |
©2019 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved. webmaster@sqlservercentral.com |