Site sponsored by: Idera The gold standard of SQL Server performance monitoring & diagnostics.
SQL Server Performance

  • Home
  • Articles
  • Forums
  • Tips
  • Quiz
  • FAQ's
  • Blogs
  • Software
  • Books
  • About Us
RSS Feeds
Sign in | Join


Article Topics

All Articles
Performance Tuning
Audit
Business Intelligence
Clustering
Reporting Services
Developer
General DBA
ASP.NET / ADO.NET

Write for Us

Share your SQL Server knowledge with others and raise your profile in the community More...
Latest Articles

System Data Collection Reports
Recover Data Using Database Snapshots
Analyze and Fix Index Fragmentation in SQL Server 2008
Powerful Geographical Visualisations made easy with SQL 2008 Spatial (Part 2) ...

More     
 
Latest FAQ's

How to alter a User Defined Data Type?
How to unzip a File in SSIS?
How to view previous query plans?
ALTER TABLE SWITCH statement failed because the object '%.*ls' is not ...

More     
   
Latest Software Reviews

Spotlight on ApexSQL Doc 2008
ApexSQL Enforce
Embarcadero Change Manager
SQL Server DBA Dashboard

More     

articles >> general dba >> Replicating Stored Procedure Execution

Replicating Stored Procedure Execution

By : Muthusamy Anantha Kumar
Jan 31, 2004

Page 3 / 3


Now, check the archive tables on the publisher and subscriber.

On the Publisher “EBONY”

Use Sales
go
select count(*) from orders
result: 0
select count(*) from order_details
result: 0
select count(*) from orders_archive
result: 5
select count(*) from order_details_archive
result: 8



On the Subscriber “MAK”

Use sales
go
select count(*) from orders
result: 0
select count(*) from order_details
result: 0
select count(*) from orders_archive
result: 5
select count(*) from order_details_archive
result: 8


You will notice that both the publication and subscription databases will be in synch after the execution of the procedure. You can update "USP_Archive_Purge" according to your environment and also schedule this "USP_Archive_Purge" according to your environment requirement.

 

Conclusion

As mentioned before, the main intent of this article is to guide you, step-by-step, through the process of how to replicate a stored procedure execution in a transactional replication environment. Doing so reduces overhead and boosts your SQL Server’s overall performance.

 

Author

Muthusamy Anantha Kumar (a.k.a. MAK) has more than 9 years experience in Information Technology, including Database Administration, System Analysis, Design, Development & Support of MS SQL Server's 2000/7.0/6.5/6.0/4.X for production/development/testing. He is experienced in Microsoft SQL Server installation, configuration, performance tuning, client/server connectivity, query optimization, back-up/recovery. He has handled VLDBs and involved in SDLC of various data warehouse projects. Currently, MAK is Senior Database Administrator/Data Architect responsible for development, test, contingency and productions servers for Merrill Lynch in NJ and NY. Previously, MAK was Senior Database Administrator / Data Architect, and responsible for development, test, DR and production servers for many finance and .com companies. He plays an active role in forums as a SQL Expert and moderator.

Published many articles, scripts on database journal. Here is the list of all articles and author’s page.

http://www.databasejournal.com/article.php/3300441

 

Reprinted with the express written permission of the author. Copyright 2004


<< Prev Page         








Home | Peformance Articles | Audit Articles | Business Intelligence Articles | Clustering Articles | Developer Articles | Reporting Services Articles | DBA Articles | ASP.NET / ADO.NET Articles | DBA FAQ's | Developer Peformance FAQ's | DBA Peformance FAQ's | Developer FAQ's | Clustering FAQ's | Error Messages | Audit Tool Reviews | Backup Tool Reviews | Coding Tool Reviews | Compare Tool Reviews | Documentation Tool Reviews | Design Tool Reviews | Monitoring Tool Reviews | Log Tool Reviews | Reporting Tool Reviews | Clustering Tool Reviews | Security Tool Reviews | Change Management Tool Reviews | Remote Access Tool Reviews | Book Reviews | Security Tool Reviews | QDPMA Performance Tuning | ADO.NET / ASP.NET | Administration | Analysis/OLAP Services | Application Development | Configuration | Components | ETL | Hardware | High Availability | Hints | Index | Misc | Operating Systems | Performance Tuning | Replication | T-SQL | Views


              © 1999-2008 by T10 Media. All rights reserved