OV3 Online Administration 3.0 SQL Injection
substr(getenv ("REMOTE_ADDR"),0,$nFirstThreeBytes); 33 ... __FILE__, __LINE__); 117: list($ret)=db_fetch_row($result,""); 289: $sql="SELECT ".db_convert("limit0",""," 1")." c_id,u_id,u_pwd,u_logtime...
View ArticleStairway to U-SQL Level 14: Local U-SQL Scalar Functions with C#
This is known as a code-behind file, and we can add C# methods to this file, which will be available to our U-SQL script. p.Postcode.IndexOf(" ") == -1 ? p.Postcode : p.Postcode.Substring(0,...
View ArticleChange a Substring with SQL
However, my SQL command gives me an invalid token error at the opening parenthesis of SUBSTR in the SET statement. Is there a rule that you can’t use SUBSTR in a SET statement? If so, do you have a...
View ArticleStairway to U-SQL Level 14: Local U-SQL Scalar Functions with C#
This is known as a code-behind file, and we can add C# methods to this file, which will be available to our U-SQL script. p.Postcode.IndexOf(" ") == -1 ? p.Postcode : p.Postcode.Substring(0,...
View ArticleT-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 ArticleSUBSTRING (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 ArticleChange a Substring with SQL
However, my SQL command gives me an invalid token error at the opening parenthesis of SUBSTR in the SET statement. Is there a rule that you can’t use SUBSTR in a SET statement? If so, do you have a...
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 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 ArticleT-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 ArticleStairway to U-SQL Level 14: Local U-SQL Scalar Functions with C#
This is known as a code-behind file, and we can add C# methods to this file, which will be available to our U-SQL script. p.Postcode.IndexOf(" ") == -1 ? p.Postcode : p.Postcode.Substring(0,...
View ArticleScript to find out when SQL Server #Restore will finish
Did you know that SQL Server’s ERRORLOG actually calculates its own estimates ... sp_readerrorlog 0, 1, 'Recovery completed', @DBName SELECT TOP 1 @DBName AS [DBName] ,[LogDate] ,CASE WHEN...
View ArticleSUBSTRING (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 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 ArticleScript to find out when SQL Server recovery will finish
Did you know that SQL Server’s ERRORLOG actually calculates its own estimates ... sp_readerrorlog 0, 1, 'Recovery completed', @DBName SELECT TOP 1 @DBName AS [DBName] ,[LogDate] ,CASE WHEN...
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 ArticleHey, those variables don't grow on trees, y'know!
And it's almost exactly what fish described in the meeting: He uses a substring function to extract the date and time from the filename and store them into two variables, then concatenates the two...
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 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 ArticleSUBSTRING (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