Actually, I want to insert data as bulk insert from bunch of files, so tried with the solution https://stackoverflow.com/a/16078539/10802715 . But while executing that script, getting an error that says for security reason, xp_cmdshell is turned off. However, t turn it on, when from the shell, following commands:
Use Master
GO
EXEC master.dbo.sp_configure 'show advanced options', 1
RECONFIGURE WITH OVERRIDE
GO
EXEC master.dbo.sp_configure 'xp_cmdshell', 1
RECONFIGURE WITH OVERRIDE
GO
error displayed is:
The specified option 'xp_cmdshell' is not supported by this edition of SQL Server and cannot be changed using sp_configure.
SQL Version: 2019 Edition: Developer OS: Ubuntu 20.04
Thanks in advance