Home Forums SQL Server 2014 Development - SQL Server 2014 sp_executesql, dynamic sql, and openrowset: parameters not being replaced by values in RE: sp_executesql, dynamic sql, and openrowset: parameters not being replaced by values in

  • By the way, it seems that you're using INSERT INTO SELECT...FROM OPENROWSET when a BULK INSERT with a proper format file would be more appropriate, unless the double quotes are inconsistent in the same column.

    This can give you some orientation about format files: http://www.sqlservercentral.com/articles/BCP+(Bulk+Copy+Program)/105867/

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2