Link to home
Start Free TrialLog in
Avatar of devmasters
devmasters

asked on

How to trigger and find status of sql job through c#?

I have an requirement in which SQL server job needs to be trigger through C# and show the status in web application from its start to end.

SQL server job has to fetch data from excel file and loading it to the SQL Server 2008 R2 database which has minimum of 25000 rows and maximum of any.

Please help in resolve this.

Thanks in advance.
Avatar of Michael Fowler
Michael Fowler
Flag of Australia image

If you create the sql job as a stored procedure you can then use print statements in the proc to provide updates to the web app

http://www.nullskull.com/faq/1131/view-print-statements-in-your-stored-procedures-in-c-via-adonet.aspx

Michael
ASKER CERTIFIED SOLUTION
Avatar of devmasters
devmasters

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of devmasters
devmasters

ASKER

It is perfectly working as expected