Quantcast
Channel: Substring In Sql | Automatic Website Traffic RSS
Browsing all 989 articles
Browse latest View live

Visualize DSC Reporting with PowerBI

4 SET @Errors = REPLACE(SUBSTRING(@Errors, 3, Len(@Errors) - 4), '\', '') UPDATE StatusReport SET StatusData = @StatusData, Errors = @Errors WHERE JobId = @JobId END After the conversion, SQL Server...

View Article


T-SQL UDF Quickly Determines How Often a Substring Appears

Microsoft SQL Server 2005 or Microsoft SQL Server 2000 database administrators sometimes come across the problem of hitting the 900-bytes limit for unique constraints. To work around the 900-byte...

View Article


String Comparisons in SQL: The Longest Common Substring.

I’ve always wanted a SQL function that tells me the longest substring shared between two strings. As a present to myself, I’ve written one. I hope someone else finds it useful. There are several...

View Article

Optimizing 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

SUBSTRING (Transact-SQL)

Returns part of a character, binary, text, or image expression in SQL Server. The following example shows how to return only a part of a character string. From the sys.databases table, this query...

View Article


SQL 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 Article

Building Searchable Encrypted Databases with PHP and SQL

If your SQL expert overrules this, feel free to omit it ... Store a blind index of strtolower(mb_substr($lastName, 0, 1, $locale)). Need to match "beings with this letter, ends with that letter"? Store...

View Article

SQL Server 2016 STRING_SPLIT Function

During your experience as a SQL Server Database Administrator ... FROM Split WHERE endpos > 0 ) SELECT 'Id' = ROW_NUMBER() OVER (ORDER BY (SELECT 1)), 'Value' =...

View Article


String Comparisons in SQL: The Longest Common Substring.

I’ve always wanted a SQL function that tells me the longest substring shared between two strings. As a present to myself, I’ve written one. I hope someone else finds it useful. There are several...

View Article


SQL 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 Article

Some SQL queries which should be practiced before going to Interview - Part 2

3) SQL server query to remove special characters from a string ... declare @p int set @p = 1 while @p <= @l begin declare @c int set @c = ascii(substring(@s, @p, 1)) if @c between 48 and 57 or @c...

View Article

SUBSTRING (Transact-SQL)

Returns part of a character, binary, text, or image expression in SQL Server. The following example shows how to return only a part of a character string. From the sys.databases table, this query...

View Article

Optimizing 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


T-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 Article

SQL Server 2016 STRING_SPLIT Function

During your experience as a SQL Server Database Administrator ... FROM Split WHERE endpos > 0 ) SELECT 'Id' = ROW_NUMBER() OVER (ORDER BY (SELECT 1)), 'Value' =...

View Article


Visualize DSC Reporting with PowerBI

4 SET @Errors = REPLACE(SUBSTRING(@Errors, 3, Len(@Errors) - 4), '\', '') UPDATE StatusReport SET StatusData = @StatusData, Errors = @Errors WHERE JobId = @JobId END After the conversion, SQL Server...

View Article

SQL 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 Article


String Comparisons in SQL: The Longest Common Substring.

I’ve always wanted a SQL function that tells me the longest substring shared between two strings. As a present to myself, I’ve written one. I hope someone else finds it useful. There are several...

View Article

SQL Server 2016 STRING_SPLIT Function

During your experience as a SQL Server Database Administrator ... FROM Split WHERE endpos > 0 ) SELECT 'Id' = ROW_NUMBER() OVER (ORDER BY (SELECT 1)), 'Value' =...

View Article

Visualize DSC Reporting with PowerBI

4 SET @Errors = REPLACE(SUBSTRING(@Errors, 3, Len(@Errors) - 4), '\', '') UPDATE StatusReport SET StatusData = @StatusData, Errors = @Errors WHERE JobId = @JobId END After the conversion, SQL Server...

View Article
Browsing all 989 articles
Browse latest View live