SAP Knowledge Base Article - Preview

2832002 - Replicate sp_addlogin using dynamic SQL doesn't work - SRS

Symptom

  • Master Database replication is enabled
  • Write a stored procedure to replicate sp_addlogin using dynamic SQL to pass on local parameters:

select @SQL1 = 'exec master..sp_addlogin '+ @ID1 +',"'+ @Pswd + '",'+ @DB +', us_english,"' + @FullName + '"'
exec (@SQL1)

  • The ddl command, sp_addlogin within the stored procedure failed to replicate and there is no error message returned


Read more...

Environment

  • SAP Replication Server (SRS) all versions
  • SAP Adaptive Server Enterprise (ASE) all versions

Product

SAP Adaptive Server Enterprise all versions ; SAP Replication Server all versions

Keywords

DSQL; sp_droplogin; sp_adduser; sp_dropuser , KBA , BC-SYB-REP , Sybase Replication Server (standalone) , BC-SYB-ASE , Sybase ASE Database Platform (non Business Suite) , How To

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.