dbTalk Databases Forums  

SSIS - Variable String!

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


Discuss SSIS - Variable String! in the microsoft.public.sqlserver.dts forum.



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

Default SSIS - Variable String! - 05-15-2008 , 05:54 AM






Hi,

I m facing the limitation of string variable (only max 4000 characters) to
store my query that need > 4000+ characters.

Any advice for solution?

Thank you in advance.

Daniel

Reply With Quote
  #2  
Old   
Shah Harsh
 
Posts: n/a

Default RE: SSIS - Variable String! - 05-20-2008 , 02:08 AM






Hi,
Can I have more information about the current logic you are following?

could I know the following

1. Are you using variable for storing query in Control Flow?
2. If using in Execute SQL Task then you can directly provide the .txt file
reference. I mean store your sql in the .txt file and reference that file in
the execute sql task.


Suggestions:

1. How about using a text (.txt file), store your entire SQL in that file
and call that file in ssis by directly assigning the .txt file value to the
object.
2. How about going to custom types?
3. check this
OLE DB Command
The OLE DB Command transformation runs an SQL statement for each row in a
data flow. For example, you can run an SQL statement that inserts, updates,
or deletes rows in a database table.

http://technet.microsoft.com/en-us/l.../ms141138.aspx

Forum posts:
http://forums.microsoft.com/TechNet/...6223&SiteID=17

Hope this helps....

By Harsh Shah

"Daniel" wrote:

Quote:
Hi,

I m facing the limitation of string variable (only max 4000 characters) to
store my query that need > 4000+ characters.

Any advice for solution?

Thank you in advance.

Daniel

Reply With Quote
  #3  
Old   
Shah Harsh
 
Posts: n/a

Default RE: SSIS - Variable String! - 05-20-2008 , 02:08 AM



Hi,
Can I have more information about the current logic you are following?

could I know the following

1. Are you using variable for storing query in Control Flow?
2. If using in Execute SQL Task then you can directly provide the .txt file
reference. I mean store your sql in the .txt file and reference that file in
the execute sql task.


Suggestions:

1. How about using a text (.txt file), store your entire SQL in that file
and call that file in ssis by directly assigning the .txt file value to the
object.
2. How about going to custom types?
3. check this
OLE DB Command
The OLE DB Command transformation runs an SQL statement for each row in a
data flow. For example, you can run an SQL statement that inserts, updates,
or deletes rows in a database table.

http://technet.microsoft.com/en-us/l.../ms141138.aspx

Forum posts:
http://forums.microsoft.com/TechNet/...6223&SiteID=17

Hope this helps....

By Harsh Shah

"Daniel" wrote:

Quote:
Hi,

I m facing the limitation of string variable (only max 4000 characters) to
store my query that need > 4000+ characters.

Any advice for solution?

Thank you in advance.

Daniel

Reply With Quote
  #4  
Old   
Shah Harsh
 
Posts: n/a

Default RE: SSIS - Variable String! - 05-20-2008 , 02:08 AM



Hi,
Can I have more information about the current logic you are following?

could I know the following

1. Are you using variable for storing query in Control Flow?
2. If using in Execute SQL Task then you can directly provide the .txt file
reference. I mean store your sql in the .txt file and reference that file in
the execute sql task.


Suggestions:

1. How about using a text (.txt file), store your entire SQL in that file
and call that file in ssis by directly assigning the .txt file value to the
object.
2. How about going to custom types?
3. check this
OLE DB Command
The OLE DB Command transformation runs an SQL statement for each row in a
data flow. For example, you can run an SQL statement that inserts, updates,
or deletes rows in a database table.

http://technet.microsoft.com/en-us/l.../ms141138.aspx

Forum posts:
http://forums.microsoft.com/TechNet/...6223&SiteID=17

Hope this helps....

By Harsh Shah

"Daniel" wrote:

Quote:
Hi,

I m facing the limitation of string variable (only max 4000 characters) to
store my query that need > 4000+ characters.

Any advice for solution?

Thank you in advance.

Daniel

Reply With Quote
  #5  
Old   
Shah Harsh
 
Posts: n/a

Default RE: SSIS - Variable String! - 05-20-2008 , 02:08 AM



Hi,
Can I have more information about the current logic you are following?

could I know the following

1. Are you using variable for storing query in Control Flow?
2. If using in Execute SQL Task then you can directly provide the .txt file
reference. I mean store your sql in the .txt file and reference that file in
the execute sql task.


Suggestions:

1. How about using a text (.txt file), store your entire SQL in that file
and call that file in ssis by directly assigning the .txt file value to the
object.
2. How about going to custom types?
3. check this
OLE DB Command
The OLE DB Command transformation runs an SQL statement for each row in a
data flow. For example, you can run an SQL statement that inserts, updates,
or deletes rows in a database table.

http://technet.microsoft.com/en-us/l.../ms141138.aspx

Forum posts:
http://forums.microsoft.com/TechNet/...6223&SiteID=17

Hope this helps....

By Harsh Shah

"Daniel" wrote:

Quote:
Hi,

I m facing the limitation of string variable (only max 4000 characters) to
store my query that need > 4000+ characters.

Any advice for solution?

Thank you in advance.

Daniel

Reply With Quote
  #6  
Old   
Shah Harsh
 
Posts: n/a

Default RE: SSIS - Variable String! - 05-20-2008 , 02:08 AM



Hi,
Can I have more information about the current logic you are following?

could I know the following

1. Are you using variable for storing query in Control Flow?
2. If using in Execute SQL Task then you can directly provide the .txt file
reference. I mean store your sql in the .txt file and reference that file in
the execute sql task.


Suggestions:

1. How about using a text (.txt file), store your entire SQL in that file
and call that file in ssis by directly assigning the .txt file value to the
object.
2. How about going to custom types?
3. check this
OLE DB Command
The OLE DB Command transformation runs an SQL statement for each row in a
data flow. For example, you can run an SQL statement that inserts, updates,
or deletes rows in a database table.

http://technet.microsoft.com/en-us/l.../ms141138.aspx

Forum posts:
http://forums.microsoft.com/TechNet/...6223&SiteID=17

Hope this helps....

By Harsh Shah

"Daniel" wrote:

Quote:
Hi,

I m facing the limitation of string variable (only max 4000 characters) to
store my query that need > 4000+ characters.

Any advice for solution?

Thank you in advance.

Daniel

Reply With Quote
  #7  
Old   
Shah Harsh
 
Posts: n/a

Default RE: SSIS - Variable String! - 05-20-2008 , 02:08 AM



Hi,
Can I have more information about the current logic you are following?

could I know the following

1. Are you using variable for storing query in Control Flow?
2. If using in Execute SQL Task then you can directly provide the .txt file
reference. I mean store your sql in the .txt file and reference that file in
the execute sql task.


Suggestions:

1. How about using a text (.txt file), store your entire SQL in that file
and call that file in ssis by directly assigning the .txt file value to the
object.
2. How about going to custom types?
3. check this
OLE DB Command
The OLE DB Command transformation runs an SQL statement for each row in a
data flow. For example, you can run an SQL statement that inserts, updates,
or deletes rows in a database table.

http://technet.microsoft.com/en-us/l.../ms141138.aspx

Forum posts:
http://forums.microsoft.com/TechNet/...6223&SiteID=17

Hope this helps....

By Harsh Shah

"Daniel" wrote:

Quote:
Hi,

I m facing the limitation of string variable (only max 4000 characters) to
store my query that need > 4000+ characters.

Any advice for solution?

Thank you in advance.

Daniel

Reply With Quote
  #8  
Old   
Shah Harsh
 
Posts: n/a

Default RE: SSIS - Variable String! - 05-20-2008 , 02:08 AM



Hi,
Can I have more information about the current logic you are following?

could I know the following

1. Are you using variable for storing query in Control Flow?
2. If using in Execute SQL Task then you can directly provide the .txt file
reference. I mean store your sql in the .txt file and reference that file in
the execute sql task.


Suggestions:

1. How about using a text (.txt file), store your entire SQL in that file
and call that file in ssis by directly assigning the .txt file value to the
object.
2. How about going to custom types?
3. check this
OLE DB Command
The OLE DB Command transformation runs an SQL statement for each row in a
data flow. For example, you can run an SQL statement that inserts, updates,
or deletes rows in a database table.

http://technet.microsoft.com/en-us/l.../ms141138.aspx

Forum posts:
http://forums.microsoft.com/TechNet/...6223&SiteID=17

Hope this helps....

By Harsh Shah

"Daniel" wrote:

Quote:
Hi,

I m facing the limitation of string variable (only max 4000 characters) to
store my query that need > 4000+ characters.

Any advice for solution?

Thank you in advance.

Daniel

Reply With Quote
  #9  
Old   
Shah Harsh
 
Posts: n/a

Default RE: SSIS - Variable String! - 05-20-2008 , 02:08 AM



Hi,
Can I have more information about the current logic you are following?

could I know the following

1. Are you using variable for storing query in Control Flow?
2. If using in Execute SQL Task then you can directly provide the .txt file
reference. I mean store your sql in the .txt file and reference that file in
the execute sql task.


Suggestions:

1. How about using a text (.txt file), store your entire SQL in that file
and call that file in ssis by directly assigning the .txt file value to the
object.
2. How about going to custom types?
3. check this
OLE DB Command
The OLE DB Command transformation runs an SQL statement for each row in a
data flow. For example, you can run an SQL statement that inserts, updates,
or deletes rows in a database table.

http://technet.microsoft.com/en-us/l.../ms141138.aspx

Forum posts:
http://forums.microsoft.com/TechNet/...6223&SiteID=17

Hope this helps....

By Harsh Shah

"Daniel" wrote:

Quote:
Hi,

I m facing the limitation of string variable (only max 4000 characters) to
store my query that need > 4000+ characters.

Any advice for solution?

Thank you in advance.

Daniel

Reply With Quote
  #10  
Old   
Daniel
 
Posts: n/a

Default RE: SSIS - Variable String! - 05-30-2008 , 06:52 PM



Hi Shah,

The original idea is to retrieve member list from SQL2005 and transfer the
value into another string variable in SSIS that use to execute against Oracle
DB. Therefore, i need to ensure the member list has no limited to length - so
i select Varchar(max) to store member list. Problem happen in retrieving
SSIS's object value which map to T-SQL's Varchar(max).

Any suggestion to solve about problem?

Thank you in advance

Daniel

"Shah Harsh" wrote:

Quote:
Hi,
Can I have more information about the current logic you are following?

could I know the following

1. Are you using variable for storing query in Control Flow?
2. If using in Execute SQL Task then you can directly provide the .txt file
reference. I mean store your sql in the .txt file and reference that file in
the execute sql task.


Suggestions:

1. How about using a text (.txt file), store your entire SQL in that file
and call that file in ssis by directly assigning the .txt file value to the
object.
2. How about going to custom types?
3. check this
OLE DB Command
The OLE DB Command transformation runs an SQL statement for each row in a
data flow. For example, you can run an SQL statement that inserts, updates,
or deletes rows in a database table.

http://technet.microsoft.com/en-us/l.../ms141138.aspx

Forum posts:
http://forums.microsoft.com/TechNet/...6223&SiteID=17

Hope this helps....

By Harsh Shah

"Daniel" wrote:

Hi,

I m facing the limitation of string variable (only max 4000 characters) to
store my query that need > 4000+ characters.

Any advice for solution?

Thank you in advance.

Daniel

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.