Use PowerShell to Determine the number DML operations in SQL Server Scripts
We can use one of my favorite libraries to do this easily - .NET's very fast StreamReader, for reading a SQL file. Likewise, since PowerShell uses .NET, this library includes many useful built in...
View ArticleSQL Server – Transact SQL – Get File’s Folder name
begin return null end /* Get base file name and extension */ set @foldername = substring ( @filename , 1 , @iPosOfBackSlashSaved ) return @foldername END; GO grant execute on [dbo].[udfn_getFolderName]...
View ArticleList of database in j2me (java micro edition forum at coderanch) database...
Database developer salary However, even Pointbase was not well tested and produced errors on various SQL statements that their documentation ... REPLACE, SOUNDEX, SUBSTRING, TRIM • Arithmetic...
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 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 ArticleUsing Visual Basic for FTP Access on an AS/400
For those who don't know anything about stored procedures, I would suggest reading this article: Using SQL Stored Procedures with VB.NET. The physical stored procedure in the SQL database would look...
View ArticleDB2 #Memory Area In-Depth: The Package Cache
Borrowing this memory takes some time and resources and means applications will wait even longer on compiling SQL. You can look for package cache overflows in the db2 diagnostic log like this: SELECT...
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 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 ArticleStairway to U-SQL Level 10: Table-Valued Functions and UDTs - SQLServerCentral
Welcome to the next step in our U-SQL journey. This time around, we’re going to take a look at how Table-Valued Functions (TVFs) and User Defined Types (UDTs) are implemented in U-SQL. You’re probably...
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 ArticleDe#Commissioning triggers in 12c
If you take the weekly DB Design quiz at the PL/SQL Challenge website, you may recognise this example ... by default coalesce( sys_context('APEX$SESSION','app_user')...
View ArticleVERT Vuln #School – SQL Injection 103
Blind SQL injection is nearly identical to classical SQL injection ... 1,1) is a MySQL built-in function which is an alias of substring(). It takes in 3 arguments: the original string, the start...
View ArticleHow to get hrs_type and shift code to Flexible Billings
you could create a view using the SQL below and set the datasource of pjinvdet to point ... from pjinvdet d inner join pjtran t on t.fiscalno = left(in_id12,6) and t.system_cd = SUBSTRING(in_id12, 7,2)...
View ArticleUsing Visual Basic for FTP Access on an AS/400
For those who don't know anything about stored procedures, I would suggest reading this article: Using SQL Stored Procedures with VB.NET. The physical stored procedure in the SQL database would look...
View ArticleWhat's New in Database Engine
Transact-SQL Improvements for memory-optimized tables There are several ... Parameters passed into string functions, such as into LTrim or Substring, in a native proc. Inline (meaning single statement)...
View ArticleSQL Server – Transact SQL – Get File’s Folder name
begin return null end /* Get base file name and extension */ set @foldername = substring ( @filename , 1 , @iPosOfBackSlashSaved ) return @foldername END; GO grant execute on [dbo].[udfn_getFolderName]...
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 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 Article