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)
 dts issue

Author  Topic 

sakets_2000
Master Smack Fu Yak Hacker

1472 Posts

Posted - 2007-12-22 : 09:08:53
am new to DTS... just need to execute a task using dts that goes like

insert into tab_1(column1)
select @paramater from tab_2

How do i parametrise the above ???

Using ? doesnt seem to work ..
Thanks

dataguru1971
Master Smack Fu Yak Hacker

1464 Posts

Posted - 2007-12-22 : 09:34:12


You would do something using a procedure that accepts the parameter

Create procedure pInsertToTable1 (@param as varchar)
as

Insert INto Tab_1 (column1)
Select Column FROM Tab_2 WHere Column = @param



Poor planning on your part does not constitute an emergency on my part.

Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2007-12-25 : 08:48:56
what was error you got when you try to map parameter using '?' ?
Go to Top of Page
   

- Advertisement -