Re: Create Table Permission for Domain Users Group
From: BP Margolin (bpmargo@attglobal.net)
Date: 07/05/02
- Next message: BP Margolin: "Re: Everyone Group"
- Previous message: Jasper Smith: "Re: Trouble with sa password"
- In reply to: Rob Taylor: "Re: Create Table Permission for Domain Users Group"
- Next in thread: Rob Taylor: "Re: Create Table Permission for Domain Users Group"
- Reply: Rob Taylor: "Re: Create Table Permission for Domain Users Group"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "BP Margolin" <bpmargo@attglobal.net> Date: Thu, 4 Jul 2002 19:28:16 -0400
Rob,
> Are there any upsides to temp tables from a performance point of view
> over permanent tables?
Actually, Yes.
Temp tables are written to the tempdb database. Because the tempdb database
is **always** recreated from scratch when SQL Server is restarted, SQL
Server has to do less I/O to the tempdb transaction log. Frankly, not a huge
difference, but a performance enhancement nevertheless :-)
Perhaps more importantly, if the server crashes, might you face problems in
your code if your "temporary" permanent tables still exist. You might be
handling this situation, by testing that the "temporary" permanent tables do
not exist before creating them, but that's extra processing that should not
be necessary with real temp tables ... and that could actually have a
measurable impact on performance.
-------------------------------------------
BP Margolin
Please reply only to the newsgroups.
When posting, inclusion of SQL (CREATE TABLE ..., INSERT ..., etc.) which
can be cut and pasted into Query Analyzer is appreciated.
"Rob Taylor" <rob@webadviser.info> wrote in message
news:er#gqw4ICHA.2228@tkmsftngp08...
> Luis
>
> I didn't use temp Tables (#/@tablename) but created "full tables" and
> then dropped them.
>
> Are there any upsides to temp tables from a performance point of view
> over permanent tables?
>
> Also, is it possible to get around the permissions issue I raised where
> new permanent tables are created - in case I need to use this route in
> the future?
>
> Many thanks
>
> Rob
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
- Next message: BP Margolin: "Re: Everyone Group"
- Previous message: Jasper Smith: "Re: Trouble with sa password"
- In reply to: Rob Taylor: "Re: Create Table Permission for Domain Users Group"
- Next in thread: Rob Taylor: "Re: Create Table Permission for Domain Users Group"
- Reply: Rob Taylor: "Re: Create Table Permission for Domain Users Group"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|