Forum Discussion
oneeyeman1
Nov 14, 2025Copper Contributor
Failure to run query
Hi, ALL, First I believe that this question is more suited for a C++ devs,, but I can't find it. Sorry. I'm trying to run following query: query1= L"SELECT name FROM sys.k...
Viorel
Nov 14, 2025Copper Contributor
Try this query:
query1= L"SELECT name FROM sys.key_constraints WHERE type = 'PK' AND parent_object_id = OBJECT_ID(concat(quotename(?), '.', quotename(?), '.', quotename(?)))";