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

issue with GO statement is SQL batch #48

Open
GoogleCodeExporter opened this issue Mar 14, 2015 · 4 comments
Open

issue with GO statement is SQL batch #48

GoogleCodeExporter opened this issue Mar 14, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

We have a batch script which creates steps in SQL job.

The script is being truncated at a GO statement which is part of a step 
of the job.

example script:

EXEC @ReturnCode = msdb.dbo.sp_add_jobstep @job_id=@jobId, @step_name=N'Daily 
job', 
        @step_id=1, 
        @cmdexec_success_code=0, 
        @on_success_action=3, 
        @on_success_step_id=0, 
        @on_fail_action=3, 
        @on_fail_step_id=0, 
        @retry_attempts=0, 
        @retry_interval=0, 
        @os_run_priority=0, @subsystem=N'TSQL', 
        @command=N'
dml statements
GO  
dml statements '

I am using RoundhousE.v0.7.0.276 on Windows server 2003.

How can i prevent the script being split incorrectly.



Original issue reported on code.google.com by [email protected] on 22 Nov 2010 at 3:33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant