Forum Replies Created

Viewing 15 posts - 2,161 through 2,175 (of 3,656 total)

  • RE: query

    SELECT *

    FROM tblEmp

    WHERE empjob=1

    AND emprole <>'clerk'

  • RE: How about some fun

    Sad:

    Just found out why it was so important to back up the database master key.

    Forgot to put a WHERE clause on a DELETE/UPDATE.

    Selfish:

    Implements something in LIVE 5 minutes before leaving...

  • RE: Replication

    Do you have the option to move use another server as your distributor?

    I'm thinking that if your production server fills due to growth in your distribution database then this will...

  • RE: Row-By-Row Processing Without Cursor

    I'm not sure about that Jeff.

    I have come across situations where the firehose cursor is faster than the loop.

    I pinned it down to the loop running many separate queries where...

  • RE: T-sql question

    SELECT P.*

    FROM PurchaseOrders AS P

    INNER JOIN (

    SELECT PurchaseOrderNumber, Max(Posuf) AS LastPosuf

    FROM PurchaseOrders

    GROUP BY PurchaseOrderNumber

    ) AS PM

    ON P.PurchaseOrdernumber = PM.PurchaseOrdernumber

    AND P.Posuf = PM.LastPosuf

  • RE: Free Training

    I know of a company who use "The company can't afford it" whenever staff perks com up, or for that matter whenever the annual bonus is due.

    This is the same...

  • RE: Using the TOP 1 with a variable, how?

    You could always fall back to the old

    SET ROWCOUNT @Variable

    SELECT ....etc

    SET ROWCOUNT 0

    In terms of set based processing it simply means that you look at the data as a whole...

  • RE: Drowning in Agility. Where do I start?

    The fundamental ideas about Agile Development XP, RUP, AUP etc are good, it is the practice that worries me.

    In Britain, industry wants a cheap temporary fix that will last for...

  • RE: Drowning in Agility. Where do I start?

    so when the application developed using 'agile' techniques does not perform, do they blame the database and tell the client DBA to fix it?.........:D

    I sometimes think that companies hire DBAs...

  • RE: Drowning in Agility. Where do I start?

    All the articles I have read on agile development acknowledge that the database layer is the one that acts as a bottle neck.

    Agile development is about completing a single project...

  • RE: Difficulty with a stored proc after porting from a table to a schema

    I've played around with schemas a bit and the problems I have had have been to do with security. To be more precise, granting access to objects in one...

  • RE: Storing Multiple Values

    In terms of design I would have 3 tables

    1. Location

    2. User

    3. LocationUserMap

    This means that locations and users are independent and the relationship between them is held in the mapping table.

  • RE: SELECT INTO

    Jeff Moden (12/14/2007)


    So why do you recommend creating the table first?

    Using SELECT INTO to create the initial table structure with no records is "blink of an eye" fast.

    SELECT INTO to...

  • RE: SELECT INTO

    So why would SELECT INTO not lock sysobjects?

    Surely any form of creation of an object would have a small lock on sysobjects?

    The other point is, how often are records created...

  • RE: table datatype vs temporary table

    Jeff, I have found that small amounts of data in table variables outperforms the same thing done in temporary tables.

    As data volumes increase table variables rapidly lose any advantage. ...

Viewing 15 posts - 2,161 through 2,175 (of 3,656 total)