Page 1 of 1

Re: Parameterize query SQL file

Posted: Thu Dec 08, 2011 8:09 pm
by SURA
I am not sure, but try this 'eff_dt=#eff_dt#'.

DS User

Re: Parameterize query SQL file

Posted: Fri Dec 09, 2011 4:56 am
by manoj_23sakthi
Hi Vijay,

Please try this #Eff_date# ...
I hope it may work....
Please check the parameter data type for Eff_date if its "char " change as "date"

Manoj kumar,

Posted: Fri Dec 09, 2011 7:33 am
by chulett
You cannot include parameters in the SQL File, that's one major drawback to that approach. You will need to build the file with the actual parameter value included in it rather than referenced in it.

Posted: Fri Dec 09, 2011 8:23 am
by vijaydasari
Thank you Chulette.
You will need to build the file with the actual parameter value included in it .

can you please elaborate on this?

Posted: Fri Dec 09, 2011 9:02 am
by Developer9
Hi Vijay,

"build the file "Indicates that we have to "write a SQL query in a file format mostly (.sql format )>>Please double check here for Format

"actual parameter value "implies that for eff_dt include same value not as #eff_dt#.>>The reason behind Parameters usage is to supply values during run time but here we can supply any value to eff_dt .i.e.for SQL queries.

I think above explanation gives you some idea

Experts:Please correct me any modification for above explanation

Thank you