Can I use SQL queries as values of job parameters directly?? If not, how can i use SQL queries to fetch the values of records in the database.
Can you plz tel me how to use procedures/routines to do the same. I actually want to fetch the max(id) from one table and use it as the value to populate the remaining records into another table.
Thanks
Using SQL queries in job parameters
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 12
- Joined: Thu Feb 15, 2007 3:58 pm
-
- Premium Member
- Posts: 99
- Joined: Mon Sep 03, 2007 7:49 am
- Location: Stockholm, Sweden
Also, depending on the database engine your using you may need to slash (\) any special character. For instance:
Select col1 from table1 where datecol = '2007-12-12'
May need to be converted into
Select col1 from table1 where datecol = \'2007-12-12\'
Select col1 from table1 where datecol = '2007-12-12'
May need to be converted into
Select col1 from table1 where datecol = \'2007-12-12\'
-------------------------------------
http://it.toolbox.com/blogs/bi-aj
my blog on delivering business intelligence using agile principles
http://it.toolbox.com/blogs/bi-aj
my blog on delivering business intelligence using agile principles