pncookson
asked on
Load file into SqlString variable using only TSQL.
Hi,
Does anyone know if it is possible to load a file from the file system hosting an sql express instance (so no SSIS) into a SqlString using only TSQL without using xp_cmdshell or OPENROWSET(BULK.
Also CRL Integration is disabled.
Mission Impossible?
Paul Cookson
Does anyone know if it is possible to load a file from the file system hosting an sql express instance (so no SSIS) into a SqlString using only TSQL without using xp_cmdshell or OPENROWSET(BULK.
Also CRL Integration is disabled.
Mission Impossible?
Paul Cookson
ASKER
Thanks Pratima, sorry for the delay in getting back.
As soon as I have 5 minutes I'll check this out.
Thanks again,
Paul.
As soon as I have 5 minutes I'll check this out.
Thanks again,
Paul.
But doesn't "ListPathsXML" use xp_cmdshell?
What is wrong with "OPENROWSET( BULK"?
What is wrong with "OPENROWSET( BULK"?
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Open in new window
refer for more deatils , this will contain all options
https://www.simple-talk.com/sql/t-sql-programming/the-tsql-of-text-files/