Problems displaying this newsletter? View online.
SQL Server Central
Featured Contents
Question of the Day
The Voice of the DBA
 

Power BI and Git

When Power BI was released, I was working with customers to try and adopt DevOps for their database code. At that time, I thought the Microsoft developers had made an extremely poor decision with the PBIX format in that it wasn't well suited for version control. In 2011, when it was first released, we not only had decades of knowledge about version control and the power of DevOps, but we'd also been living with the extremely poor format of code in Integration Services packages (among other data tools), that were poorly suited for understanding in version control systems.

Power BI has grown, and with the Fabric announcements, there are integrations with git for your workspace. There is also a Power BI Developer mode that saves your project in a folder structure rather than one file, which is better. I'm not sure it's great, especially if it doesn't enforce text in a way that ensures a developer can easily see changes between settings and understand them. I can certainly diff the XML in two SSIS packages, but that doesn't mean that it's easy to understand what has changed.

I think all modern tools used to build software, including the various reporting systems, need to be built with a pipeline and team development in mind, and set up to ensure that multiple developers can review code in some sort of Git-pull-request format. For those tools that use GUI formatting, I'd hope they separate out GUI elements from others, as no one needs to pull request a change that moves a visual box on screen left 2 pixels. However, if you change the OnError response or formula inside the box, that should be easy to see in code.

This isn't a simple concept to design for, especially for software that is based on a novel idea and is often built by a small team. However, periodic review of how the software stores changes and how a less experienced developer might review those changes is important to ensuring that our tools scale to the modern needs of distributed team development where our collaboration is often through protocols like pull requests.

Steve Jones - SSC Editor

Join the debate, and respond to today's editorial on the forums

 
 Featured Contents
SQLServerCentral Article

How to export data to SQL Server using Bard (Google chatbot)

Daniel Calbimonte from SQLServerCentral

See how well the Bard AI does with moving data into SQL Server.

External Article

10 reasons to choose Flyway

Additional Articles from Redgate

Thousands of organizations use DevOps practices every day to deliver application changes. But what about the database? Excluding the database from your DevOps pipeline and processes risks application performance, data security and integrity. With Flyway, Redgate solves this challenge in one complete solution that sits inside your existing DevOps platform and processes. Find out the 10 reasons why organizations worldwide choose Flyway.

External Article

Different Ways to Format Currency Output in SQL

Additional Articles from MSSQLTips.com

In this tutorial, we will show different ways to output different currency formats with the T-SQL language.

Blog Post

From the SQL Server Central Blogs - How to Create a Time Table in Power BI Using DAX

Angela Henry from SQL Swimmer

Lately, I’ve been having to create items in Power BI, that I haven’t had to do for a while, this week it was a Time table. Of course, I...

Blog Post

From the SQL Server Central Blogs - Serving layers with a data lake

James Serra from James Serra's Blog

Data lakes typically have three layers: raw, cleaned, and presentation (also called bronze, silver, and gold if using the medallion architecture popularized by Databricks). I talk about this is...

SQL Server 2022 Administration Inside Out

Steve Jones - SSC Editor from SQLServerCentral

Dive into SQL Server 2022 administration and grow your Microsoft SQL Server data platform skillset. This well-organized reference packs in timesaving solutions, tips, and workarounds, all you need to plan, implement, deploy, provision, manage, and secure SQL Server 2022 in any environment: on-premises, cloud, or hybrid, including detailed, dedicated chapters on Azure SQL Database and Azure SQL Managed Instance.

 

 Question of the Day

Today's question (by Steve Jones - SSC Editor):

 

sp_refreshsqlmodule Parameters

There are two parameters for sp_refreshsqlmodule, @name and @namespace. What are the requirements for these parameters?

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)

What is .GitKeep?

I cloned a git repository from my company and there is a folder in the repository with a file named .gitkeep. What is this used for?

Answer: It's a placeholder to ensure the folder is stored in the repo

Explanation: This isn't a feature of git, but it has become a bit of an adoption by many developers. This is just a file that ensures Git will track the folder, since git doesn't track empty folders. Ref: What is GitKeep - https://www.freecodecamp.org/news/what-is-gitkeep/

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
Select blocking a Truncate stamemet - Hi All, I am seeing a SELECT blocking a TRUNCATE statement. THE SELECT is running over 4 hours and it is waitype is AYSN_NETWORK_IO. Isolation level is default read committed isolation level. Why or when does a SELECT takes "Sch-S” lock? I see this lock being acquired using sp_whoisactive. Truncate is waiting for="Sch-M" lock. How […]
What's the right way of capturing expensive queries? - Hi All, While capturing expensive queries by CPU or IO, why it is important to group queries by query_hash and then tune them instead of directly pulling top 10 queries from sys.dm_exec_query_stats DMV?. What am I missing ? is it wrong way to capture expensive queries> if so, I want to understand why? please share […]
High CPU & blocking - Hello SQL Experts, We have SQL2017 enterprise edition with about 60 databases. Recently we are seeing very high cpu spikes. We have DB maintenance job running twice/wk (Hallenger Script). Manually updated the statistics but it didn't helpful. I don't have baseline about the no of transactions or queries that ran previously.  Followed the guidance provided […]
SQL Server 2017 - Development
Join on Column A when Column B is Null - hi, I need to join on a table T1 AND Table T2. Something like this : Select * from Table T1 JOIN TableT2 on T1.A =T2.A but here , condition is if  (T1.a or t2.a is null ) then join on (T1.b =t2.b ) where t1.b and t2.b is not null.   How to achieve […]
Administration - SQL Server 2014
SQL 2014 Standard - All SQL agent jobs disabled after patch - We have a SQL server 2014 (with SSRS) and over the weekend the list of patches below got installed around 1AM. KB5029312 KB5028970 KB5028957 KB5029368 The following morning it was noticed that no jobs ran and when we checked, EVERY single SQL agent job had a red x and were all disabled. I have never […]
SQL 2012 - General
The target princial name is incorrect. Cannot generate SSPI context. - I've just created new certs, new SPNS and applied via SSCM. Within AD I've ticked trust this user for delegation, use kerberos only to all of my new SPNS. SQL starts fine & I can logon locally but get the above error logging on from a different machine (therefore attempting kerberos). I'm sure I've done […]
The target princial name is incorrect. Cannot generate SSPI context. - I've just created new certs, new SPNS and applied via SSCM. Within AD I've ticked trust this user for delegation, use kerberos only to all of my new SPNS. SQL starts fine & I can logon locally but get the above error logging on from a different machine (therefore attempting kerberos). I'm sure I've done […]
SQL Server 2019 - Administration
msdb job history permission error - SELECT * FROM msdb.dbo.sysjobhistory error: The SELECT permission was denied on the object 'sysjobhistory', database 'msdb', schema 'dbo'.   the user is a member of the following msdb role: SQLAgentReaderRole SQLAgentUserRole SQLAgentOperatorRole   What other permissions do i need?
How to Backup SQL Active/Passive cluster Database to File Share - Hi We have 2 node Active/Passive SQL serer cluster with 2 databases, due to the backup disk capacity limitations we are planned to backup databases to the File Share location (\\192.168.0.x\Backup). When we trying to connect File Share to the WSFC there is no option to add file share it is showing only the availble […]
Query joins and SQL Server mirroring (2019) - Have a bit of a situation with database mirroring and table joins, hopefully someone can shed some light on possible solutions. Scenario: DB01 is on Server01 and is mirrored to Server02 DB02 is on Server01 and is mirrored to Server02 DB03 is on Server 03 and is mirrored to Server04 Linked servers are setup between […]
Color Particular Column - Hi I want to color particular column . If value is -ve then color should be red Thanks
SQL Server 2019 - Development
Powershell script run through Task Scheduler - Cannot validate argument on param - I have a Powershell script which is being called through Windows Task Scheduler My script is set up as follows:   param( $FileDirectory, $VerboseDirectory, $ServerInstance, $Database ) Invoke-Sqlcmd -ServerInstance $ServerInstance -Database $Database -Query "EXEC spImportReturn @FileDirectory = '$FileDirectory'" -verbose 4> $VerboseDirectory Now I then call this Powershell script from Windows Task Scheduler as follows: Executable: […]
Powershell
change delimeter - This script converts from xlsx to csv, but how can I change delimiter from comma to semicolon, and pickup the same file name from multiple folders to process? Thanks. # To execute the script without agreeing with the execution policy Set-ExecutionPolicy Bypass -Scope Process # Defines the directory where the file is located $dir = […]
Integration Services
Job Step Properties - Configuration - Parameter Issue - Hi, I am fairly certain that both myself and my colleagues could ALL change the configuration parameter on a Job Step, but I am now informed that only a Sys Admin or the job owner can change this value. ( currently on  SSMS 18.12.1 ) This is a bit annoying as it makes being able […]
SQL Server 2022 - Development
Proc and Table permissions (Grantor column) - I have several tables and stored procedures that have an user ID of a person that is no longer with the company that is listed in the Grantor Column under schema properties permissions window. We ran into an issue with a stored procedure executing until we change the Grantor (the user Id) Column to a […]
 

 

RSS FeedTwitter

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

 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -