George,
I already have found the problem. It was the one you pointed out AND
'(cast(Sum(ff.length) as decimal)/1048576) as ''[Original File Size (MB)]''' +
see the alias ff in length?
Tammy
Hi Borislav!
Sorry I meant to say there are selects within selects and they do not seem to work.
This is the error message I get:
Server: Msg 156, Level 15, State 1, Line 1
Incorrect syntax near the keyword 'from'.
Server: Msg 156, Level 15, State 1, Line 1
Incorrect syntax near the keyword...
hi!
Im running the folowing code to loop through all the databases and
insert the results in a temp table.
In this case I need to run a join within a @sql string, but it does
not work.
Any ideas on how I can achieve this?
Here is my code:
if exists (select [id] from...
...datetime,@PreviousDateEnd datetime)
AS
--insert all the fields from Matters into a temp table to use the
title of the project
select * into #temp_matter from Matters
--
SELECT RTRIM(CONVERT(VARCHAR(255), SERVERPROPERTY('ServerName'))) +
'.' + DB_NAME(DB_ID()) AS...
I need to do a sumproduct in SQL Server
ALL_HOSPITALS table
days percentage days avoidable
1 0.244
2 0.127
30 0.890
The calculation would be
0.244*1+0.127*2+0.890*30
The total of the above has to be divided by the sum of days.
I am planning on having a temp table with the hosp name field and...
...percentage days avoidable
1 0.244
2 0.127
30 0.890
The calculation would be
0.244*1+0.127*2+0.890*30
The total of the above has to be divided by the sum of days.
I am planning on having a temp table with the hosp name field and...
Hi!
when I click on the application and then select which report I want to run. The report seems to open but then it shows a blank page and an error message saying ERROR 20997:????
In other machines the report works fine, in this particular machine it used to work fine but no it doesn't...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.