Viewing 15 posts - 1,936 through 1,950 (of 3,543 total)
I am surprised that you get any result since there is an error in your query
COMPUTE clause #1, aggregate expression #3 is not in the select list
caused by avg(cast(((cast(sum(actkeystrokes)...
April 3, 2006 at 6:44 am
I get an error with the quotes around the \
other than that it works OK for me
try changing to this
dbo.udf_GetFileSize([CacheServers].[CachePath] + LEFT([DOCUMENT].[PHYSICAL_DOC_GUID],6) + '\' + [DOCUMENT].[PHYSICAL_DOC_GUID] + [DOCUMENT].[FileType])
p.s.
dbo.udf_GetFileSize is a...
March 31, 2006 at 7:56 am
CREATE FUNCTION udf_GetFileSize (@filename varchar(255))
RETURNS int
AS
BEGIN
DECLARE @fso int
DECLARE @res int
DECLARE @file int
DECLARE @size int
EXECUTE @res = sp_OACreate 'Scripting.FileSystemObject', @fso OUT
IF @res...
March 31, 2006 at 7:17 am
![]() | I'm not Vladen and not always |
My humble apologies Gila
![]() | Otherwise the insert could fail, the delete succeed and the transaction be committed. |
True Gila, however if the...
March 31, 2006 at 5:59 am
I'm with Vladan on this one
But if you really must do this
put query in a...
March 31, 2006 at 5:40 am
Yes and needs to contain sufficient numbers for the range required
e.g. 0 to 30 for max days on 1 month
or 0 to 44639 for max minutes in a month
etc.
March 27, 2006 at 6:49 am
or
DECLARE @start datetime, @end datetime, @minutes int
SET @start = '20060301'
SET @end = '20060331'
SET @minutes = select DATEDIFF(minute,@start,@end+1)
SELECT [ProblemType], COUNT(*)
FROM (SELECT DISTINCT COALESCE(t.[ProblemType],'No Problem') AS [ProblemType], D.[Date]...
March 27, 2006 at 6:31 am
![]() | So, how can I list ALL dates within a month... |
DECLARE @start datetime, @end datetime, @days int
SET...
March 27, 2006 at 6:26 am
Am I missing something obvious here
SELECT source, cnt
FROM @table
GROUP BY source, cnt
ORDER BY SUBSTRING(source,8,1) ,source, cnt
March 24, 2006 at 7:15 am
If not then
SUBSTRING([ReportPath],CHARINDEX('/',[ReportPath])+1,CHARINDEX('/',[ReportPath],CHARINDEX('/',[ReportPath])+1)-CHARINDEX('/',[ReportPath])-1)
March 23, 2006 at 8:00 am
SUBSTRING([ReportPath],2,CHARINDEX('/',[ReportPath],2)-2)
Is the first '/' always in column 1 ?
March 23, 2006 at 7:59 am
Just as an exercise thought I'd try this as an exercise
CREATE FUNCTION dbo.udf_Test (@value varchar(100))
RETURNS varchar(100)
AS
BEGIN
DECLARE @result varchar(100)
SET @result = ''
SELECT...
March 23, 2006 at 7:32 am
Viewing 15 posts - 1,936 through 1,950 (of 3,543 total)