Viewing 15 posts - 166 through 180 (of 395 total)
then it seems like this should work:
SELECT * FROM (
SELECT agent, dbo.fnGetSeconds(CALL_TIME)
FROM
[a2wh].[dbo].[CallLogCommon]
) t
pivot (
SUM(dbo.fnGetSeconds(CALL_TIME))
...
December 14, 2020 at 6:40 pm
Solved... there were no NULLS but one value was ''
December 4, 2020 at 4:46 pm
I changed the function to have a length of 10 rather than MAX but the error persists:
CREATE FUNCTION [dbo].[fnGetSeconds]
(
@TimeFormatted varchar(10)
)
RETURNS decimal(10, 2)
AS
BEGIN
RETURN
(SELECT (LEFT(@TimeFormatted,2)*3600)...
December 4, 2020 at 3:40 pm
No nulls in the data but there are some that are 00:00:00
December 4, 2020 at 3:34 pm
I can figure out where/how to use it but I'm getting an error:
dbo.fnGetSeconds(CALL_TIME)
--Invalid length parameter passed to the RIGHT function.
December 4, 2020 at 2:59 pm
I download the installer from which I can choose SSRS and SSIS but when I try to launch the installer I consistently get the following error: Please close the following:...
December 3, 2020 at 3:26 pm
This sql works about this way:
DECLARE @Seconds INT;
SELECT @Seconds = 43052;
SELECT CAST(@Seconds/3600 AS VARCHAR(10))
+ RIGHT(CONVERT(CHAR(8),DATEADD(ss,@Seconds,0),108),6);
I tested it
December 2, 2020 at 6:14 pm
Fortunately for this application I don't need to convert any to days as none will exceed about 20 hrs.
December 2, 2020 at 3:32 pm
On the D: drive there is 239GB available out of 839GB. And the data and logs are on the same drive
April 1, 2020 at 7:55 pm
So the file size of my log file being 253GB is nothing to worry about (?). The total size of the drive is 1 terabyte. The file ID 2 is...
April 1, 2020 at 7:36 pm
It says the file is in use. The backup is on the same server as the SQL database unfortunately. There seems to be some inconsistency of naming too (?)
file_id ...
April 1, 2020 at 7:03 pm
Quite honestly no one including myself has any idea how this file grew so large or what to do about it while our space is quickly running out. I don't...
April 1, 2020 at 6:42 pm
Would the truncate only option be necessary since this database will have activity going on while I'm reducing this file size? I have no room on my server to back...
April 1, 2020 at 5:58 pm
I'm trying to sum the payments for each person and I also wonder if I can take it further joining other tables like location, etc. and using SUM, ROW NUMBER...
January 2, 2020 at 6:36 pm
Viewing 15 posts - 166 through 180 (of 395 total)