Viewing 15 posts - 4,696 through 4,710 (of 5,103 total)
If you cast directly to int depending on the time portion of the datetime value you may get different DATES but ,...
February 25, 2004 at 1:03 pm
the workstation used for keith does not belong to the DOMAIN where SS is!
-- join to the domain and you should be happy
HTH
February 25, 2004 at 12:41 pm
On QA run
EXEC sp_updatestats
Take a look at BOL "statistical information, updating"
February 25, 2004 at 12:38 pm
Client Network Utility is to be used well ... ON THE CLIENTS !!
No need for server to be there
February 25, 2004 at 12:33 pm
You may have to give a little more detail but
assuming the value on the right is "the True" you can ponderate by position of the '1' and in that...
February 25, 2004 at 12:01 pm
CREATE PROCEDURE [dbo].[prc001GetTipOfTheDay]
(@intStaffID int)
AS
Select Top 1 intTipID,strTipDesc
From tblTips
Where intTipID > isnull((Select IsNull(intLastTipID, 0) % (Select Max(intTip) from tblTips) from tblStaff Where intStaffID = @intStaffID),0)
Order by intTipID
February 25, 2004 at 11:25 am
The Machine name can be ALIASED with the Network Client Utility!!
February 25, 2004 at 11:06 am
Because the column does exists SS is trying to find out what is the purpose of the query an generated a plan!
IN SS 2000 (FROM BOL)
SQL Server allows the...
February 25, 2004 at 9:27 am
OR
if you need one Free: get This one
February 25, 2004 at 9:00 am
Yep becareful if you are doing this on a heavy used table it may get really bad. Try to use a separed table where you from the trigger store the...
February 25, 2004 at 8:49 am
I never meant that with more arithmetic could be done I just meant straight to int .That is why is a good thing to know about the actual storage format that is...
February 25, 2004 at 8:46 am
I got this right because I noticed EM was hidden in the question
But the anwer was not very clear and I had to Assume...
February 25, 2004 at 8:36 am
I have seen that before and YES you are correct is using the filed name of the wrong table:
One of the Best practices that MS is distributing with the SQL Server...
February 25, 2004 at 8:27 am
DO NOT Cast datetime to any type of int !!!
Better
Left(<datetime>,11)
or
SUBSTRING(CAST(<datetime> AS binary(8)),1,4)
or
.... Like above
February 25, 2004 at 8:18 am
SELECT *
FROM Events E
JOIN
(
SELECT personID, MIN(eventTime)
FROM Events
GROUP BY personID, CONVERT(char(10), eventTime, 101)
) EMin On E.PersonID = Emin.PersonID and E.EventTime = EM.EventTime
ORDER BY personID
February 25, 2004 at 8:06 am
Viewing 15 posts - 4,696 through 4,710 (of 5,103 total)