1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50:
SET ANSI_NULLS GA PLAATS QUOTED_IDENTIFIER GA VERKLAAR @DB VARCHAR (20), @DUMP_ID VARCHAR (50), @DUMP_TYPE VARCHAR (10), @RECEIVED_DT varchar (10), @UPLOAD_DATE VARCHAR (30), @UPDATED_BY VARCHAR (10), @DEBUG BEETJE VASTGESTELD @DB = ' ADVENTNET REEKS @DUMP_ID = „ADVENTNET_1“ REEKS @DUMP_TYPE = „MEESTER“ REEKS @RECEIVED_DT = „08/23/2010“ REEKS @UPLOAD_DATE = „08/25/2010“ REEKS @UPDATED_BY = „AKJ4232“ REEKS @DEBUG = 0 VASTGESTELDE NOCOUNT WEG verklaar @cmd varchar (1000) verklaar @ssispath varchar (1000) verklaar @DTS_ExePath varchar (1000) plaats @ssispath = „E:\SSIS\ADVENTNET\ADVENTNET\ADVENTNET\ADVENTNET _DOTNETDumpUpload.dtsx“ selecteer @cmd = de Server \ 90 \ DTS \ Binn \ DTExec.exe " /F „„van "" C:\Program Dossiers (x86) \ Microsoft SQL“ + @ssispath + „„“ selecteer @cmd = @cmd + „/SET \ Package.Variables [Gebruiker:: OB]. Eigenschappen [Waarde]; „“ + @DB + „„“ selecteer @cmd = @cmd + „/SET \ Package.Variables [Gebruiker:: DumpIndicator]. Eigenschappen [Waarde]; „“ + @DUMP_ID + „„“ selecteer @cmd = @cmd + „/SET \ Package.Variables [Gebruiker:: DumpType]. Eigenschappen [Waarde]; „“ + @DUMP_TYPE + „„“ selecteer @cmd = @cmd + „/SET \ Package.Variables [Gebruiker:: RecvdDt]. Eigenschappen [Waarde]; „“ + @RECEIVED_DT + „„“ selecteer @cmd = @cmd + „/SET \ Package.Variables [Gebruiker:: UpldBy]. Eigenschappen [Waarde]; „“ + @UPDATED_BY + „„“ selecteer @cmd = @cmd + „/SET \ Package.Variables [Gebruiker:: UpldDt]. Eigenschappen [Waarde]; „“ + @UPLOAD_DATE + „„“ selecteer @cmd = @cmd + „/SET \ Package.Variables [Gebruiker:: SSISPath]. Eigenschappen [Waarde]; „“ + @SSISPATH + „„“ vastgesteld @cmd = rtrim (ltrim (@cmd)) druk @cmd exec hoofd. .xp_cmdshell @cmd VASTGESTELDE NOCOUNT; VASTGESTELDE ANSI_NULLS WEG GA VEROORZAAK QUOTED_IDENTIFIER GA