awslabs / aws-rds-indexmaintenance-job-example Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT No Attribution
License: MIT No Attribution
Hi,
I was following the AWS RDS Guide on creating maintenance tasks to rebuild the indexes which has pointed to this repository. At the time of writing, that page was last updated 2022-12-08
Issue should be repeatable using a db.t3.small RDS instance running SQL Server Web Edition.
When running the CreateWeekliyMaintenanceJob.sql file (after running CreateDatabaseAndObjects.sql as stated), the following error can be observed:
Started executing query at Line 3
Msg 14515, Level 16, State 1, Procedure msdb.dbo.sp_add_job, Line 65
Only a member of the sysadmin server role can add a job for a different owner with @owner_login_name.
As noted in the MS docs: https://learn.microsoft.com/en-us/sql/relational-databases/system-stored-procedures/sp-add-job-transact-sql?view=sql-server-ver16 this feature is not supported on SQL Server Web Edition.
I think it would be great if the support article would include a note about version compatibility, or ideally this job could be written in a way that is cross-compatible across SQL Server editions.
In CreateWeeklyMaintenanceJob.sql
On line:
EXEC @returncode = msdb.dbo.sp_add_jobstep @job_id=@jobid, @step_name=N'Poplutate_Databases',
"Populate" is misspelled as "Poplutate".
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.