Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.databases.ms-sqlserver > #693
| From | Hugo Kornelis <hugo@perFact.REMOVETHIS.info.INVALID> |
|---|---|
| Newsgroups | comp.databases.ms-sqlserver |
| Subject | Re: Dynamic SQL madness on SQL 2008 |
| Date | 2011-09-30 21:33 +0200 |
| Message-ID | <a96c879q6lkpet3fk276bo2ap0cc2vbces@4ax.com> (permalink) |
| References | <67a6ef76-3dbb-4225-9372-b93efcfa36ed@m5g2000vbe.googlegroups.com> |
Hi JAW, The error message tells you what the problem is. The parameter for sp_executesql that holds the statement should be of type ntext/nchar/nvarchar. You have declared it as varchar. Change that to nvarchar (and ditto for the parameter that holds the parameter list) and it will work. -- Hugo Kornelis, SQL Server MVP My SQL Server blog: http://sqlblog.com/blogs/hugo_kornelis
Back to comp.databases.ms-sqlserver | Previous | Next — Previous in thread | Find similar
Dynamic SQL madness on SQL 2008 JAW <willjamu@gmail.com> - 2011-09-30 11:59 -0700 Re: Dynamic SQL madness on SQL 2008 Hugo Kornelis <hugo@perFact.REMOVETHIS.info.INVALID> - 2011-09-30 21:33 +0200
csiph-web