Home Forums SQL Server 2005 T-SQL (SS2K5) xp_cmdshell - Procedure expects parameter 'command_string' of type 'varchar' RE: xp_cmdshell - Procedure expects parameter 'command_string' of type 'varchar'

  • I experienced this error, I now make sure I make nvarchar types with 4000 rather than using the max function.

    Also just a note on BCP. Ensure it's always on one line, else it won't work, won't even print, very annoying!