Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with parameter in select statement

Status
Not open for further replies.

krymat

Technical User
Jul 25, 2000
105
How do you get a parameter value to pass through to a column value?

The parameter is set though a DTS global variable

for example (simplified example)

Select
? AS TestDate,
a.store_number,
a.trans_number
From
transaction_master a
Where
a.fill_Date > ?

I get a Syntax error or access violation when I try to do this.

Let's say ? = '08/16/2001'

I want to result to be something like this:
TestDate store_number trans_number
08/16/2001 0754 01254
08/16/2001 0523 45485
etc....

s-)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top