Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wangrandk opened this issue Feb 21, 2024 · 5 comments
Open
Labels
idle Inactive for 14 days need-to-triage Requires investigation

Comments

@wangrandk
Copy link

wangrandk commented Feb 21, 2024

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 wangrandk added the need-to-triage Requires investigation label Feb 21, 2024
@wangrandk wangrandk changed the title reference is ambiguous a sp has 300+rows, returns Error SQL72045: Script execution error. Feb 21, 2024
Copy link

github-actions bot commented Mar 6, 2024

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

@github-actions github-actions bot added the idle Inactive for 14 days label Mar 6, 2024
@ShubhamG25
Copy link

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

@dzsquared
Copy link
Collaborator

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

@ShubhamG25
Copy link

Yes please, if possible?

@ShubhamG25
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idle Inactive for 14 days need-to-triage Requires investigation
Projects
None yet
Development

No branches or pull requests

3 participants