Comments for SQL with Manoj https://sqlwithmanoj.com SQL Server, SQL Queries, DB concepts, Azure, Spark SQL, Tips & Tricks with >500 articles !!! Mon, 08 Dec 2025 07:44:25 +0000 hourly 1 http://wordpress.com/ Comment on SQL Error – The server may be running out of resources, or the assembly may not be trusted with PERMISSION_SET = EXTERNAL_ACCESS or UNSAFE by sulabh jain https://sqlwithmanoj.com/2016/06/22/sql-error-the-server-may-be-running-out-of-resources-or-the-assembly-may-not-be-trusted-with-permission_set-external_access-or-unsafe/comment-page-1/#comment-121456 Mon, 08 Dec 2025 07:44:25 +0000 http://sqlwithmanoj.com/?p=6456#comment-121456 In reply to Pranay Chonkar.

Thanks .. Worked for me

]]>
Comment on SQL Error – Unable to generate a temporary class (result=1), error CVT1108, error CS1583 by Ruwantha https://sqlwithmanoj.com/2015/08/14/sql-error-unable-to-generate-a-temporary-class-result1-error-cvt1108-error-cs1583/comment-page-1/#comment-121440 Sun, 20 Jul 2025 18:38:08 +0000 http://sqlwithmanoj.com/?p=6624#comment-121440 its workng now. thanks for sharing.

]]>
Comment on What is SQL, PL/SQL, T-SQL and difference between them by SQL, PL-SQL 및 T-SQL의 차이점은 무엇입니까? - 스택플로우 https://sqlwithmanoj.com/2015/05/03/what-is-sql-plsql-t-sql-and-difference-between-them/comment-page-1/#comment-121160 Thu, 21 Sep 2023 17:25:00 +0000 http://sqlwithmanoj.com/?p=2899#comment-121160 […] 이것을 내 블로그 게시물 에 문서화했다 […]

]]>
Comment on SQL Error – SQL Server blocked access to procedure ‘dbo.sp_send_dbmail’ of component ‘Database Mail XPs’ by Muhammad Kamran https://sqlwithmanoj.com/2015/06/25/sql-error-sql-server-blocked-access-to-procedure-dbo-sp_send_dbmail-of-component-database-mail-xps/comment-page-1/#comment-118180 Tue, 16 May 2023 19:47:59 +0000 http://sqlwithmanoj.com/?p=6491#comment-118180 Thanks for providing a solution to this SQL error

]]>
Comment on Custom Query to check Frequency, Interval and Time of multiple Job’s in SQL Server by slot anti rungkat gacor https://sqlwithmanoj.com/2016/03/22/custom-query-to-check-frequency-interval-and-time-of-multiple-jobs-in-sql-server/comment-page-1/#comment-118070 Tue, 09 May 2023 18:46:49 +0000 http://sqlwithmanoj.com/?p=5918#comment-118070 slot anti rungkat gacor

Custom Query to check Frequency, Interval and Time of multiple Job’s in SQL Server | SQL with Manoj

]]>
Comment on SELECT or Query nodes in hierarchial or nested XML by Shredding XML into an SQL table https://sqlwithmanoj.com/2011/07/13/select-or-query-nodes-in-hierarchial-or-nested-xml/comment-page-1/#comment-117825 Sun, 23 Apr 2023 19:29:15 +0000 http://sqlwithmanoj.wordpress.com/?p=768#comment-117825 […] SELECT or Query nodes in hierarchial or nested XML […]

]]>
Comment on SQL Server 2016 RTM full and final version available – Download it now !!! by The SQL Server Network Interface library could not deregister the Service Principal Name https://sqlwithmanoj.com/2016/06/01/sql-server-2016-full-and-final-version-available-download-it-now/comment-page-1/#comment-117330 Sun, 19 Mar 2023 08:29:03 +0000 http://sqlwithmanoj.com/?p=6323#comment-117330 […] SQL Server Installation setup package from this link: SQL Server 2016_x64_ENU Go to setup.exe >> Maintenance >> […]

]]>
Comment on SQL Error – The server may be running out of resources, or the assembly may not be trusted with PERMISSION_SET = EXTERNAL_ACCESS or UNSAFE by Savo Jovanovic https://sqlwithmanoj.com/2016/06/22/sql-error-the-server-may-be-running-out-of-resources-or-the-assembly-may-not-be-trusted-with-permission_set-external_access-or-unsafe/comment-page-1/#comment-116908 Thu, 02 Mar 2023 21:27:35 +0000 http://sqlwithmanoj.com/?p=6456#comment-116908 Thank you! It help fixing Configuration Manager connection issue after the database restore.

]]>
Comment on SQL Planner, a monitoring tool for SQL Server for DBAs & Developers by Major https://sqlwithmanoj.com/2022/04/22/sql-planner-a-monitoring-tool-for-sql-server-for-dbas-developers/comment-page-1/#comment-116745 Fri, 24 Feb 2023 00:27:56 +0000 http://sqlwithmanoj.com/?p=10678#comment-116745 Hello Manoj, Your videos on YouTube are great, but I would like to ask for a favour if possible, to create some videos on some advanced sql server concepts difficult to find:
1. Update and Delete statements on 5 or more Normalised tables,
probably using joins over foreign keys.
2. how to create views and groups of Users in a database.
3. creating a set of transactions using TCL
4. Implementing Triggers on tables
5. Creating scripts to automatically backup and restore databases
6. Select statements using all clauses to select a particular
row/rows on 5 or more Normalised tables, probably using joins
over foreign keys.
7. The implementation of all these using a particular programming
language.

]]>
Comment on What is SQL, PL/SQL, T-SQL and difference between them by What is the difference between SQL, PL-SQL and T-SQL? https://sqlwithmanoj.com/2015/05/03/what-is-sql-plsql-t-sql-and-difference-between-them/comment-page-1/#comment-115211 Wed, 04 Jan 2023 08:51:06 +0000 http://sqlwithmanoj.com/?p=2899#comment-115211 […] I’ve documented this in my blog post. […]

]]>
Comment on Azure Data Factory (ADF) Pipeline failure – found more columns than expected column count (DelimitedTextMoreColumnsThanDefined) by Keerthana https://sqlwithmanoj.com/2020/07/29/azure-data-factory-adf-pipeline-failure-found-more-columns-than-expected-column-count-delimitedtextmorecolumnsthandefined/comment-page-1/#comment-110627 Mon, 26 Sep 2022 11:21:18 +0000 http://sqlwithmanoj.com/?p=9790#comment-110627 i am getting the same error while copying from gen1 to sql server. I cross checked every columns, they are perfect match.

]]>
Comment on SQL DBA – Windows could not start the SQL Server… refer to service-specific error code 17051 – SQL Server Evaluation period has expired by Cathrine https://sqlwithmanoj.com/2015/05/31/windows-could-not-start-the-sql-server-refer-to-service-specific-error-code-17051-sql-server-evaluation-period-has-expired/comment-page-1/#comment-110345 Thu, 22 Sep 2022 11:15:45 +0000 http://sqlwithmanoj.com/?p=3291#comment-110345 Thank you for the information , it solved my issue.

]]>
Comment on All about Blockchain – Introduction by Jess https://sqlwithmanoj.com/2018/06/25/all-about-blockchain-introduction/comment-page-1/#comment-109389 Thu, 08 Sep 2022 18:52:43 +0000 http://sqlwithmanoj.com/?p=8244#comment-109389 A very comprehensive post indeed! If you are looking for fast blockchain SQL query results, fast data exports to S3 or your own data warehouse and full API access and functionality, check out Luabase at luabase . com!

]]>
Comment on SQL DBA – Windows could not start the SQL Server… refer to service-specific error code 17051 – SQL Server Evaluation period has expired by Charles Ndanga https://sqlwithmanoj.com/2015/05/31/windows-could-not-start-the-sql-server-refer-to-service-specific-error-code-17051-sql-server-evaluation-period-has-expired/comment-page-1/#comment-109304 Wed, 07 Sep 2022 10:51:55 +0000 http://sqlwithmanoj.com/?p=3291#comment-109304 Awesome very helpful indeed>

]]>
Comment on Implementing “Row Level Security” (RLS) with “Block Predicates” in SQL Server 2016 – Part 2 by ROW-LEVEL SECURITY IN SQL – Erhard RAINER https://sqlwithmanoj.com/2016/01/09/implementing-row-level-security-rls-with-block-predicates-in-sql-server-2016-part-2/comment-page-1/#comment-107416 Sun, 07 Aug 2022 20:30:27 +0000 http://sqlwithmanoj.com/?p=5233#comment-107416 […] Manoj – Implementing “Row Level Security” (RLS) with “Filter Predicate” in SQL Server 2016 – Part 1 | Part 2 […]

]]>
Comment on SQLNCLI11 for linked server “XYZ” returned message “Requested conversion is not supported” | SQL Server 2012 upgrade behavior changes by Why is this explicit cast causing problems only with a Linked Server? https://sqlwithmanoj.com/2015/03/27/sqlncli11-for-linked-server-xyz-returned-message-requested-conversion-is-not-supported-sql-server-2012-upgrade-behavior-changes/comment-page-1/#comment-106877 Fri, 29 Jul 2022 22:35:21 +0000 http://sqlwithmanoj.wordpress.com/?p=1851#comment-106877 […] This is kind of SQL 2012 feature/bug as per here. […]

]]>
Comment on Powershell error – The term ‘Login-AzureRmAccount’ is not recognized as the name of a cmdlet, function, script file, or operable program by Run Script At Portal Thread - logininfos.com https://sqlwithmanoj.com/2017/06/08/powershell-error-the-term-login-azurermaccount-is-not-recognized-as-the-name-of-a-cmdlet-function-script-file-or-operable-program/comment-page-1/#comment-106066 Thu, 14 Jul 2022 20:50:36 +0000 http://sqlwithmanoj.com/?p=7482#comment-106066 […] » Visit Now Jun 08, 2017 · If you are new to PowerShell like me then you would have encountered this ans similar errors. Recently while executing one PowerShell script to connect to Azure Resource Manager I faced following error: XyzPSScript.ps1 : The term ‘Login-AzureRmAccount’ is not recognized as the name of a cmdlet, function, script file, or operable program. […]

]]>
Comment on Implementing “Row Level Security” (RLS) with “Block Predicates” in SQL Server 2016 – Part 2 by Brent O https://sqlwithmanoj.com/2016/01/09/implementing-row-level-security-rls-with-block-predicates-in-sql-server-2016-part-2/comment-page-1/#comment-106048 Thu, 14 Jul 2022 09:41:30 +0000 http://sqlwithmanoj.com/?p=5233#comment-106048 Great read thhanks

]]>
Comment on Reading JSON string with Nested array of elements | SQL Server 2016 – Part 3 by Complex multi-level JSON and SQL – what am I doing wrong? – SQL https://sqlwithmanoj.com/2015/11/01/reading-json-string-with-nested-elements-sql-server-2016-part-3/comment-page-1/#comment-105979 Tue, 12 Jul 2022 16:55:48 +0000 http://sqlwithmanoj.com/?p=4654#comment-105979 […] answering my own question – I finally figured it out with help from this site – https://sqlwithmanoj.com/2015/11/01/reading-json-string-with-nested-elements-sql-server-2016-part-3/ […]

]]>
Comment on Implementing “Row Level Security” (RLS) with “Filter Predicate” in SQL Server 2016 – Part 1 by ROW-LEVEL SECURITY IN SQL – Erhard RAINER https://sqlwithmanoj.com/2015/07/13/implementing-row-level-security-rls-with-sql-server-2016/comment-page-1/#comment-105690 Wed, 06 Jul 2022 07:43:21 +0000 http://sqlwithmanoj.com/?p=4092#comment-105690 […] Quelle […]

]]>
Comment on Azure Data Factory (ADF) Pipeline failure – found more columns than expected column count (DelimitedTextMoreColumnsThanDefined) by Sourabh https://sqlwithmanoj.com/2020/07/29/azure-data-factory-adf-pipeline-failure-found-more-columns-than-expected-column-count-delimitedtextmorecolumnsthandefined/comment-page-1/#comment-104743 Thu, 09 Jun 2022 07:01:36 +0000 http://sqlwithmanoj.com/?p=9790#comment-104743 I cannot find copy binary in my copy data activity

]]>
Comment on Reading JSON string with Nested array of elements | SQL Server 2016 – Part 3 by Manoj Pandey https://sqlwithmanoj.com/2015/11/01/reading-json-string-with-nested-elements-sql-server-2016-part-3/comment-page-1/#comment-104693 Tue, 07 Jun 2022 15:45:56 +0000 http://sqlwithmanoj.com/?p=4654#comment-104693 In reply to angel.

What exactly do you want to do by C# here?

]]>
Comment on Reading JSON string with Nested array of elements | SQL Server 2016 – Part 3 by angel https://sqlwithmanoj.com/2015/11/01/reading-json-string-with-nested-elements-sql-server-2016-part-3/comment-page-1/#comment-104684 Tue, 07 Jun 2022 09:43:43 +0000 http://sqlwithmanoj.com/?p=4654#comment-104684 can u please provide c# code for this.

]]>
Comment on Reading JSON string with Nested array of elements | SQL Server 2016 – Part 3 by [SOLVED] Complex multi-level JSON and SQL – what am I doing wrong? – BugsFixing https://sqlwithmanoj.com/2015/11/01/reading-json-string-with-nested-elements-sql-server-2016-part-3/comment-page-1/#comment-102344 Mon, 18 Apr 2022 14:44:05 +0000 http://sqlwithmanoj.com/?p=4654#comment-102344 […] answering my own question – I finally figured it out with help from this site – https://sqlwithmanoj.com/2015/11/01/reading-json-string-with-nested-elements-sql-server-2016-part-3/ […]

]]>
Comment on BCP { IN | OUT | QUERYOUT } – the BCP util in SQL Server by Manoj Pandey https://sqlwithmanoj.com/2011/09/09/bcp-in-out-queryout-the-bcp-util/comment-page-1/#comment-102069 Tue, 12 Apr 2022 12:17:39 +0000 http://sqlwithmanoj.wordpress.com/?p=847#comment-102069 In reply to Louis.

Sorry for the bad experience, the comments are moderated here, so until those are approved won’t show up here.

]]>
Comment on BCP { IN | OUT | QUERYOUT } – the BCP util in SQL Server by Manoj Pandey https://sqlwithmanoj.com/2011/09/09/bcp-in-out-queryout-the-bcp-util/comment-page-1/#comment-102068 Tue, 12 Apr 2022 12:16:58 +0000 http://sqlwithmanoj.wordpress.com/?p=847#comment-102068 In reply to Louis.

Do you want to extract one column from a table or BCP file? In either case, you will need an SQL instance/engine to read and process it further.

]]>
Comment on BCP { IN | OUT | QUERYOUT } – the BCP util in SQL Server by Louis https://sqlwithmanoj.com/2011/09/09/bcp-in-out-queryout-the-bcp-util/comment-page-1/#comment-102067 Tue, 12 Apr 2022 12:09:31 +0000 http://sqlwithmanoj.wordpress.com/?p=847#comment-102067 Wow! why do you run that website if you are not willing to receive open questions. If you don’t have the answer, maybe others would. This is just sain humility, nobody knows everything.

]]>
Comment on BCP { IN | OUT | QUERYOUT } – the BCP util in SQL Server by Louis https://sqlwithmanoj.com/2011/09/09/bcp-in-out-queryout-the-bcp-util/comment-page-1/#comment-102044 Mon, 11 Apr 2022 19:32:13 +0000 http://sqlwithmanoj.wordpress.com/?p=847#comment-102044 Thanks for just deleting my question

]]>
Comment on BCP { IN | OUT | QUERYOUT } – the BCP util in SQL Server by Louis https://sqlwithmanoj.com/2011/09/09/bcp-in-out-queryout-the-bcp-util/comment-page-1/#comment-102029 Mon, 11 Apr 2022 13:03:48 +0000 http://sqlwithmanoj.wordpress.com/?p=847#comment-102029 Hello and thanks for sharing. Is there a way to extract one column from one table from a BCP file without an sql server instance. I need to make a script from a dacpac file from an external service, I’d like to just extract the needed data from it wtihout having to put it on a server.

]]>
Comment on SQL Error – The ‘Microsoft.ACE.OLEDB.12.0’ provider is not registered on the local machine. (System.Data) by Varun Gupta https://sqlwithmanoj.com/2016/12/24/sql-error-the-microsoft-ace-oledb-12-0-provider-is-not-registered-on-the-local-machine-system-data/comment-page-1/#comment-101280 Thu, 24 Mar 2022 16:59:56 +0000 http://sqlwithmanoj.com/?p=7083#comment-101280 GREAT MAN….superb…

]]>
Comment on SQL Error – SQL Server Installation fails | Attributes do not match. Present attributes (Directory, Compressed, NotContentIndexed)… by ayman https://sqlwithmanoj.com/2018/01/09/sql-error-sql-server-installation-fails-attributes-do-not-match-present-attributes-directory-compressed-notcontentindexed/comment-page-1/#comment-100460 Tue, 01 Mar 2022 10:39:05 +0000 http://sqlwithmanoj.com/?p=8185#comment-100460 Attributes do not match. Present attributes (Directory, Compressed) , included attributes (0), excluded attributes (Compressed, Encrypted).

Attributes do not match. Present attributes (Directory, Compressed) , included attributes (0), excluded attributes (Compressed, Encrypted).

how can i fix this

]]>
Comment on Get started with Python on SQL Server – Run Python with T-SQL on SSMS by apoleptika https://sqlwithmanoj.com/2018/08/10/get-started-with-python-on-sql-server-run-python-with-t-sql-on-ssms/comment-page-1/#comment-100445 Mon, 28 Feb 2022 20:21:00 +0000 http://sqlwithmanoj.com/?p=9010#comment-100445 thanks
my problem was solved after restarting SQL Server and Launchpad

]]>
Comment on DB Basics – What are Candidate, Primary, Composite & Super Keys and Difference between them? by Manoj Pandey https://sqlwithmanoj.com/2014/09/15/db-basics-what-are-candidate-primary-composite-super-keys-and-difference-between-them/comment-page-1/#comment-100400 Sun, 27 Feb 2022 12:32:53 +0000 http://sqlwithmanoj.com/?p=4504#comment-100400 In reply to Jithin.

Thanks for pointing out Jithin, will correct it 🙂

]]>
Comment on DB Basics – What are Candidate, Primary, Composite & Super Keys and Difference between them? by Jithin https://sqlwithmanoj.com/2014/09/15/db-basics-what-are-candidate-primary-composite-super-keys-and-difference-between-them/comment-page-1/#comment-100399 Sun, 27 Feb 2022 12:10:04 +0000 http://sqlwithmanoj.com/?p=4504#comment-100399 Correction -Composite Key: If a table “do not”have a single column that qualifies for a Candidate key, then you have to select 2 or more columns to make a row unique

]]>
Comment on DIRTY reads and PHANTOM reads – SQL Server by 没压岁钱了(一)- 浅谈事务隔离级别 - 点击领取 https://sqlwithmanoj.com/2011/07/20/dirty-reads-and-phantom-reads/comment-page-1/#comment-98934 Fri, 14 Jan 2022 01:16:08 +0000 http://sqlwithmanoj.wordpress.com/?p=776#comment-98934 […] Difference between Phantom Read and Dirty Read […]

]]>
Comment on UPDATE statement with new .WRITE Clause – SQL Server by [Solved] nvarchar(max) vs NText https://sqlwithmanoj.com/2011/10/04/update-statement-with-new-write-clause/comment-page-1/#comment-98670 Wed, 05 Jan 2022 23:40:35 +0000 http://sqlwithmanoj.wordpress.com/?p=889#comment-98670 […] Here you can found full example of using .WRITE clause. […]

]]>
Comment on SQL Error – SQL Server blocked access to procedure ‘dbo.sp_send_dbmail’ of component ‘Database Mail XPs’ by 2021 blogging in review (Thank you & Happy New Year 2022 !!!) | SQL with Manoj https://sqlwithmanoj.com/2015/06/25/sql-error-sql-server-blocked-access-to-procedure-dbo-sp_send_dbmail-of-component-database-mail-xps/comment-page-1/#comment-98564 Mon, 03 Jan 2022 05:25:51 +0000 http://sqlwithmanoj.com/?p=6491#comment-98564 […] SQL Server blocked access to procedure ‘dbo.sp_send_dbmail’ of component ‘Database Mail XPs’ (5,268 […]

]]>
Comment on Using IDENTITY function with SELECT statement in SQL Server by 2021 blogging in review (Thank you & Happy New Year 2022 !!!) | SQL with Manoj https://sqlwithmanoj.com/2011/12/15/using-identity-function-with-select-statement/comment-page-1/#comment-98563 Mon, 03 Jan 2022 05:25:48 +0000 http://sqlwithmanoj.wordpress.com/?p=1033#comment-98563 […] Using IDENTITY function with SELECT statement in SQL Server (5,960 […]

]]>
Comment on SQL DBA – Windows could not start the SQL Server… refer to service-specific error code 17051 – SQL Server Evaluation period has expired by 2021 blogging in review (Thank you & Happy New Year 2022 !!!) | SQL with Manoj https://sqlwithmanoj.com/2015/05/31/windows-could-not-start-the-sql-server-refer-to-service-specific-error-code-17051-sql-server-evaluation-period-has-expired/comment-page-1/#comment-98562 Mon, 03 Jan 2022 05:25:45 +0000 http://sqlwithmanoj.com/?p=3291#comment-98562 […] Windows could not start SQL Server, error 17051, SQL Server Eval has expired (6,032 […]

]]>
Comment on Reading JSON string with Nested array of elements | SQL Server 2016 – Part 3 by 2021 blogging in review (Thank you & Happy New Year 2022 !!!) | SQL with Manoj https://sqlwithmanoj.com/2015/11/01/reading-json-string-with-nested-elements-sql-server-2016-part-3/comment-page-1/#comment-98561 Mon, 03 Jan 2022 05:25:42 +0000 http://sqlwithmanoj.com/?p=4654#comment-98561 […] Reading JSON string with Nested array of elements (10,527 […]

]]>
Comment on SQL Error – The server may be running out of resources, or the assembly may not be trusted with PERMISSION_SET = EXTERNAL_ACCESS or UNSAFE by 2021 blogging in review (Thank you & Happy New Year 2022 !!!) | SQL with Manoj https://sqlwithmanoj.com/2016/06/22/sql-error-the-server-may-be-running-out-of-resources-or-the-assembly-may-not-be-trusted-with-permission_set-external_access-or-unsafe/comment-page-1/#comment-98560 Mon, 03 Jan 2022 05:25:39 +0000 http://sqlwithmanoj.com/?p=6456#comment-98560 […] The server may be running out of resources, or the assembly may not be trusted with PERMISSION_SET =… (12,151 […]

]]>
Comment on SQL Error – The ‘Microsoft.ACE.OLEDB.12.0’ provider is not registered on the local machine. (System.Data) by Santa claus https://sqlwithmanoj.com/2016/12/24/sql-error-the-microsoft-ace-oledb-12-0-provider-is-not-registered-on-the-local-machine-system-data/comment-page-1/#comment-98029 Wed, 22 Dec 2021 04:06:12 +0000 http://sqlwithmanoj.com/?p=7083#comment-98029 muuuuuuuuuuuchas gracias joven, feliz navidaaaaaaaaaaaaaaaaad

]]>
Comment on SQL DBA – Move user Database (.mdf & .ldf files) to another drive by Move SQL Server Database Files - BeginCodingNow.com https://sqlwithmanoj.com/2012/12/17/sql-basics-move-use-database-mdf-ldf-files-to-another-drive/comment-page-1/#comment-97972 Tue, 21 Dec 2021 02:16:52 +0000 http://sqlwithmanoj.com/?p=7013#comment-97972 […] called SQL with Manoj. He also has a website with the same information. The article is called SQL DBA – Move user Database (.mdf & .ldf files) to another drive.The general steps are as follows, assuming you had a database called myDataB. You can substitute […]

]]>
Comment on Interview Questions by Veer Taran https://sqlwithmanoj.com/interview-questions/comment-page-1/#comment-97610 Fri, 10 Dec 2021 11:11:27 +0000 http://sqlwithmanoj.wordpress.com/#comment-97610 Hi, Thank you for this informative blog, I have just started to learn sql online and this is a nice collection regarding interviews questions.

]]>
Comment on Access VSO Work Items in Postman, by using Azure DevOps REST APIs, using PAT (Personal Access Token) authentication by Manu narang https://sqlwithmanoj.com/2021/03/04/access-vso-work-items-in-postman-by-using-azure-devops-rest-apis-using-pat-personal-access-token-authentication/comment-page-1/#comment-97255 Tue, 30 Nov 2021 06:03:47 +0000 http://sqlwithmanoj.com/?p=10225#comment-97255 its gives a non authorized request

]]>
Comment on Reading JSON string with Nested array of elements | SQL Server 2016 – Part 3 by Abdul Hafeez https://sqlwithmanoj.com/2015/11/01/reading-json-string-with-nested-elements-sql-server-2016-part-3/comment-page-1/#comment-96700 Thu, 11 Nov 2021 09:46:34 +0000 http://sqlwithmanoj.com/?p=4654#comment-96700 In reply to Manoj Pandey.

Thank you very much. That worked.

]]>
Comment on Reading JSON string with Nested array of elements | SQL Server 2016 – Part 3 by Manoj Pandey https://sqlwithmanoj.com/2015/11/01/reading-json-string-with-nested-elements-sql-server-2016-part-3/comment-page-1/#comment-96699 Thu, 11 Nov 2021 09:37:22 +0000 http://sqlwithmanoj.com/?p=4654#comment-96699 In reply to Abdul Hafeez.

check this:

drop table if exists #temp1
create table #temp1 (id int, JSONcol varchar(100))

insert into #temp1
select 101 as ID, ‘{“prop1”: true, “prop2”: false, “prop3”: true}’ as JSONcol

select t.id, o.[key], o.[value]
from #temp1 t
cross apply OPENJSON(t.JSONcol, ‘$’) o
where o.value = ‘true’

]]>
Comment on Reading JSON string with Nested array of elements | SQL Server 2016 – Part 3 by Abdul Hafeez https://sqlwithmanoj.com/2015/11/01/reading-json-string-with-nested-elements-sql-server-2016-part-3/comment-page-1/#comment-96698 Thu, 11 Nov 2021 09:08:47 +0000 http://sqlwithmanoj.com/?p=4654#comment-96698 In reply to Manoj Pandey.

and what if I have this json in a column

column

{“prop1”: true,“prop2”: false,“prop3”: true}

]]>
Comment on Reading JSON string with Nested array of elements | SQL Server 2016 – Part 3 by Manoj Pandey https://sqlwithmanoj.com/2015/11/01/reading-json-string-with-nested-elements-sql-server-2016-part-3/comment-page-1/#comment-96697 Thu, 11 Nov 2021 08:34:48 +0000 http://sqlwithmanoj.com/?p=4654#comment-96697 In reply to Abdul Hafeez.

Your JSON is not properly formatted, check this:

declare @str varchar(100) = ‘{
“prop1”: true,
“prop2”: false,
“prop3”: true
}’

select *
from OPENJSON(@str, ‘$’)
where value = ‘true’

]]>
Comment on Reading JSON string with Nested array of elements | SQL Server 2016 – Part 3 by Abdul Hafeez https://sqlwithmanoj.com/2015/11/01/reading-json-string-with-nested-elements-sql-server-2016-part-3/comment-page-1/#comment-96691 Thu, 11 Nov 2021 06:47:29 +0000 http://sqlwithmanoj.com/?p=4654#comment-96691 Hi, please help me in selecting the keys which have value as ‘true’.
In this case I should get only prop1 and prop3

[
{
“prop1”: true,
“prop2”: false,
“prop3”: true
]

]]>