SQL Browser, what is it good for? Absolutely something!
SQL Browser service must be running or this script will not ... res = "" If ($Response) { $Response = $Response.Substring(3,($Response.Length-3)).Replace(";;","~") $Response.Split("~") | ForEach {...
View ArticleAutomating the Creation of Consistent #Amazon EBS Snapshots with #Amazon EC2...
VSS (Volume Shadow Copy Service) is a Windows built-in service that coordinates backup of VSS-compatible applications (SQL Server, Exchange Server ... zone' Add-Content $EbsSnapshotPs '$Region =...
View ArticleSQL SUBSTRING Function
The SQL SUBSTRING function is one of the SQL String Function, which is used to return specified number of characters from the given expression. The SUBSTRING function uses its third argument to decide,...
View ArticleSQL Server Substring with CharIndex
In this article we are going to explore the T-SQL function CharIndex and also how to use it with another T-SQL function Substring(). CharIndex: This function returns the location of a substring in a...
View ArticleImport from a bacpac into a SQL database using PowerShell
[New-AzureRmResourceGroup]() Creates a resource group in which all resources are stored. [New-AzureRmSqlServer]() Creates a logical server that hosts the SQL Database....
View ArticleSearching substrings in MDX
Most of you would be familiar with substring searches in SQL. Today, we will see how to replicate the same scenario in MDX. 1) Suppose we have to find all the employee names having ‘David’ as a...
View ArticleXQuery for the Non-Expert – Substring() Function
Within the value() and query() methods it is sometimes desirable to return a portion of a string. Similar to T-SQL, there is a substring function in XQuery that provides this functionality. In this...
View ArticleT-SQL 101: Built-In Functions
T-SQL has many built-in functions that come in four basic flavors ... Commonly used string-manipulation functions include LEFT, RIGHT, SUBSTRING, and REPLACE. LEFT and RIGHT. The LEFT and RIGHT...
View ArticleConfigure SQL Database auditing and threat detection using PowerShell
This sample PowerShell script configures SQL Database auditing and threat detection ... sql$($(Get-AzureRMContext).Subscription.SubscriptionId)").substring(0,23).replace("-", "") # Specify the email...
View ArticleHow to Get Status of Running Backup and #Restore in SQL Server? – Interview...
AS [Estimated Hours] ,CONVERT(VARCHAR(1000), ( SELECT SUBSTRING(TEXT, r.statement_start_offset / 2, CASE WHEN r.statement_end_offset = - 1 THEN 1000 ELSE (r.statement_end_offset -...
View ArticleSQL Server Substring with CharIndex
In this article we are going to explore the T-SQL function CharIndex and also how to use it with another T-SQL function Substring(). CharIndex: This function returns the location of a substring in a...
View ArticleSQL SUBSTRING Function
The SQL SUBSTRING function is one of the SQL String Function, which is used to return specified number of characters from the given expression. The SUBSTRING function uses its third argument to decide,...
View ArticleUsing substring and ltrim in Alteryx
I have the below sql code and want to convert this to alteryx formula and apply to dataset below. isnull(SUBSTRING(rtrim(ltrim(hhm.Surname)),2,1),'2 ')...
View ArticleSQL Developer Data Modeler: A Top-Down Product Overview
SQL Developer Data Modeler offers features and utilities that ... and alphanumeric constants and combining these, optionally with the SUBSTR function to restrict the total length of the word. Once...
View ArticleSQL Browser, what is it good for? Absolutely something!
SQL Browser service must be running or this script will not ... res = "" If ($Response) { $Response = $Response.Substring(3,($Response.Length-3)).Replace(";;","~") $Response.Split("~") | ForEach {...
View ArticleImport from a bacpac into a SQL database using PowerShell
[New-AzureRmResourceGroup]() Creates a resource group in which all resources are stored. [New-AzureRmSqlServer]() Creates a logical server that hosts the SQL Database....
View ArticleHow to Get Status of Running Backup and #Restore in SQL Server? – Interview...
AS [Estimated Hours] ,CONVERT(VARCHAR(1000), ( SELECT SUBSTRING(TEXT, r.statement_start_offset / 2, CASE WHEN r.statement_end_offset = - 1 THEN 1000 ELSE (r.statement_end_offset -...
View ArticleT-SQL Substring: Splicing a String from Another String
Transact-SQL or T-SQL is a way to run SQL statements on your database tables. SQL Server offers several string functions, which you should know to properly manipulate and work with your data. The...
View ArticleSQL Server Substring with CharIndex
In this article we are going to explore the T-SQL function CharIndex and also how to use it with another T-SQL function Substring(). CharIndex: This function returns the location of a substring in a...
View ArticleOptimizing Substring Search Performance in SQL Server
The requirement of searching data by part of the value is very common in business applications. All of us are familiar with it – users want to be able to search by entering just a few letters from the...
View Article