|
Hi
Gerard,
AFAIK, creating an odbc datasource for each database is unavoidable.
What you can do is make your datasource connection parameters variables.
Right click on any of the database actions, choose 'set data source'. The
right hand side of the dialogue lets you set the deployment data source. Uncheck
'Same as development', choose your data source type from the dropdown and
specify the variables you want to use for data source name, username and
password. To change all the database actions in a taf file at one time, ctrl-A
to select all, then right click 'Set data source'.
So
what variables are you going to use? The most common solution would be to
have dsName, dsUsername dsPassword as application scoped variables, but scoping
them as domain or user may also make sense depending on your
situation.
This
road does have a downside. You have to take your own measures to secure the ds
parameters. Depending on your situation, it might not be great to have the ds
password sitting in a plain text file on your web server. You may also need to
add code to the start of every taf to verify the ds variables are
present.
Good
luck.
Simon
******************************************************************** This message is intended only for the use of the person(s) ("the intended recipient(s)") to whom it is addressed. It may contain information which is privileged and confidential within the meaning of applicable law. If you are not the intended recipient, please contact the sender as soon as possible. The views expressed in this communication may not necessarily be the views held by LGCSB (Local Government Computer Services Board). Any attachments have been checked by a virus scanner and appear to be clean. Please ensure that you also scan all messages, as LGCSB does not accept any liability for contamination or damage to your systems. ******************************************************************** ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf |
- witango-talk: Making a database dynamic Gerard Bohbot
- RE: witango-talk: Making a database dynamic Simon Boddy
- RE: witango-talk: Making a database dynamic Web Dude
- Witango-Talk: Multiple threads from 1 user rich Jasinski
- Re: Witango-Talk: Multiple threads from 1 u... Jeff Bohmer
- Re: Witango-Talk: Multiple threads fro... rich Jasinski
- Re: Witango-Talk: Multiple threads... Jeff Bohmer
- Witango-Talk: Making a database dynamic Gerard Bohbot
- RE: Witango-Talk: Making a database dynamic Ben Johansen
