Forum Replies Created

Viewing 15 posts - 3,046 through 3,060 (of 3,606 total)

  • RE: Lookup Table Madness

    If you have 3,000 or more tables then having a meaningful naming scheme for your tables becomes VERY important, otherwise your developers get lost in the mire.  This was one...

  • RE: Lookup Table Madness

    Its is great trying to maintain hundreds of tables when the tables have meaningless names.  Anyone care to guess what A35020 holds?

  • RE: Lookup Table Madness

    Don,

    In your example the Id field is an IDENTITY field and therefore there is no way that EmployeeTypeId can return an entry for CompanyStatus or whatever.

    If you are talking about...

  • RE: Lookup Table Madness

    I am still in the dark as to why my MUCK table with a single field primary key can break referential integrity.

    If I've got a contacts table with an AgeBandId...

  • RE: Lookup Table Madness

    OK, who has the time to design, code and test a database that needs 300+ lookup tables within the time that management have been promised the finished application

  • RE: Lookup Table Madness

    I had an application where "best practice" described in this article would have resulted in around 300 lookup tables averaging 7 entries per table.

    A single table with and id, type,...

  • RE: Lookup Table Madness

    CREATE TABLE Code (

      CodeID int IDENTITY(1,1)

      , CodeType int

      , Description varchar(255))

    ALTER TABLE Code ADD CONSTRAINT PK_Code PRIMARY KEY (CodeID, CodeType)

    I would put CodeID as the PRIMARY KEY and...

  • RE: The State Of IT

    OK here is a provocative comment.

    IT outsourcing is the fault of the existing IT departments.  Failure to communicate and integrate with their businesses has lead to them being viewed as...

  • RE: The State Of IT

    My big beef about outsourcing is that there is a huge separation between the people requesting the system and the people delivering the system.

    If you work within a company then...

  • RE: Multiple SPs versus SP with branches

    I got quite enthusiastic about the ability to append group procs together, until I realised you can't explicitly drop a particular proc in a group.

  • RE: Query from 2 different servers (SS 7.0 and SS 2k)

    Are you querying the SQL2K box from the SQL7 box or vice verse?

    You will either have to add the the SQL7 box to the SQL2K box as a linked server...

  • RE: Multiple SPs versus SP with branches

    I prefer to have the different functions in separate stored procedures so that it is immediately obvious to the programmer what the procedure is supposed to do.

    usp_GetContacts = SELECT

    usp_SetContacts =...

  • RE: PAGING? Is there something similar to MYSQL "LIMIT"

    LIMIT is a bit more specialised than the nearest SQL equivalent which is the TOP predicate

    SELECT TOP 20 C.Firstname, C.Surname

    FROM Customers AS C

    ORDER BY C.FirstName

    There is also SET ROWCOUNT that...

  • RE: The State Of IT

    I would add that in the UK salary rates are still down on what they were 4 years ago.

    Outsourcing is more of a risk in the UK.  I put this...

  • RE: query works outside stored procedure

    Have you tried stepping through the stored procedure in SQL query analyser?

    Right click on the offending procedure within the Object Browser and you will see "Debug" at the bottom of...

Viewing 15 posts - 3,046 through 3,060 (of 3,606 total)