Comparing SQL Server and MySQL Functions
You’ll be happy to know that the following functions are usable in both MySQL and SQL Server queries without any modifications: ASCII, LEFT, LOWER, LTRIM, REPLACE, REVERSE, RIGHT, RTRIM, SOUNDEX,...
View ArticleOracle SUBSTR Function Explained with Examples
The Oracle SUBSTR function is used to get a smaller string (the substring ... The only way that I know of to get a SUBSTR from a LONG variable is to write a PL/SQL procedure that takes a ROWID, then...
View ArticleSQL - String Functions
SQL> UPDATE table_test -> SET blob_col=LOAD_FILE('/tmp/picture') -> WHERE id=1; ..... The first syntax returns the position of the first occurrence of substring substr in string str. The...
View ArticleApp's in N1QL land: Magic with pretty, suffix, update and more
Pattern matching is a widely used functionality in SQL queries, and is typically achieved using the ... as it has fixed prefix substring. But LIKE ‘%foo%’ is generally expensive. Such pattern matching...
View ArticleABAP #News for Release 7.51 – Case Insensitive Search in SQL and Other New...
All in all, there are the following new SQL functions available as built-in functions in ... A blank in char is significant. x x SUBSTRING( arg, pos, len ) Substring of arg from the position pos in the...
View ArticleSQL SERVER – Removing Leading Zeros From Column in Table
I have always received the question regarding how to reserve leading zeroes in SQL Server while displaying them on the ... data SELECT * FROM Table1 GO -- Remove leading zeros SELECT SUBSTRING(Col1,...
View ArticleAX CRUD
This avoids a SQL bottleneck. for (int i = 0 ... Guid DMSStaticGUID = GetDMSStaticGUID(); string strTheGuid = DMSStaticGUID.ToString().Substring(0, 20); Interlocked.Increment(ref sequential); //string...
View ArticleSQL Server Log Shipping Monitoring and Email Notification
Tempname,0) - 1) SELECT @Filedate = CONVERT (DATETIME,SUBSTRING (@Tempname, 1,8 ... END END DROP TABLE #TABLE_LS_MONITOR END GO Step 5: Create a SQL Server Agent Job for sending Log Shipping...
View ArticleComparing SQL Server and MySQL Functions
You’ll be happy to know that the following functions are usable in both MySQL and SQL Server queries without any modifications: ASCII, LEFT, LOWER, LTRIM, REPLACE, REVERSE, RIGHT, RTRIM, SOUNDEX,...
View ArticleT-SQL: RIGHT, LEFT, SUBSTRING and CHARINDEX Functions
This article explains the functionality and uses of the LEFT, RIGHT, SUBSTRING and CHARINDEX functions in SQL. This article will leave you with sound knowledge and understanding that you can take away...
View ArticleBBQSQL - A Blind SQL Injection Exploitation Tool
Blind SQL injection can be a pain to exploit ... In this example, the attacker is looking to select the database version: vulnerable_parameter'; if(ASCII(SUBSTRING((SELECT @@version LIMIT 1 OFFSET...
View ArticleABAP #News for Release 7.51 – Case Insensitive Search in SQL and Other New...
All in all, there are the following new SQL functions available as built-in functions in ... A blank in char is significant. x x SUBSTRING( arg, pos, len ) Substring of arg from the position pos in the...
View ArticleTop 80 + SQL Query Interview Questions and Answers with Examples
Oracle Equivalent of SQL Server SUBSTRING is SUBSTR, Query : select substr(FIRST_NAME,0,3) from employee SQL Server Equivalent of Oracle SUBSTR is SUBSTRING, Query : select substring(FIRST_NAME,1,3)...
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 ArticleConvert User Friendly Retention to DateTime value with PowerShell
In my SQL Server environment we backup our databases to local disk ... month #> [int]$Length = ($UserFriendlyRetention).Length $Value = ($UserFriendlyRetention).Substring(0,$Length-1) $Units =...
View ArticleApp's in N1QL land: Magic with pretty, suffix, update and more
Pattern matching is a widely used functionality in SQL queries, and is typically achieved using the ... as it has fixed prefix substring. But LIKE ‘%foo%’ is generally expensive. Such pattern matching...
View ArticleABAP #News for Release 7.51 – Case Insensitive Search in SQL and Other New...
All in all, there are the following new SQL functions available as built-in functions in ... A blank in char is significant. x x SUBSTRING( arg, pos, len ) Substring of arg from the position pos in the...
View ArticleDEFEATING SQL INJECTION USING QUERY STRING ATTACK PREVENTION TECHNIQUE
SQL injection attack is a technique to exploit security vulnerability ... SELECT * FROM Accounts WHERE user= user1 AND ASCII (SUBSTRING((SELECT TOP 1 name FROM sysobjects),1,1))>x WAITFOR DELAY...
View ArticleAX CRUD
This avoids a SQL bottleneck. for (int i = 0 ... Guid DMSStaticGUID = GetDMSStaticGUID(); string strTheGuid = DMSStaticGUID.ToString().Substring(0, 20); Interlocked.Increment(ref sequential); //string...
View ArticleBBQSQL - A Blind SQL Injection Exploitation Tool
Blind SQL injection can be a pain to exploit ... In this example, the attacker is looking to select the database version: vulnerable_parameter'; if(ASCII(SUBSTRING((SELECT @@version LIMIT 1 OFFSET...
View Article