![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Dear Friends! I have a stored procedure which uses few tables. One of them is a very big table which has more than 3 crores of records. whenever that stored proc is executed invariably blocks would come in my database. Now, here I want to know is there anything like in oracle, sql server has different table types? (eg:index-oriented,temp,etc...) and I beleive oracle has 5 types. Each are used for different logic, one is for heavy insert and one is for hugh data select and so on... like that do we have table types in sql server? Pls, let me know.. I'm extremely over pressured on this issue. I really appreciate who will put effort to resolve my problem. Thank you! S.Lakshminarayanan. -- Message posted via http://www.sqlmonster.com |
#3
| |||
| |||
|
|
The three different "types" of tables in SQL Server are: Ordinary tables. Temporary tables (where the name starts with #). Table variables (introduced with SQL server 2000). Table variables (TV) are handled pretty much same as temp tables "under the hood". Data is physically stored in tempdb (if need to spill to disk), and there is less logging to transaction log compared to ordinary tables. But SQL Server doesn't create statistics for TVs, so for larger datasets, temp tables are often better than TVs. If you give us more information, we can probably give more specific recommendations. -- Tibor Karaszi, SQL Server MVP http://www.karaszi.com/sqlserver/default.asp http://www.solidqualitylearning.com/ "lakshminarayan iyer via SQLMonster.com" <forum (AT) SQLMonster (DOT) com> wrote in message news:6e87185a21ad4afb9c74cd5c7dfe4106 (AT) SQLMonster (DOT) com... Dear Friends! I have a stored procedure which uses few tables. One of them is a very big table which has more than 3 crores of records. whenever that stored proc is executed invariably blocks would come in my database. Now, here I want to know is there anything like in oracle, sql server has different table types? (eg:index-oriented,temp,etc...) and I beleive oracle has 5 types. Each are used for different logic, one is for heavy insert and one is for hugh data select and so on... like that do we have table types in sql server? Pls, let me know.. I'm extremely over pressured on this issue. I really appreciate who will put effort to resolve my problem. Thank you! S.Lakshminarayanan. -- Message posted via http://www.sqlmonster.com |
![]() |
| Thread Tools | |
| Display Modes | |
| |