Forum Replies Created

Viewing 15 posts - 2,311 through 2,325 (of 3,616 total)

  • RE: SQL to return selected rows

    SELECT C1,C2
    
    FROM dbo.YourTable AS YT
    
    WHERE C1 IN (
        SELECT C1 
        FROM dbo.YourTable 
        GROUP BY C1 
       ...
  • RE: Help with Strategy -Database access/ Performance in Webbased Applications

    Try the new SQL2005 table partitioning as a starting point but read up on backing up of the database first.

    If your system is web based and .NET based then you...

  • RE: Production Server Hardware VS Staging/Testing Server Hardware

    At one place I worked the difference between the testing and production hardware was that the testing hardware was slightly more beefy than the production environment. The idea was...

  • RE: Indexing a View

    You can only use INNER JOIN for an indexed view.

    I take it that a MedicRecs record might not have a record in

    • Rating?
    • Providers?
    • Locale?
    • MedicProviders?

    Where possible I design my databases so that LEFT/RIGHT...

  • RE: Dates

    SELECT CONVERT(SMALLDATETIME,(CAST YourBIGINTColumn AS CHAR(8)),112)

    FROM dbo.YourTable

    This assumes that your BIGINT is always in full YYYYMMDD format that is February 9th this year was 20060209

  • RE: @Local_Variable 8k Limit

    If you don't need double-byte characters (in SQL2000) use TEXT rather than NTEXT.

    Phil, have you tried sp_executeSQL as a possible alternative to EXEC, it might give you a bit more...

  • RE: Management Studio with SQL Server 2000

    CTRL R toggels the results pane off and on just like in QA.

    By the way performance is almost acceptable if you stick 2Gb in your development machine.

    My dev machine is...

  • RE: SQL Sudoko

    No problems Daryl, there is actually a typo in your data because it has

    2,1,8 AND 3,2,8 which is against the rules as 8 would be in the same 1st...

  • RE: SQL Sudoko

    Daryl, as posted earlier there are Sudoko puzzles where there is no automated solution and you have to make a choice at some point. You can make the wrong...

  • RE: SQL Sudoko

    Assuming you don't have SQL2005 and therefore the PIVOT function you could always resort to

    
    DECLARE @display TABLE(ID INT IDENTITY(1,1),Display VARCHAR(50))
    DECLARE @lRow TINYINT
    SET @lRow = 0
    
    DECLARE @NewRow VARCHAR(50)
    
    INSERT INTO @display (Display)...
  • RE: SQL Sudoko

    My apologies for the missing stored procedure.

    When I started building my solution I prototyped it by bouncing values through tables and the procedure was used to remove solved cells from...

  • RE: Technology for Fun

    Tad William's Otherland series.

    Arthur C Clarke was pretty good.

    Jules Verne was probably the most prophetic.

  • RE: Solid

    SQL2005 is noticeably faster.

    SQL Management Studio is a dog.

    Security is a whole new ball game.

    I suspect a lot of features will only reveal their value as and when people really...

  • RE: Database Commenting Guideline

    If you want to be shackled to your old achievements then don't bother commenting your code.

    As long as you work for the organisation it will always be quicker/cheaper to ask...

  • RE: Green Machines

    Diesel in the UK is around 95p per litre and petrol is around 92p.

    I've just filled a 50 litre tank of diesel and expect to do around 600 miles on...

Viewing 15 posts - 2,311 through 2,325 (of 3,616 total)