Reply to Re: Trigger assistance

Your name:

Reply:


Posted by Erland Sommarskog on 06/16/05 00:24

Matt (gg@tolton.com) writes:
> The reason I'm using temporary tables is that I have to use EXEC to
> execute the select statement, so the inserted and deleted tables aren't
> available, but temporary tables are. Can I reference a table variable
> like that (in an EXEC statement)? I didn't think that I could.

That's correct. I was sort of suggesting that you would abandon the
dynamic SQL as well.

> I am going to stick with this solution until performance on it becomes
> an issue, at which point I'll be forced to do as you say. Thankyou for
> the advice.

That's a little funny, since in your first post, you complained that
the current scheme was ineffecient.

--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinfo/productdoc/2000/books.asp

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация