Hey Rob,


I'm not sure its frowned upon - like any shared scope you will have to
cflock (the the need to has decreased with MX it still doesnt mean its gone
entirely).   You could include a .cfm with a list of table names in your
application file which could be used as request scope vars - allowing you
the same flexibility of global table name changes.


As noted, there is really thinking wrong with it all....you just need to
lock lock lock!


;-)




   _____  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 19 February 2004 14:19
To: CF-Talk
Subject: Using Application scope to name DB tables?

Is it generally frowned upon to use the application scope (defined in
Application.cfm) to name SQL tables in queries? Will this affect perfomance
at all? Any other issues?

<cfquery...>
SELECT *
FROM
#Application.TableSchema#.#Application.TablePrefix#_EMPLOYEE
</cfquery>

I need to do this really as table names in my application (and tablespace)
may potentially change at a later date...

Cheers,
Rob
   _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to