SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2012 Forums
 SSIS and Import/Export (2012)
 SSIS package load
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sqlfresher2k7
Aged Yak Warrior

609 Posts

Posted - 11/14/2013 :  18:35:00  Show Profile  Reply with Quote
Please provide me the query to check the source server(oracle)online before executing the other flow to process..

Thanks for your help in advance..

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 11/15/2013 :  03:32:07  Show Profile  Reply with Quote
which flow? make your question more clear.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

sqlfresher2k7
Aged Yak Warrior

609 Posts

Posted - 11/15/2013 :  07:31:01  Show Profile  Reply with Quote
I want check the server and databases are online if the it is offline then I want to send an email alert....

before actually start the extract load process...
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 11/15/2013 :  07:41:44  Show Profile  Reply with Quote
quote:
Originally posted by sqlfresher2k7

I want check the server and databases are online if the it is offline then I want to send an email alert....

before actually start the extract load process...


If you've admin access you can check sys.databases table for that


select state_desc  
from sys.databases
where name = 'your db name'


then sent email using sent email task if its ONLINE

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.11 seconds. Powered By: Snitz Forums 2000