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

Queries to inventory your SQL Server Agent #Jobs

SQL Server Agent can only provide an answer to this question ... for display SELECT schedule_id ,job_id ,LEFT(CAST(next_run_date AS VARCHAR),4)+ '-' +SUBSTRING(CAST(next_run_date AS VARCHAR),5,2)+'-'...

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


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

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


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

Concurrency and workload management in SQL Data Ware#House

As mentioned above, SQL DW supports two kinds of resource class types ... sys.dm_pdw_nodes WHERE type = 'COMPUTE') END DECLARE @DWU_NUM INT SET @DWU_NUM = CAST (SUBSTRING(@DWU, 3, LEN(@DWU)-2) AS INT)...

View Article

Error when using DBLINK to SQL Server from Oracle : does not support...

l_rows.count loop begin insert into tab_les (NOS, DETAIL_SPEC, DETAIL_SPEC_CMMT, ) values( l_rows(i).NOS , l_rows(i).DETAIL_SPEC , l_rows(i).DETAIL_SPEC_CMMT ); end; end loop; exception when others...

View Article


SQL Server vs Oracle: Substring

Continuing the comparison between these two database giants, we dive into the substring function. If you’ve been working with databases for a while, I’m sure you’ve had to parse a string and while...

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

Guru: Legible Hexadecimal

I wrote a SQL function to display a hexadecimal number in that format ... while v_Index < v_Length do set v_Output = v_Output concat substr(v_Work, v_Index, 2) concat ' '; set v_Index = v_Index + 2;...

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

Queries to inventory your SQL Server Agent #Jobs

SQL Server Agent can only provide an answer to this question ... for display SELECT schedule_id ,job_id ,LEFT(CAST(next_run_date AS VARCHAR),4)+ '-' +SUBSTRING(CAST(next_run_date AS VARCHAR),5,2)+'-'...

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

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


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


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

Trigram Wildcard String Search in SQL Server

These articles were written by several of the SQL Server industry’s leading experts, including Aaron Bertrand, Paul White, Paul Randal, Jonathan Kehayias, Erin Stellato, Glenn Berry, and Joe Sack....

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
Browsing all 989 articles
Browse latest View live