|
Dale, Have you scripted this in a cfquery and
tested it at all? For example <cfquery datasource=”#dsn#”> If exists(tablename) drop table </cfquery> Of course that is puesdo code. Or you could write it as a StoredProc and
call it from CF. For safety you might want to wrap it in a transaction to stop
others from accessing it while the sql/pl is being run. And the new job is going great. See the
thing is that CF might have a lock to the datasource, but if you run the sql in
the database query designer or some ogther DB tool, it should not care if
wrapped in transactions if something has a lock because if I recall right the
transaction will queue the query. And if I recall right Red-Gate sql runs
DTS scripts that check if the table exists, then drops it all wrapped in a
transaction otherwise do nothing, and this is even if the database is locked by
CF. Did that with one of Nusphers biggest smaller clients many times with SQL
Bundle, while she was using the database. Senior Coldfusion Developer Aegeon Pty. Ltd. Phone: +613 8676 4223 From:
[email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Dale Fraser Andrew, What kind of answer is that, it’s a question? Do you have one to show me? I’ve done a bit of
searching without much luck, I’m sure it’s possible. PS: How’s the new job? Regards From:
Dale, Wouldn’t a SP work then call that
via CF? Senior Coldfusion Developer Aegeon Pty. Ltd. Phone: +613 8676 4223
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~----------~----~----~----~------~----~------~--~--- |
- [cfaussie] Re: OT: DROP Database Andrew Scott
- [cfaussie] Re: OT: DROP Database Dale Fraser
- [cfaussie] Re: OT: DROP Database Andrew Scott
- [cfaussie] Re: OT: DROP Database Dale Fraser
- [cfaussie] Re: OT: DROP Database Dale Fraser
- [cfaussie] Re: OT: DROP Database Andrew Scott
