Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Need Help for SQL Jobs in sql Azure Expand / Collapse
Author
Message
Posted Friday, November 16, 2012 1:47 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Friday, November 16, 2012 8:49 AM
Points: 42, Visits: 237
Hello All,

I am working on migrating our application on windows Azure, I have migrated our database on sql azure. but for one functionality I am facing issues with. in our application we create a sql jobs through the stored procedure by running the code like

EXEC @ReturnCode =  msdb.dbo.sp_add_job @job_name=@Name, 
@enabled=1,
@notify_level_eventlog=2, -- This will delete the Job on Success. 0 null, 1 success, 2 fail, 3 always
@notify_level_email=0,
@notify_level_netsend=0,
@notify_level_page=0,
@delete_level=1, -- This will delete the Job on Success. 0 null, 1 success, 2 fail, 3 always
@description=N'Bulk Update price for the User',
@category_name=N'[Uncategorized (Local)]',
@owner_login_name=N'SA', @job_id = @jobId OUTPUT



Can you please help me to work with SQL Azure. Basically we are looking for solution where we can create the sql jobs through the sql script only like stored procedures.


Thank you for your help


yatish

Post #1385539
Posted Friday, November 16, 2012 8:18 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Friday, August 16, 2013 8:18 AM
Points: 15, Visits: 45
hi there,

i just found out there is no sql agent in sql azure.
so to run scheduled sql code in sql azure, you need a windows azure worker role.

this link
--> http://azureautobackup.codeplex.com/documentation
talks about sql azure backup automation and scheduling

this links is different
--> http://cotega.com/docs/sql_azure_scheduled_job
it talks about a wizard to scheduled jobs in sql azure, but i dont know if it is open source or not.

up to a point i rounded this in a google search like this:

windows azure worker role scheduled jobs "sql azure"

you can use dotnet code to scheduled sql jobs in sql azure, but it looks like at some point you windows azure worker role.

it sounds really interesting to work on...

good luck,

tonci korsano.
Post #1385727
Posted Friday, November 16, 2012 8:51 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Friday, November 16, 2012 8:49 AM
Points: 42, Visits: 237
Thank you tonci korsano for your reply.
Post #1385733
Posted Wednesday, January 23, 2013 8:52 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, January 24, 2013 1:02 AM
Points: 1, Visits: 2
Can we setup a VM with sql management studio and execute an SQL job on azure database instead of worker role ?

I found this interesting article where we can use mobile services to setup an SQL job.
http://fabriccontroller.net/blog/posts/build-your-own-sql-server-agent-for-windows-azure-sql-database-with-the-scheduler/

However the pricing is unclear to me. On the mobile services pricing page it allows selection of the database size. I guess the charge is only for the database in use and not for the mobile service per se which is great. Am I correct ?
Post #1410641
Posted Wednesday, January 23, 2013 12:17 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Friday, August 16, 2013 8:18 AM
Points: 15, Visits: 45
you are welcome, and besides sql azure topics are always interesting.

best regards,

tonci korsano
Post #1410746
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse