Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 parameters in DTS - transform data task

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2003-01-24 : 09:05:03
Ken writes "I am trying to use a parameter in an Transform Data Task to move data from 1 serve to another. The SQL code is

insert into data
Select * from Data2000
where ItemCode = ?


I have set up a Global Variable. When I execute the task it says "No value for 1 or more parameters".

When I run the same code in a SQL Execution Task - it works."

krsk
Starting Member

21 Posts

Posted - 2003-03-11 : 04:19:37
Have you remembered to assign the globalvariable through the [Parameter] button in your task?

Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2003-03-11 : 07:03:58
You can't use INSERT INTO in a transformation task. Take that out and leave only the SELECT query.

Go to Top of Page
   

- Advertisement -