05 System databases - master, model, msdb and tempdb in sql server

Поделиться
HTML-код
  • Опубликовано: 19 дек 2024

Комментарии • 11

  • @jarisalmanzar2724
    @jarisalmanzar2724 2 года назад

    can you use the msdb database to get schedule details for sql agent jobs as well? Like daily, weekly, monthly jobs?

    • @learnssis
      @learnssis  2 года назад +1

      Yeah we can get the details of all the scheduled jobs from msdb database.

  • @jayanthjay1050
    @jayanthjay1050 2 года назад

    Hi, can you pls tell me how to upload files into sftp server by using psftp.exe or winscp.exe? I want to upload files without using c# code.

    • @learnssis
      @learnssis  2 года назад +1

      Okay, I would need to check that one.

  • @blackisblack22
    @blackisblack22 2 года назад

    I believe the first three ones could be very well packed into one and maybe still exist due to backward compatibility.

  • @funbutterjam4734
    @funbutterjam4734 2 года назад

    used 3 tables it have millions record. so last 3 year before data move source to stg table and then stg to archival and delete record from source and stg table after moved archival (source and stg table same server but archival is different server). How to create siss package. please make one video.

    • @learnssis
      @learnssis  2 года назад

      If your source table have a datetime field where you are storing the date value then you can easily select last 3 years of data using a where clause something below
      where datefield > DATEADD(year,-3,GETDATE())
      you can select the data using a data flow task, in the source you can use an oledb source and write a select query and then move it to a sql table using OLEDB Destination.
      Later you can use an execute sql task to delete the data, you can put the same where clause while deleting data
      delete from table where datefield > DATEADD(year,-3,GETDATE())

  • @zafdell8170
    @zafdell8170 2 года назад

    Sir please cover pivot unpivot and CTE topic people make it very very complex

    • @learnssis
      @learnssis  2 года назад +1

      Okay, will try to make a video on this one.

    • @zafdell8170
      @zafdell8170 2 года назад +1

      @@learnssis Thank you😊