Temporary table VS Table variable

Temporary table VS Table variable: Cursor alternative.

Temporary table
- This can improve processing speed but consume disk space.

Table variable
- Table variable that can be used in stored procedures, functions and batches.
- Table variable get destroyed at the end of the stored procedure, function or batch in which it is defined.
- Since it can be used in stored procedure, it is compiled once and can be used many times.
- You can't create index on the Table variable.
- Since you can create index on the temporary table, it is good where data is huge.
What is Replication?
Replication is the process of distributing data from one database to another on the same server or servers connected through LAN or the internet.......
What are the types of Replication?
Snapshot Replication - In this kind, snapshot of entire data is copied from publisher to the subscriber's database on regular interval........
Define the terms used in Replication
Publisher is the database that transmits its data to another database.........
Post your comment