Solved

adExecuteStream and navarchar(4000) ?

Posted on 2002-03-19
3
372 Views
Last Modified: 2011-10-03
Can anyone explain this ?
In SQL Server 2000 books online there is an example under
topic XML called Sample Visual Basic Application  To Update Records Using OPENXML And ADO.

Now VB helps says using adExecuteStream allows you up to
about 2GB of data, as does the Visual Basic type String.

However, the example shows a stored procedure with a parameter of nvarchar(4000), which is used to pass in the XML .
The VB code for the example uses adExecuteStream. But
what happens if the XML is longer than nvarchar(4000) ?
Surely the example is flawed ?
0
Comment
Question by:josereyes
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 100 total points
ID: 6879765
The example is NOT flawed, as NVARCHAR has a max size of 4000. If you want to store more data, you need to use the TEXT datatype (without size, able to store up to 2GB of data).

CHeers
0
 

Expert Comment

by:CleanupPing
ID: 9280741
josereyes:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question