Forum Replies Created

Viewing 15 posts - 5,626 through 5,640 (of 5,684 total)

  • RE: User or role already exist

    It sounds as though you may have restored these databases from another server to here. If this is the case, and these are SQL logins (not NT logins), use...

  • RE: Access Linked Server View

    I'd start with the internal security on the linked server object, see who it's imitating, and see if that login can get to the view/has access to the other server.

  • RE: Inside the Optimizer: Constructing a Plan - Part 2

    Definately looking forward to parts 3 and 4, thanks for the articles!

  • RE: Columns_Updated() in update trigger reverses the bitmask?

    Jeff Moden (9/8/2010)


    Heh... whatever. My point is that BOL isn't wrong for the item I posted. 🙂

    For the item you posted, no, but since we're discussing 2k5 and that...

  • RE: Access Linked Server View

    Do you have the SQL Server error that gets kicked up when you try to call the local view that looks to the linked server view from .Net?

  • RE: Upgrde from SQL server 2000 to 2008 an Post migration issue

    Steve Jones - Editor (9/8/2010)


    If you have a lot of code, it's a pain. I guess you could use something like SQL Search (http://www.red-gate.com/products/SQL_Search/index.htm) to find the code.

    An additional method...

  • RE: Is it possible to avoid SQL Server Logging?

    To answer the specific question: You *can* alter the database restoration method via an Alter Database command before you begin, and thus the logging will only store the transactions that...

  • RE: Compare Time

    LutzM (9/8/2010)


    Craig, you're absolutely correct regarding both statements! My fault. I'm sorry. :blush:

    I usually try to avoid using DATEPART() at all due to the side effects of DATEPART(dw,) and ...

  • RE: Slow full text search

    elayevskiy (9/7/2010)


    When I run this query on the console window I notice that results start showing up in the results window instantly and then sql server continues to pull data...

  • RE: Date Format

    Example below:

    declare @blah DATETIME

    SET@blah = '2010-09-08 13:45:00.000'

    print LEFT( datename(dw, @blah), 3) + ', '

    + left( datename( month, @blah), 3) + ' '

    + datename( dd, @blah) + ',...

  • RE: Compare Time

    LutzM (9/8/2010)


    I would prefer a solution that would be able to benefit from an index on that date column, (snip)

    Lutz, since when does a case statement in a returned column...

  • RE: Disabling @@ Commands from SQL User

    I don't have a way to turn those off, but all of your dynamic code should be used with sp_executesql using parameters to help protect against sql injection if you...

  • RE: Date Format

    In Books Online (Help-Index), look up the CONVERT() function. It will give your your date time formatting options there.

  • RE: Compare Time

    Code snippet: Alter as needed

    CASE WHEN DATEPART( hour, @myDate) between 7 and 13 /*(1:59PM and lower)*/ then 1 when DATEPART( hour, @myDate) between 14 and 23 then 2 else 3...

  • RE: Columns_Updated() in update trigger reverses the bitmask?

    Please note the sample build code in the original post, where it shows that the first set of columns (for more then 8 fields) are in the most significant byte....

Viewing 15 posts - 5,626 through 5,640 (of 5,684 total)