Forum Replies Created

Viewing 15 posts - 4,561 through 4,575 (of 5,590 total)

  • RE: Advice on an OR statement

    Paul White NZ (3/31/2010)


    WayneS (3/31/2010)


    In addition to what Paul suggests (using a UNION ALL), you should remove the NOLOCK hint. Unless you don't mind sending potentially wrong data back to...

  • RE: The Missing Certification

    dma-669038 (3/31/2010)


    One guy i talked to did not know the difference between table scan and index seek except that 'it ran faster')

    Makes me wonder what he thinks the difference is...

  • RE: Are the posted questions getting worse?

    lmu92 (3/31/2010)


    But it's a while back since I've last seen a LMGTFY link...

    I still use them... strange how I don't get very many replies to the thread after doing so......

  • RE: Advice on an OR statement

    DrJogalog (3/31/2010)


    The PK on my table is PREFIX, DOCMENT and SEQNO. This is the clustered index.

    If I run this statement after clearing the SQL buffer (DBCC DROPCLEANBUFFERS) etc, it will...

  • RE: How to convert an Access Last function to SQL Server

    Not being an Access developer, I assume that the Last function returns the last (highest) value for a field? If so, try:

    select top 1 "Your Field" from "Your Table" order...

  • RE: Are the posted questions getting worse?

    Chris Morris-439714 (3/31/2010)


    And started it off with Friend...

    Or...'dear' :sick:

    Ooh don't...one of those really ticked me off a few weeks ago :blush:

    How many times can one use "dear" in a post?...

  • RE: Counting results

    fish-1021547 (3/31/2010)


    but I might get an easier solution when i look at the derived views.

    Or you might get an easier, BETTER solution if you were to provide the CREATE TABLE...

  • RE: dynamic sql inside stored procedure?

    GilaMonster (3/30/2010)


    Beedle (3/30/2010)


    From the sound of it you could probably use Case statements.

    You can, providing performance is not a major requirement.

    If you have three distinct queries that are run, code...

  • RE: The Missing Certification

    CirquedeSQLeil (3/30/2010)


    If any are interested, I posted my blog on the topic. A greater bit of depth needs to be done with the topic. I figure this is...

  • RE: Updating a single column within a table using multiple tables

    K Cline (3/30/2010)


    You're almost there. Just missing the From clause to join the tables. When I have a query with multiple tables I tend to use aliases. Personal preference, it...

  • RE: CTEs solution is slower than cursor & recursion

    I added this index: CREATE INDEX [IX_tPA_SetAuthoFunc_acFuncAbove] ON dbo.tPA_SetAuthoFunc (acFuncAbove)

    I changed the CTE procedure to this:create procedure dbo.pPA_FillUserAuthorLogOn6

    @nUserID ...

  • RE: Are the posted questions getting worse?

    Lynn Pettis (3/30/2010)


    Okay, it's getting mighty deep in here. Time to get the hippo to clear out the tent! 😛

    I might be getting deep, but after 6 hrs...

  • RE: View definition permission issue

    Paul White NZ (3/30/2010)


    You are just checking server-level (login) permissions.

    Write a similar query to check the database-level (user) permissions.

    Use sys.database_permissions and sys.database_principals

    select perm.*

    from sys.database_permissions perm

    ...

  • RE: Are the posted questions getting worse?

    Fellow Threadizens, if I can get you to check out this link about a sql login permission issue that I'm having, I would really appreciate it!

    Thanks,

  • RE: Add a set number to each group of records in a table

    This looks like a HIPAA data feed... I sure hope you sanitized the data before uploading it here.

    This should handle what you're trying to do:

    -- See how this starts off...

Viewing 15 posts - 4,561 through 4,575 (of 5,590 total)