I'm trying to pass the name of a file via a variable to bulk insert/
This does not work:
bulk insert XMLfile
from
@Name_of_file
with ( rowterminator = ''' + char(10) + ''' )
But, this does:
bulk insert XMLfile
from
'abc.xml'
with ( rowterminator = ''' + char(10) + ''' )
How would I go about passing the file name to this statement?