dbTalk Databases Forums  

Want to different types of table types in sql server2000!!!

microsoft.public.sqlserver.programming microsoft.public.sqlserver.programming


Discuss Want to different types of table types in sql server2000!!! in the microsoft.public.sqlserver.programming forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
lakshminarayan iyer via SQLMonster.com
 
Posts: n/a

Default Want to different types of table types in sql server2000!!! - 02-16-2005 , 05:21 AM






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

Reply With Quote
  #2  
Old   
Tibor Karaszi
 
Posts: n/a

Default Re: Want to different types of table types in sql server2000!!! - 02-16-2005 , 06:25 AM






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

Quote:
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



Reply With Quote
  #3  
Old   
DeveloperDude
 
Posts: n/a

Default Re: Want to different types of table types in sql server2000!!! - 02-16-2005 , 08:37 AM



Hello:

If I'm translating this correctly, your table has 30 million records in it.
That in itslef should not cause any problems. Do you have an index on this
table? And are you using this index in the stored procedure? If you can tell
us what the stored procedure looks like and the table structure, it would be
really helpful in finding the problem(s).

Thanks

"Tibor Karaszi" wrote:

Quote:
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




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.