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

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


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


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

What's New in SQL Server 2016 (Database Engine)

SQL Server 2016 is a 64-bit application ... Parameters passed into string functions, such as into LTrim or Substring, in a native proc. Inline (meaning single statement) table-valued functions (TVFs)...

View Article

SQL SERVER – Testing Database Performance with tSQLt and SQLQueryStress

To get rid of such problems, I suggest looking into various aspects of database testing, including load testing and performance testing of SQL Server in general by ... nchar', 'ntext') THEN 2 ELSE 1...

View Article


What Agent #Job is Running – Back to Basics

I can leave the query significantly less complicated if not for the fact that I wanted to also know the sql text in a well formatted manner ... CONVERT(BINARY(16), SUBSTRING(p.program_name,...

View Article

#WordPress Table Prefix: Changing It Does Nothing to Improve Security

Using SQL injection, an attacker essentially gains the same level ... They do this: SELECT DISTINCT SUBSTRING(`TABLE_NAME` FROM 1 FOR ( LENGTH(`TABLE_NAME`)-8 ) ) FROM information_schema.TABLES WHERE...

View Article

How to Log and Monitor Your Server’s #Memory Usage without Using Third #Party...

You can easily identify which database in your SQL instance is consuming memory with the help ... SET @Count = 0 SET @pmv = '' set @amv = '' WHILE @Count <= LEN(@pm) BEGIN IF SUBSTRING(@pm,@Count,1)...

View Article


SQL Injection: Out-of-Band Exploitation

Recently I had a fairly slow Time-Based SQL injection vulnerability ... so I recommend combining functions like SUBSTR() and HEX() to ensure that the length does not exceed the maximum allowed in...

View Article


How to Log and Monitor Your Server’s #Memory Usage without Using Third #Party...

You can easily identify which database in your SQL instance is consuming memory with the help ... SET @Count = 0 SET @pmv = '' set @amv = '' WHILE @Count <= LEN(@pm) BEGIN IF SUBSTRING(@pm,@Count,1)...

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 Injection: Out-of-Band Exploitation

Recently I had a fairly slow Time-Based SQL injection vulnerability ... so I recommend combining functions like SUBSTR() and HEX() to ensure that the length does not exceed the maximum allowed in...

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

What Agent #Job is Running – Back to Basics

I can leave the query significantly less complicated if not for the fact that I wanted to also know the sql text in a well formatted manner ... CONVERT(BINARY(16), SUBSTRING(p.program_name,...

View Article


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


Determine Which Cluster Node Failed (Analytics Platform System)

The following SQL statement shows how to use the sys.dm_pdw_component_health_active_alerts system view to find the name of the server that failed. SELECT SUBSTRING( component_instance_id, 2,...

View Article

What Agent #Job is Running – Back to Basics

I can leave the query significantly less complicated if not for the fact that I wanted to also know the sql text in a well formatted manner ... CONVERT(BINARY(16), SUBSTRING(p.program_name,...

View Article

How to Log and Monitor Your Server’s #Memory Usage without Using Third #Party...

You can easily identify which database in your SQL instance is consuming memory with the help ... SET @Count = 0 SET @pmv = '' set @amv = '' WHILE @Count <= LEN(@pm) BEGIN IF SUBSTRING(@pm,@Count,1)...

View Article
Browsing all 989 articles
Browse latest View live