dbTalk Databases Forums  

Size of content a DTS "Execute SQL Task" can hold

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Size of content a DTS "Execute SQL Task" can hold in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Quentin Ran
 
Posts: n/a

Default Size of content a DTS "Execute SQL Task" can hold - 10-16-2003 , 06:21 PM






What is the limit?

TIA

Quentin



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Size of content a DTS "Execute SQL Task" can hold - 10-17-2003 , 12:49 AM






The ExecuteSQL task uses a BSTR.

HRESULT GetSQLStatement(BSTR *pRetVal);

HRESULT SetSQLStatement(BSTR NewValue);


A BSTR is comprised of a header, which includes information about the
length of the string, and the string itself, which may include embedded
nulls.A BSTR is limited to its length variable long which is of size
2,147,483,647

If I get mush bigger than the window I would generally call a script file
through OSQL


--
--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

"Quentin Ran" <ab (AT) who (DOT) com> wrote

Quote:
What is the limit?

TIA

Quentin





Reply With Quote
  #3  
Old   
Quentin Ran
 
Posts: n/a

Default Re: Size of content a DTS "Execute SQL Task" can hold - 10-17-2003 , 09:18 AM



Thanks Allan.

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
The ExecuteSQL task uses a BSTR.

HRESULT GetSQLStatement(BSTR *pRetVal);

HRESULT SetSQLStatement(BSTR NewValue);


A BSTR is comprised of a header, which includes information about the
length of the string, and the string itself, which may include embedded
nulls.A BSTR is limited to its length variable long which is of size
2,147,483,647

If I get mush bigger than the window I would generally call a script file
through OSQL


--
--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

"Quentin Ran" <ab (AT) who (DOT) com> wrote in message
news:%23yoCYvDlDHA.2432 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
What is the limit?

TIA

Quentin







Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.