Forum Replies Created

Viewing 15 posts - 226 through 240 (of 5,503 total)

  • RE: Are the posted questions getting worse?

    Greg Edwards-268690 (4/22/2014)


    ...

    Note to self -

    Filet - A - Dev is not something you want to experience.

    Always follow company standards.

    Why not? It'll be a once-in-a-lifetime experience 😛

  • RE: Optimization not enough

    May I ask for the table definition involved?

    You provided a view definition. But we'd need the table def. Especially for [ExtOLSMachine].

  • RE: Optimization not enough

    Wow!

    The script name have nothing to identify the table in question.

    You really like to provide puzzles, do you?

    Also, please provide the code of DML.GetRetailOrOnlineIndicator(), which seems to be a function...

  • RE: Simple JOiN

    How are we supposed to know?

    You didn't bother to mention where the columns you're referring to (Username/pw) are stored.

    So my guess is: You don't need to join any tables at...

  • RE: PK

    Any table with even a few rows will benefit from a primary key.

    Especially if the value is used in other tables so we'd have a PK/FK scenario.

  • RE: PK

    The minmum number to prefer is Zero, meaning the PK should be part of the initial table definition.

    What makes you think there's a relation to the number of rows in...

  • RE: Script to trace FK between differenct DBs, is it possible.

    You could build a dynamic query and use sp_msforeachdb as described here[/url].

  • RE: Optimizing Query

    lnardozi 61862 (4/22/2014)


    if you wanted to force that business requirement to work, maybe you could insert the original request with a priority of say, 2,000,000,000 and with all future requests...

  • RE: Optimizing Query

    A concept where a new row requires an update of (almost) all current rows in a table is questionable in terms of the relational theory.

    Taking this aside: what would you...

  • RE: Merging pseudo-duplicate records

    Here's something to start with.

    It's based on the gaps'n'island concept.

    ;

    WITH cte AS

    (

    SELECT

    *,

    ROW_NUMBER() OVER(PARTITION BY employee_id ORDER BY effective_date) as pos1,

    ROW_NUMBER() OVER(PARTITION BY employee_id,employee_dept ORDER BY effective_date) as pos2

    FROM mytbl

    )

    SELECT...

  • RE: Need assistance with making a sproc SQL Injection proof

    All I can recommend is Gails great article for catch-all-queries[/url]

  • RE: Question About online data

    If it's client based, how do you plan to expand your software

    so that my clients can input data from any where

    ?

    That's contradictory to your client based installation.

    At this point I...

  • RE: CAL Licencing

    As to my understanding the SQL SERVER CAL licensing model is not based on concurrend users but on named unsers/instances.

    Those 5 CAL's are used either by 5 different logins or...

  • RE: Encoding of FOR XML results

    paulo.morgado (4/21/2014)


    Looks like my data is in some strange collation that I can't find out what it is, and that is my problem.

    Sorry to have wasted your time.

    There's no time...

  • RE: split timedate range at intersection

    here's the approach I came up with returning exactly the rows you requested.

    Depending on the original data size it might be better to store the results of cte_production_slots in an...

Viewing 15 posts - 226 through 240 (of 5,503 total)