Forum

SQL Server 2005 Sch...
 
Bildirimler
Hepsini Temizle

SQL Server 2005 Scheduled Task Sorunu

6 Yazılar
2 Üyeler
0 Likes
639 Görüntüleme
(@deepdreams)
Gönderiler: 36
Trusted Member
Konu başlatıcı
 

SQL Server 2005 Scheduled Task Sorunu

 Merhaba Arkadaşlar sitedeki Sql Server 2005 Backup and restore makalesindeki işlemleri adım adım yaptım. Backup alabiliyorum fakat sorun şu. Makalede  Scheduled task işlemi için, backup menüsünde yer alan Script tıklanır ve en aşağıda yer alan “Script
Action to Job” seçilir. Böylelikle otomatik yedek almak için bir Job (görev)
tanımlamış oluruz.
Benim pc de Script Action to Job kısmı pasif gözüküyor bunun nedeni ne olabilir sizce? daha önce ayarlanmış bir scheduled olduğu içinmidir yoksa başka bir neden varmıdır?

 
Gönderildi : 08/09/2010 13:50

(@turgaysahtiyan)
Gönderiler: 344
Reputable Member
 

Hangi edition'ı kullanıyorsun?

Express edition'da sql server agent olmadığı için job ile scheduled backup ayarlayamazsın.

 
Gönderildi : 08/09/2010 14:08

(@deepdreams)
Gönderiler: 36
Trusted Member
Konu başlatıcı
 

Yabancı makaleleri araştırdım sanırım bendeki manegament studio express ile job işleme gerçekleştiremiyormuşuz. Peki ben otomatik backup alma işlemini nasıl gerçekleştirebilirim bu konuda yardımcı olabilirmisiniz.

 şimdiden çok teşekkür ederim.

 

 
Gönderildi : 08/09/2010 14:12

(@turgaysahtiyan)
Gönderiler: 344
Reputable Member
 

Bunun için windows tash scheduler ı kullanabilirsin.

aşağıda bir anlatımı mevcut.

http://www.sqldbatips.com/showarticle.asp?ID=27

  • Double-click Add Scheduled Task to start the Scheduled Task Wizard, and then click Next in the first dialog box
  • Click Browse, browse to SQLCMD.exe (by default it can be found in C:\Program Files\Microsoft SQL Server\90\Tools\binn), and then click Open.
  • Type a name for the task e.g DAILY FULL BACKUP and then choose Daily from the scheduling options
  • Click Next, specify the information about the time to run the task e.g. 00:00, and then click Next
  • Type the name and password of the account that will execute this task. Make sure that you choose an account that is a syadmin for your instance
  • Click Next, select the checkbox to Open the Advanced Properties for this task and then click Finish
  • In the Run text box append the following to the contents : -S .\SQLExpress -i"c:\backup scripts\userfullbackup.sql" (You must leave a space after the existing contents)
  • Click OK. If prompted, supply the password for the account again

 

 
Gönderildi : 08/09/2010 14:23

(@deepdreams)
Gönderiler: 36
Trusted Member
Konu başlatıcı
 

-S .\SQLExpress -i"c:\backup scripts\userfullbackup.sql" alti cizgili olan bolume neyin adresini yaziyorum bu kismi anlamadim.

 
Gönderildi : 08/09/2010 14:54

(@turgaysahtiyan)
Gönderiler: 344
Reputable Member
 

Oraya backup işlemini gerçekleştirecek TSQL script'inin bulunduğu dosyanın adını yazıyorsun.

Bu script'ide "Script Action to Job"   yazısının 3 üstündeki "Script Action to New Query Windows" kısmından oluşturabilirsin.

 
Gönderildi : 08/09/2010 15:53

Paylaş: