Home Forums SQL Server 2005 T-SQL (SS2K5) sp_executesql : Procedure expects parameter '@statement' of type 'ntext/nchar/nvarchar'. RE: sp_executesql : Procedure expects parameter '@statement' of type 'ntext/nchar/nvarchar'.

  • mayank.and.friends (6/10/2009)


    Sql string should be always either ntext/nvarchar/nchar.

    Only necessary when using sp_executesql (which takes nvarchar parameters). Not important when using EXEC. Also, you cannot define a variable of type ntext.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass