Simon Woods
3/19/2007 1:27:00 PM
Aaron Bertrand [SQL Server MVP] wrote:
>> I populating a report in a VB app by running numerous queries and,
>> potentially, creating/deleting numerous temporary tables.
>
> Instead of running ad hoc SQL through ADO, have you considered
> generating the data for this report within a stored procedure? This
> will definitely reduce the complexities of having to write SQL that
> will pass the provider's logic in addition to SQL Server's...
Thanks for your thoughts
Unfortunately, this is dynamic SQL and it needs to be so. We have a query
creation tool which permits users to create their own SQL. As part of
executing the users created SQL, we need to create/delete temporary tables
behind the scene. We may review this mechanism in the longer term, but at
the moment, I really need to understand what would cause the Comms Link
failure.