Viewing 15 posts - 751 through 765 (of 1,124 total)
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...
December 9, 2007 at 11:51 pm
Christian Buettner (12/7/2007)
Hi Ramesh,what makes you sure that the order of the rows is guaranteed in your example?
Index
December 7, 2007 at 7:30 am
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(...
December 7, 2007 at 7:28 am
It does at every workstation in my office!!!! I have to manually de-select the option.:D
December 7, 2007 at 7:21 am
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...
December 7, 2007 at 7:18 am
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...
December 7, 2007 at 7:02 am
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....
December 7, 2007 at 6:56 am
megha.chauhan (12/7/2007)
CREATE DATABASE nwdata (FILENAME = 'C:\Program Files\Microsoft SQL Server\MSSQL\Dataewldf.mdf')FOR ATTACHthis is the query bt its not executing. can u trace out why?
thank you
You missed the ON clause....
CREATE DATABASE nwdata...
December 7, 2007 at 6:31 am
Ooops, an additional quote!!!!
Edited my previous post:
December 7, 2007 at 6:03 am
You could also do a TRUNCATE if possible.
December 7, 2007 at 5:43 am
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...
December 7, 2007 at 5:41 am
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
December 7, 2007 at 5:26 am
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...
December 7, 2007 at 4:57 am
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. ...
December 7, 2007 at 4:35 am
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...
December 7, 2007 at 4:28 am
Viewing 15 posts - 751 through 765 (of 1,124 total)