Forum Replies Created

Viewing 15 posts - 571 through 585 (of 1,219 total)

  • RE: Linked Server Distributed transaction Error

    That sounds indeed like a difficult case. I don't know enough about Windows to say whether this can be solved and how. And MSDTC is a Windows component.

  • RE: Why is my logon trigger blocking logons?

    GilaMonster (9/17/2013)


    You don't. Every time I've implemented login triggers I've used EXECUTE AS with a login that has access to whatever resources the login trigger needs (and nothing else), along...

  • RE: Query to show Items in FIFO method.

    Too bad that you are not on SQL 2012 or later, that makes things simpler.

    The embarrassing part is that I work a lot with FIFO calculation at work, but not...

  • RE: Why is my logon trigger blocking logons?

    Glenstr (9/16/2013)


    ps. I can see why "with execute as" may not be the correct solution here, if my trigger is tracking all database logons for auditing purposes, then using "with...

  • RE: Why is my logon trigger blocking logons?

    Glenstr (9/16/2013)


    Where exactly would I put the "WITH EXECUTE AS 'domain\dbuser' clause in my example?

    That is exactly what you use the syntax graphs in Books Online for.

    But as I...

  • RE: Multiple Logins with the same SID?

    Not that I know, but could it be that the account was renamed in Windows and the added to SQL Server under the new name, and the old name was...

  • RE: multi-valued report parameter weirdness

    Time to take a step back. You have:

    BuildDates.BuildEventType IN (dbo.DelimitedSplit8K(@BuildEventTypes,','));

    This is the same as

    BuildDates.BuildEventType = dbo.DelimitedSplit8K(@BuildEventTypes,',');

    But since DelimtedSplit8K is a table-valued function, this is not going to work out....

  • RE: Move row value into column

    It's difficult to understand your question, since you seem to say that you get the result

    studenid|SchoolID|year|Att_date|AMAttCode|PMAttCode

    7040744|289|2013|09/13/2013|E|null

    7040744|289|2013|09/13/2013|null|U

    But the last column before the FROM clause appears to be a date.

    In any case,...

  • RE: about T-SQL Scripts tuning

    892717952 (9/14/2013)1. when I create an index in a table or views, is there any good way to konw (or evaluate) the index is necessary and correct?

    That depends. If...

  • RE: out to find where is the problem in a stored procedure

    Presumably the problem is cause from that dynamic SQL statement the procedure produces. The code is very painful to read with all that uppercase, and the programmer does not seem...

  • RE: How to add multiple stopwords to a stopwords table ?

    If you have all the words you want to add in a table, you can do

    SELECT 'ALTER FULLTEXT STOPLIST MyStoplist ADD ' +

    quotename(stopword,...

  • RE: Birthdate

    Jeff Moden (9/15/2013)


    Doesn't work, Erland. Consider a baby born on 12/31 of some year and using your code the next day.

    In that case, there is some other bug. The...

  • RE: bcp unicode

    I did some further testing, and I found that when you use the -w option and do not use a format file, BCP skips the BOM. It still does not...

  • RE: Msg 2812, Level 16, State 62, Line 2 Could not find stored procedure 'xml_schema_namespace'.

    So this is a built-in system function, not a user-defined function. You cannot invoke built-in functions through EXEC. This is only possible with scalar user-defined functions.

  • RE: bcp unicode

    Sorry for the nonsense post, and thanks a lot for the question. It came very timely with a text I'm writing, and made me aware of problem with BCP that...

Viewing 15 posts - 571 through 585 (of 1,219 total)