![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Using a DTS package, I want to use a global variable to concatinate a string for a table name I want to query. I then want to use the results as my source for a data transfer task. I'm trying to use something like.... declare @temp_id varchar(3) declare @qry varchar(3000) set @temp_id = ? set @qry ='select distinct (specialty) as unknowns, (spec_id) as specId from dbo.a_specialty' +@temp_id+' where spec_id is null' exec (@qry) The source in a DTS Transform Data Task cannot read the SQL statement to give me my results. Can anyone help out with what I may be able to do??? |
![]() |
| Thread Tools | |
| Display Modes | |
| |