PC Review Forums Newsgroups Microsoft DotNet Microsoft ADO .NET Re: nvarchar(max) and corresponding SqlDbType

Reply

Re: nvarchar(max) and corresponding SqlDbType

 
Thread Tools Rate Thread
Old 02-01-2007, 04:46 PM   #1
David Browne
Guest
 
Posts: n/a
Default Re: nvarchar(max) and corresponding SqlDbType




"Dmitriy Melikov" <DmitriyMelikov@discussions.microsoft.com> wrote in
message news:4D55D6C5-50B5-43F8-9C4D-0CFBB4376032@microsoft.com...
> Hi All,
>
> I am using nvarchar(max) as a parameter for a stored procedure in a SQL
> Server 2005 database.
> What is the corresponding SqlDbType in this case?
>
> System.Data.SqlDbType.NVarChar is limited to 4,000 characters.
> MSDN says, "Explicitly set the object when working with strings longer
> than
> 4,000 characters."
>
> I am not sure what this means.
>


I think it means that you can just access the parameter value directly,
either setting or getting a System.String. See, the example under "Using
Large Value Type Parameters"



Working with Large Value Types
http://msdn2.microsoft.com/en-us/library/a1904w6t.aspx

David

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off