Viewing 15 posts - 11,446 through 11,460 (of 18,923 total)
IF EXISTS (Select * from dbo.SysObjects where name = 'Numbers' and XType = 'U' and user_name(uid) = 'dbo')
DROP TABLE Numbers
GO
CREATE TABLE dbo.Numbers (PkNumber int identity(1,1) primary key clustered, dude bit...
October 26, 2006 at 6:28 am
dbcc inputbuffer (@@spid)
But I think it must be executed by another process... because the last line executed will then become "dbcc inputbuffer (@@spid)"
What bug are you trying to track?
October 25, 2006 at 3:02 pm
Don't use on production server :
DBCC FREEPROCCACHE
DBCC DROPCLEANBUFFERS
October 25, 2006 at 12:37 pm
You really don't need to do this in sql server (unless dealing with millions of rows and multiple tables). You can use a derived table to get the results in...
October 25, 2006 at 11:16 am
You do something like this. The total is kept in the wage table (assuming you are using a "standard" table design). The total is counted from the TimeSheets table and kept in...
October 25, 2006 at 9:02 am
Can you try to explain what you need in more details... I have no idea where you are having difficulties.
October 25, 2006 at 8:58 am
Depends on what you do with the data. Normally you simply calculate that information and display it to the user. However if you have for exemple a Wage table, then...
October 25, 2006 at 8:51 am
Can't help much... don't have 2005 installed here.
![]()
October 25, 2006 at 8:16 am
Much simpler than what you think.
Store a start date and end date in sql server.
Then the calculation becomes this :
Select datediff(N, StartDate, EndDate) / 60.0 AS Hours
October 25, 2006 at 7:38 am
Ya that's why I wsa excited about the solution, it was exactly what you needed. But I was reffering to a more global solution where you could need to 95th...
October 25, 2006 at 6:41 am
Can you then explain me why I am getting a null with this query??
SELECT PARSENAME(REPLACE('1,2,3,4,5,6,7,8,9,10',',','.'),5)
October 25, 2006 at 6:25 am
IF EXISTS (SELECT * FROM dbo.SysObjects WHERE Name = 'Events' AND XType = 'U' AND USER_NAME (uid) = 'dbo') DROP TABLE dbo.Events GO CREATE TABLE dbo.Events ( EventID INT
October 25, 2006 at 6:22 am
Lol, that's what I get for talking without testing
.
October 24, 2006 at 6:49 pm
Viewing 15 posts - 11,446 through 11,460 (of 18,923 total)