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 ArticleSQL Challenge 19: Larger Test Data
Not so for the SQL Challenge #19. Either I didn't know the incantation ... emp_cnt, max_span ) AS ( SELECT 1 , SUBSTR(to_char( to_date(1,'J'),'Jsp'),1,1) , INITCAP(SUBSTR(to_char(...
View ArticleSQL 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 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 ArticleDBMS_PARALLEL_EXECUTE.RUN_TASK is running sequentialy
l_count loop v_sqlInsert := v_sqlInsert || ' CD_FCIM = ''' || v_array(i) || ''' OR'; end loop; v_sqlInsert := SUBSTR(v_sqlInsert ... v_sqlInsert, DBMS_SQL.NATIVE, parallel_level => 4); Everything...
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 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 ArticleQueries 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 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 ArticleGuru: 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 ArticleSQL Challenge 19: Larger Test Data
Not so for the SQL Challenge #19. Either I didn't know the incantation ... emp_cnt, max_span ) AS ( SELECT 1 , SUBSTR(to_char( to_date(1,'J'),'Jsp'),1,1) , INITCAP(SUBSTR(to_char(...
View ArticleError 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 ArticleWhat's new in Database Engine - SQL Server 2016
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 ArticleGuru: 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 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 ArticleConcurrency 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 ArticleFinding all Palindromes Contained in Strings with SQL
SQL is a really cool language ... palindromes (word, palindrome, start, length) AS ( -- This part just creates the even/odd semantics SELECT word, substring(word, start, x), start, x FROM starts CROSS...
View ArticleSQL Challenge 19: Larger Test Data
Not so for the SQL Challenge #19. Either I didn't know the incantation ... emp_cnt, max_span ) AS ( SELECT 1 , SUBSTR(to_char( to_date(1,'J'),'Jsp'),1,1) , INITCAP(SUBSTR(to_char(...
View ArticleError 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 ArticleSQL 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