Inserting one row from one table to another table of second database
Insert into Task1.dbo.Patients (FirstName, Lastname, Address, ContactNo,Gender,DateOfBirth )
Select FirstName, Lastname, Address, ContactNo,Gender,DateOfBirth from Tasks.dbo.Patients
I want to insert one copy of only the inserted row in similar table present in another database. Insert Into is a choice but it copies the whole data from source table and append into destination table.
I want to mirror only one row at the time of insertion in another database.
You can use a straightforward trigger for this
Note that the inserted table may have multiple or even zero rows