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'

  • You're welcome.

    It's probably because they haven't rewritten xp_cmdshell since SQL 2000, and that didn't have the max option available.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon