Skip to content
Home » SQL Server Tutorials By Pradeep Raturi » Page 10

SQL Server Tutorials By Pradeep Raturi

How to access a data of table from another database in SQL Server?

How to copy a data of table from another database in SQL Server?

Suppose, you have a database1 and table1 and one another database2 and table2  in SQL server.

Now you are required to select data of a table1 of database1 from database2 of table2.

What would be a query for that?

Loading

SQL Triggers

SQL Server triggers are special kind of Stored Procedures that invokes whenever a special event in the database occurs.

SQL Server uses two virtual tables INSERTED and DELETED, whenever a trigger is called . These table is used to capture the data of the modified row before and after the event occurs  tables , these tables are called as magic tables or virtual tables.

Loading