在.NET中使用临时表 [英] Using Temp tables in .NET

查看:123
本文介绍了在.NET中使用临时表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我想在.NET中开始使用Temp表。我关心的是表格何时被删除。



当创建它的连接关闭时,它是否被删除,或是在程序结束时?



感谢您的任何提示,


< p align = left> Tom


解决方案

#temptable在连接(会话)期间存在。


 


您可以考虑使用存储过程(可以使用#temptable(s))。




临时表自动启用多用户。


文章:
http://www.programmers- corner.com/article/76


 




Hello,

 

I would like to start using Temp tables in .NET.  My concern is when the table would get removed.

 

Is it removed when the connection that created it is closed, or is it when the program closes?

 

Thanks for any tips,

Tom

 

解决方案

#temptable exists for the duration of the connection (session).

 

You may consider using stored procedures (which may use #temptable(s)).


Temporary tables are automatically multi-user enabled.

Article: http://www.programmers-corner.com/article/76

 



这篇关于在.NET中使用临时表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆