Forum Replies Created

Viewing 15 posts - 751 through 765 (of 1,124 total)

  • RE: Hidden RBAR: Triangular Joins

    Matt Miller (12/8/2007)


    GilaMonster (12/8/2007)


    An index on a column does not guarantee that data will be returned in that order. Unless an order by is specified, you cannot be sure that...

  • RE: Hidden RBAR: Triangular Joins

    Christian Buettner (12/7/2007)


    Hi Ramesh,

    what makes you sure that the order of the rows is guaranteed in your example?

    Index

  • RE: SQL Select Statement

    You need to aggreage the hours for each game,

    SELECTCOALESCE( a.date, b.date ) AS Date,

    COALESCE( a.game_id, b.game_id ) AS GameID,

    COALESCE( a.level_id, b.level_id ) AS LevelID,

    COALESCE( a.location_id, b.location_id ) AS LocationID,

    SUM( COALESCE(...

  • RE: SQL Server Management Studio not installed

    It does at every workstation in my office!!!! I have to manually de-select the option.:D

  • RE: Hidden RBAR: Triangular Joins

    Obviously, the "special" UPDATE relies purely on the guaranteed ordering of the rows to work, which I should have been mentioned earlier.

    All of our applications, have a guaranteed...

  • RE: All I Want For Christmas Is ...

    Merry Christmas!!!!

    Likewise all others, I don't have anything to ask for except the fact that, please, please, someone could shift me to some other project than what I'm currently working...

  • RE: Hidden RBAR: Triangular Joins

    Nice Article Jeff!!!

    Looking forward to Part 2, 3 & 4....:D

    Before 2K5, many a times, we used the following methodology in our financial applications to get the running count for records....

  • RE: to create ldf file from an mdf file

    megha.chauhan (12/7/2007)


    CREATE DATABASE nwdata (FILENAME = 'C:\Program Files\Microsoft SQL Server\MSSQL\Dataewldf.mdf')FOR ATTACH

    this is the query bt its not executing. can u trace out why?

    thank you

    You missed the ON clause....

    CREATE DATABASE nwdata...

  • RE: to create ldf file from an mdf file

    Ooops, an additional quote!!!!

    Edited my previous post:

  • RE: ***When I try to delete all the records the database table an errorbox appers stating TIMEDOUT.***

    You could also do a TRUNCATE if possible.

  • RE: retrieving the greatest 10 negative numbers

    DECLARE @dtStartDate DATETIME,

    @dtEndDate DATETIME

    SET @dtStartDate = CONVERT( DATETIME, CONVERT( VARCHAR(10), GETDATE(), 112 ) )

    SET @dtEndDate = DATEADD( DAY, 1, @dtStartDate )

    SELECTTOP 10 ID

    FROMT1

    WHERE[Date] >= @dtStartDate AND [Date] < @dtEndDate

    AND [Gross...

  • RE: to create ldf file from an mdf file

    You could also use the newer version for attaching database (as sp_attach_single_file_db is deprecated in SQL Server 2005)

    CREATE DATABASE SomeDB

    ON (FILENAME = 'c:\data\SomeDB.mdf')

    FOR ATTACH

  • RE: Retrieving records

    I doubt, I could understand your query well enough to answer. It would be better if you can provide a sample script with table structures, sample data and the...

  • RE: Audit / inspection of an existing system

    You could find a lot of scripts here to get information about the server & database configurations. Just search for "Server Information" at the top-right of this page. ...

  • RE: How is the Query Designer toolbar enabled?

    Oops.., You are correct. I could have read your post correctly before replying. Any hows, I'll check for some other resources and will let you if I could...

Viewing 15 posts - 751 through 765 (of 1,124 total)