Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Services / DTS / July 2009

Tip: Looking for answers? Try searching our database.

dtexec passing variable

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
GE - 24 Jun 2009 21:05 GMT
I have a simple ssis (it just creates a table). It has a variable tblName.  
When I give a valid variable name, the ssis works fine.  In the orignial ssis
package I have tblName set up as tblTest.  I saved the ssis package in the
server.

I want it to work from dtexec:

EXEC xp_cmdshell 'dtexec /sql "ssisTest"
/set\Package.Variables[User::tblname].Properties[Value];"tblTest11111111111"'

The new variable, tblTest11111111111 is not getting used.  If I drop tblTest
and run the above it creates tblTest.  In other words this line does not work:
/set\Package.Variables[User::tblname].Properties[Value];"tblTest11111111111"

I tried removing quotes from tblTest11111111111 and that does not help either.

Any help will be apreciated.
Thank you,
Todd C - 26 Jun 2009 13:47 GMT
Sounds like it is not properly using the variable in the package.

By what method is the SSIS package creating the table? Can you give us a
sample of your code or T-SQL statement?
=====
Todd C

> I have a simple ssis (it just creates a table). It has a variable tblName.  
> When I give a valid variable name, the ssis works fine.  In the orignial ssis
[quoted text clipped - 14 lines]
> Any help will be apreciated.
> Thank you,
GE - 02 Jul 2009 15:36 GMT
it is using a stored procedure to create the table

> Sounds like it is not properly using the variable in the package.
>
[quoted text clipped - 21 lines]
> > Any help will be apreciated.
> > Thank you,
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.