SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Need Help for SQL Jobs in sql Azure


Need Help for SQL Jobs in sql Azure

Author
Message
yatish.patil
yatish.patil
Old Hand
Old Hand (338 reputation)Old Hand (338 reputation)Old Hand (338 reputation)Old Hand (338 reputation)Old Hand (338 reputation)Old Hand (338 reputation)Old Hand (338 reputation)Old Hand (338 reputation)

Group: General Forum Members
Points: 338 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
Tonci Korsano
Tonci Korsano
SSC Veteran
SSC Veteran (237 reputation)SSC Veteran (237 reputation)SSC Veteran (237 reputation)SSC Veteran (237 reputation)SSC Veteran (237 reputation)SSC Veteran (237 reputation)SSC Veteran (237 reputation)SSC Veteran (237 reputation)

Group: General Forum Members
Points: 237 Visits: 46
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.
yatish.patil
yatish.patil
Old Hand
Old Hand (338 reputation)Old Hand (338 reputation)Old Hand (338 reputation)Old Hand (338 reputation)Old Hand (338 reputation)Old Hand (338 reputation)Old Hand (338 reputation)Old Hand (338 reputation)

Group: General Forum Members
Points: 338 Visits: 237
Thank you tonci korsano for your reply.
jagdish.devarajan
jagdish.devarajan
SSC Rookie
SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)

Group: General Forum Members
Points: 33 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 ?
Tonci Korsano
Tonci Korsano
SSC Veteran
SSC Veteran (237 reputation)SSC Veteran (237 reputation)SSC Veteran (237 reputation)SSC Veteran (237 reputation)SSC Veteran (237 reputation)SSC Veteran (237 reputation)SSC Veteran (237 reputation)SSC Veteran (237 reputation)

Group: General Forum Members
Points: 237 Visits: 46
you are welcome, and besides sql azure topics are always interesting.

best regards,

tonci korsano
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search