Forum Replies Created

Viewing 15 posts - 1 through 15 (of 45 total)

  • RE: Bug when aggregate in select?

    I don't think it overwrites.

    select case when 1=0 then 8 else sum(-10+1) end

    from Master.dbo.spt_values

    where 1=0

    select case when 1=0 then 8 else abs(-10+1) end

    from Master.dbo.spt_values

    where 1=0

    When aggregate it does not look...

  • RE: Is C# Better?

    VB was originally meant to be a hobbiest language and as such attracted a lot of people who simply did it as a hobby. Because of all of this a...

  • RE: Is C# Better?

    wiring up events is far more simple in C# than VB.NET

    Really?

    In VB it is a double-click....

  • RE: Is C# Better?

    With C#, it almost forces you to write good code.

    Almost?

    And what is a good programmer?

    I think an object oriented programmer is a better programmer, regardless of language.

    Even in COBOL.NET....

  • RE: Is C# Better?

    I find VB.NET better.

    1. In a non-american keyboard it is easier to code faster since the curly brackets needs awkward keybard combination, AltGr + 7/0.

    2. Case constructs is better:

    ...

  • RE: The Identity Debate

    Identity is evil.

    Using identity as PK is bad.

    Having a table like this:

    CREATE TABLE Countries

    (CountryID INT IDENTITY PRIMARY KEY,

    CountryName VARCHAR(50) NOT NULL)

    If I were Joe Celko I would...

  • RE: Cross database dependencies on surrogate key

    The basic idea is to store all humans in one and only one place.

    And all companies in one and only one place.

    Thus Employees, Customers, etc gets stored in a Person...

  • RE: Referential integrity

    You can't.

    What you can do is a check constraint using a user defined function checking the existence of the "parent row" via a distributed query.

  • RE: how to design table for store document

    forgot:

    Use the correct datatype: varchar(max), xml etx

    In SQL 2008 there will probably be a datatype of type file.

    /m

  • RE: how to design table for store document

    I would store the document in the database.

    I would put the table in question on its own filgroup.

    The disadvantages for storing only the link to the document in the filesystem:

  • RE: Generic tables / Aspects

    I would scrap the generic table altogether.

    Given a table called ShowReviews there would be a table called Shows.

    In the table Shows I would have a column like ShowReviewId.

    Which would be...

  • RE: Generic tables / Aspects

    I think every table should contain facts from the reality that we keep data abot.

    Review is not exact since it can be a Review of anything, a play, a car,...

  • RE: Julian dates

    Many thanks, now I "see the light".

    /m

  • RE: Data and database security when outsourcing

    We have only outsorced the running of the servers including backups etc.

    The productionDBA jobs, tuning etc, are still done by us.

    So what do do besides "add logins to the sysadmin...

  • RE: Linked server SQL2005 --> SQL2000

    This works:

    1. sql2005server  ---> sql2005server (windows domain account)

    2. sql2005server ---> sql2000server on local machine  (windows domain account)

    3. sql2005server  ---> sql2000server (local sql account on 2000server)

     

    This doesnt work:

    4. sql2005server  ---> sql2000server...

Viewing 15 posts - 1 through 15 (of 45 total)