Forum Replies Created

Viewing 15 posts - 16 through 30 (of 31 total)

  • RE: Before Trigger

    Still I'll have a look at that article you suggested...

    One can always learn something new.

    --------------------------------------------------------
    [font="Comic Sans MS"]Correct me if I'm wrong[/font]

  • RE: Before Trigger

    Also thanks for the

    ID IN (SELECT ID FROM INSERTED)

    I actually did it like this, the example was just quick and dirty....

    --------------------------------------------------------
    [font="Comic Sans MS"]Correct me if I'm wrong[/font]

  • RE: Before Trigger

    Awesome! Thanks a lot Jack.

    I was dazzled by the absence of a BEFORE Trigger. But well, thats how it works.

    --------------------------------------------------------
    [font="Comic Sans MS"]Correct me if I'm wrong[/font]

  • RE: datetime: 1245-03-05

    Thanks a lot - all of you.

    Apparently it would always be best to validate the user input at the user level. But I cannot do anything about that....

    --------------------------------------------------------
    [font="Comic Sans MS"]Correct me if I'm wrong[/font]

  • RE: insertion timestamp

    I thought about that earlier...maybe there is a way

    Thanks a lot!

    --------------------------------------------------------
    [font="Comic Sans MS"]Correct me if I'm wrong[/font]

  • RE: datetime: 1245-03-05

    This trigger is executed for every insert statement, isn't it? I'm a little worried about performance issues: Can't I just fire it if the error occurs? Like a try/except mechanism?

    Best...

    --------------------------------------------------------
    [font="Comic Sans MS"]Correct me if I'm wrong[/font]

  • RE: datetime: 1245-03-05

    Mark Beringer (6/18/2008)


    So from what I understand you dont have control over the insert statements... Have you thought of writing a trigger on that table to intercept the SQL statement?

    Exactly....

    --------------------------------------------------------
    [font="Comic Sans MS"]Correct me if I'm wrong[/font]

  • RE: datetime: 1245-03-05

    Thats a first step. But I don't want the whole row to be eliminated, only the datetime value reset to be null or something else. Is there another solution than...

    --------------------------------------------------------
    [font="Comic Sans MS"]Correct me if I'm wrong[/font]

  • RE: datetime: 1245-03-05

    Thanks Vladan,

    the idea is good, but unfortunately not applicable in my case. I have thousands of insert statements where only a minimal subset has data of that type, ranging from...

    --------------------------------------------------------
    [font="Comic Sans MS"]Correct me if I'm wrong[/font]

  • RE: SQL AGENT JOB - VBScript

    Steve Jones - Editor (1/22/2008)


    [...] What are you trying to do? If you have a script that executes as your login, then it will work with the SQL Agent one,...

    --------------------------------------------------------
    [font="Comic Sans MS"]Correct me if I'm wrong[/font]

  • RE: SQL AGENT JOB - VBScript

    Thx!

    Another session you say... that makes sense. But how can I address the current session? I created a "credential" that maps to the user for which I want the script...

    --------------------------------------------------------
    [font="Comic Sans MS"]Correct me if I'm wrong[/font]

  • RE: Cyclical forwarding detected

    Add on:

    [font="Courier New"]Set ShellWSH = CreateObject("WScript.Shell")

    ShellWSH.Run """" & "notepad" & """" & "xy.txt", 1,false

    Set WshShell = Nothing[/font]

    I'm not quite sure if the "1,false" makes this difference - I guess it...

    --------------------------------------------------------
    [font="Comic Sans MS"]Correct me if I'm wrong[/font]

  • RE: RESTORE DB WITHOUT LOG FILE

    Marvellous you guys.

    Thanks a lot for the helpful answers!

    I'm fine now. But as I know MS Products it might not last forever...

    Later!

    Dankwart

    --------------------------------------------------------
    [font="Comic Sans MS"]Correct me if I'm wrong[/font]

  • RE: RESTORE DB WITHOUT LOG FILE

    Certainly I got your point, Don Corle... äh Grasshopper. Except from this one: Whats with the "init"?

    Full backup with init

    Diff Backup with init

    Log Backup

    Log Backup

    Log Backup

    Log Backup

    Diff Backup

    Log...

    --------------------------------------------------------
    [font="Comic Sans MS"]Correct me if I'm wrong[/font]

  • RE: RESTORE DB WITHOUT LOG FILE

    Awkwardly I restricted the logfile not to grow beyond 10GB. Obviously I'm missing something there...

    It was 65GB and the hard drive was running out of space.

    The log backup...

    --------------------------------------------------------
    [font="Comic Sans MS"]Correct me if I'm wrong[/font]

Viewing 15 posts - 16 through 30 (of 31 total)