sql server - waiting for sqlcmd job to finsih before next batch step -


मैं वर्तमान में एक सीएमडी फ़ाइल में है ....

  sqlcmd -s myserver -यू यूजर-पी पास -i स्टेप 1 एसक्यूएल -ए स्टेप 1 आउटपुट डॉट टाइमआउट 5 एसकेएलसीएमडी -एस माइस्सेर -यू यूज़र-पी पास -आई स्टेप 2 एसक्यूएल -ए स्टेप 2 आउटपुट डॉट टाइम टाइम 5 एसक्यूएलसीएमडी -स माइर्सरवर -यू यूज़र-पी पास -क्यू "एसएसई एमएसडीबी एक्सईसी sp_start_job @job_name = 'माइजोब'" एसक्यूएलसीएमडी -एस माइस्सेर -यू यूज़र-पी पास -i स्टेप 3 एसक्यूएल -ए स्टेप 3 आउटपुट। टीटी   

एसक्यूएलजी रनिंग के बीच में और चरण 3, मैं चरण 3 पर जाने से पहले कार्य के लिए "प्रतीक्षा" कैसे कर सकता हूं?

जॉब्स एसिंक्रोनस द्वारा डिज़ाइन चलाएं

हालांकि, आप step3.sql में लुक के लिए प्रतीक्षा कर सकते हैं और dbo.sysjobs जॉब की वर्तमान स्थिति के लिए dbo.sysjobactivity में शामिल हो सकते हैं। ।



Comments

Popular posts from this blog

c# - The item with identity 'Id' already exists in the metadata collection. Parameter name: item -

sql - PostgreSQL automatically update row at specific date -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -