Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
When running an "SELECT ... INTO" or "CTAS" query, the command fails:
CREATE TABLE TESTTABLE AS
SELECT JSON_VALUE(x, '$.test') as x
FROM (SELECT '{"test":"test"}' as x) as u
You have to wrap each JSON_VALUE function, or other functions returning an nvarchar with a CAST/CONVERT to not get this error.
Since the nvarchar data type does not exist for tables since they're always stored the same, please just convert it for us on the go.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.