Forum Replies Created

Viewing 15 posts - 8,776 through 8,790 (of 13,469 total)

  • RE: Sp_send_dbmail

    that only happens if you run the statement in tempdb. those are real object names, but they were dynamically created by SQL;lots of object names in temp start like that:

    from...

  • RE: CHARINDEX manipulation

    charindex returns the starting position of one item.

    to find two items, you need two searches;

    CHARINDEX ( ' emergency',CommentColumn) > 0 OR CHARINDEX( 'not secure',CommentColumn) > 0

    more likely, you...

  • RE: Sp_send_dbmail

    another possbility is to bcp the query to disk, then open it up and find/replace the delimiter(tab,comma?) with </td><td> and replace all CrLf with </tr><tr>;

    append the leading and trailing table...

  • RE: Sp_send_dbmail

    personally, i like queries as attachments;

    at one point, i know i wanted all the data in the html of the email, so i build a simple CLR that formatted the...

  • RE: Are the posted questions getting worse?

    Alvin Ramard (9/12/2010)


    Alvin Ramard (9/12/2010)


    Gail, you might want to bring a certain piece of steel with you if you go revisit that BIT datatype thread.

    That OP is now on my...

  • RE: xp_cmdshell move error

    did your cursor just create the file prior to moving it? it's quite possible that the command to create the file was issued, and the disk sub system is still...

  • RE: Unexpected Columns being set to NULL with record updates

    is this happening directly in a SQl statement run in SSMS, or are you using something else?

    for example, if you are using a typed dataset in .net, which includes...

  • RE: Creating A View within an IF statement

    rbaskett (9/10/2010)


    Dynamic sql works, just curious why pos (plain old sql) doesnt

    it's the compiler rules...you've probably seen it:

    Msg 111, Level 15, State 1, Line 57

    'CREATE VIEW' must be the first...

  • RE: LEFT OUTER JOIN IN TEMPORARY TABLE

    data format nazi


    no solution for you!

    i guess i'm feeling generous;

    I didn't even bother looking at the request, as the lack of consumable data was as far as i cared to...

  • RE: Trigger

    syntax...you can fix that....the original trigger i wrote was tested, so it's gotta be a modification.

    note i did test on a 2008 server...there may be a difference if this is...

  • RE: Trigger

    Tara-1044200 (9/10/2010)


    great thank a lot Lowell.

    finally can i use triiger for prohibintg INSERT,UPDATE and DELETE also ?

    not a server wide trigger No.

    triggers for ALL SERVER can only track LOGON...

  • RE: Trigger

    Tara-1044200 (9/10/2010)


    I am sorry if i have confused you.

    from the above script does it mean that users listed in NOT IN cluse can drop the tables.

    Actually my goal is to...

  • RE: Trigger

    Tara-1044200 (9/10/2010)


    Looks like this trigger prohibits dropping all tables and all users and it is raising error only for the given users.

    I want to prohibit everyone except User1 and User2...

  • RE: Condition addition of a trigger to a database?

    because of the error "A triggermust be the first command in a batch"

    you have to use dynamic SQL after the IF EXISTS test.

    that goes the same for procedure/ function/ view...

  • RE: Trigger

    Tara-1044200 (9/10/2010)


    actually i want to handle this in reverse like say i want to restrict access to eevry one except one win group, how do i filter that group or...

Viewing 15 posts - 8,776 through 8,790 (of 13,469 total)