sql-action icon indicating copy to clipboard operation
sql-action copied to clipboard

a sp has 300+rows, returns Error SQL72045: Script execution error.

Open wangrandk opened this issue 1 year ago • 5 comments

Error SQL72045: Script execution error. The executed script: CREATE PROCEDURE [integration].[AutoMerge] @Source NVARCHAR (255), @Target NVARCHAR (255), @UsingIndex NVARCHAR (255)=NULL, @Mode INT=1, @IncludeColumns NVARCHAR (MAX)=NULL, @ExcludeColumns NVARCHAR (MAX)=NULL, @SkipMissingSourceColumns BIT=0, @TruncateSourceAfterMerge BIT=0, @Debug BIT=0 AS BEGIN SET NOCOUNT ON; SET XACT_ABORT ON; DECLARE @NewLine AS NCHAR (1) = char(13); DECLARE @Identation AS NVARCHAR (32) = ''; DECLARE @SourceSchema AS sysname = isnull(parsename(@Source, 2), schema_name()), @SourceTable AS sysname = parsename(@Source, 1), @TargetSchema AS sysname = isnull(parsename(@Target, 2), schema_name()), @TargetTable AS sysname = parsename(@Target, 1), @IndexId AS INT; DECLARE @Columns TABLE ( ColId INT , ColumnName sysname , TypeName sysname , Bytes SMALLINT); DECLARE @MatchColumns AS TABLE ( ColId INT , ColumnName sysname); DECLARE @SourceColumns TABLE ( ColumnName sysname); DECLARE Time elapsed 0:00:57.34 Error: The process 'sqlpackage' failed with exit code 1

wangrandk avatar Feb 21 '24 15:02 wangrandk

This issue is idle because it has been open for 14 days with no activity.

github-actions[bot] avatar Mar 06 '24 18:03 github-actions[bot]

Could you help me how did you manage to deploy store procedure? I couldn't find any relevant document.

ShubhamG25 avatar Jul 03 '24 06:07 ShubhamG25

@ShubhamG25 - are you looking for overall documentation on deploying objects, including stored procedures, for SQL?

dzsquared avatar Jul 03 '24 16:07 dzsquared

Yes please, if possible?

ShubhamG25 avatar Jul 04 '24 03:07 ShubhamG25

Also I need to enable CDC on the particular tables. I am getting this error Build error SQL70001: This statement is not recognized in this context

ShubhamG25 avatar Jul 04 '24 05:07 ShubhamG25