declare @path nvarchar(max)
set @path='C:\a\SQLQuery1.sql'
SELECT * FROM OPENROWSET(BULK '@path',SINGLE_BLOB) as res
I am trying to execute this particular block in SQL server but its throwing error saying that
Can not bulk load ,@path does not exist.
But If I Provide the path explicitly in the last line instead of @path then its successfully running. Any help!!