EDAMS Common Support
Frequently Asked Questions
July 2010

You trying to restore a backup of a ms sql2005 server database to previous version of ms sql server
Back to Top
1.
select * from PROCESS_PROGRESS
Find a record that has PROCESS_NAME = null
2.
Get the cycle_id
select CYCLE_ID , * from SUM_BCYC where BILLGROUP = '10' and CYCLE_CLSD = 0
4.
Reverse step 3
5.
Run manually to see full error.
EXECUTE [SILU_Edams]..[Billing_Steps.InvoicesForConsumption] [cycle_id], [process_id],'HCS'
Back to Top
How do I connect to my personal sql2005 instance from another PC?
If you have an instance of MS SQL 2005 running on your personnel PC and require other users to access it remotely, you need to enable the following.
1. Start Menu\Programs\Microsoft SQL Server 2005\Configuration Tools\SQL Server Surface Area Configuration\
Select configuration for connections and enable Local and remote connections.
2. If your firewall is enabled you need to also open the following ports.
Run the following commands at the Command Prompt:
Netsh firewall set portopening tcp 445 SQLNP ENABLE ALL
Netsh firewall set portopening tcp 1433 SQL_PORT_1433 ENABLE ALL
Netsh firewall set portopening udp 1434 SQLBrowser enable ALL
Back to Top
--- Query to list receipts sessions posted for a
--- specific period, and receipt recorded to customer transactions
select SESSION_NO,SESS_CHSR, SESS_DATE, FROM_RCPT, TO_RCPT,
sum(mr.AMOUNT) as RECEIPTS_RECORDED, sum((ft.AMOUNT *-1)) as TRANSACTIONS_RECORDED
from mreceipt mr , f_trans ft, RECEIPTING_SESSIONS rs
where mr.custkey = ft.custkey
and mr.stamp_date = ft.effect_dte
and mr.trns_type = ft.trns_type
and mr.trns_stype = ft.trns_stype
and mr.receipt_no = ft.documnt_no
and mr.custkey = ft.custkey
and mr.rcpt_cnsld <> 1
and mr.SESSION_NO = rs.SESS_ID
and rs.SESS_DATE between '2008-09-01' and '2008-09-30' /* Enter period here for which you want the summary */ group by SESSION_NO,SESS_CHSR, SESS_DATE, FROM_RCPT, TO_RCP
Back to Top
select a.CUSTKEY, a.CL_BLNCE - isnull(b.AMOUNT,0) as BALANCE_BEFORE_INTEREST,
isnull(b.AMOUNT,0) as INTEREST_CHARGED, a.CL_BLNCE
from F_STATM a left outer join F_TRANS b
on a.CUSTKEY = b.CUSTKEY
and a.STATM_NO = b.STATM_NO
and b.TRNS_TYPE = 50
and b.TRNS_STYPE = 12
where a.BILNG_DATE = '2008-07-09'
and a.SUBSTM_NO = 1
Back to Top
See attached document: Put_underscores_infront_of_wrongly_formated_prop_refs.sql
Back to Top
1) Oracle10g With at least Patch10.2.0.3 must be installed.
2) Backup Oracle 9i using 9i exp.exe utility from DB Manager.
3) Import to 10g using 10g imp.exe utility from DB Manager
Back to Top
select * from vwF_STATM a
where BILNG_DATE = '2008-07-09'
and SUBSTM_NO = 1
and (AGE_180 <> 0 or AGE_1YR <> 0 or AGE_2YR <> 0 or
AGE_3YR <> 0 or AGE_4YR <> 0 or AGE_5YR <> 0)
Back to Top
See attached document: Add_Sequence_Ranges_for_stations.sql
Back to Top
This is how it works:
Water Connections
1. For Water Connections we use no. of flats from Connection Details (Conn_Dtl)
2. If No.of flats is Zero in connections details we inherit the no. of flats from Property (Prop_dtl).
I.e if No of flats in conn_dtl = 0 then use No of flats from Prop_dtl....
Sewer Connections
1.Sum of No of flats for all connections of property is linked to first sewer connection only from SCONN_DTL
2. If No. Of flats in PROP_DTL greater than Sum of No of flats (1 above). Then inherit no_of flats from PROP_DTL and not use SCONN_DTL sum.
i.e if Sum of flats at sewer connection level less than no of flats at Property level then use No of flats from Prop_dtl.
Consumption Charges: No of flats is used to apportion consumption to the no of flats on the connection/property
Regular Charges: No of flats is used to charge the min charge to each flat.
Back to Top
This function exists in SA -- System Parameters --> Allow Application Duration editing
Back to Top
Instructions to extract .c2v file:
1. Plug-in your dongle.
2. Extract attached hasprus.exe executable and run.
3. Select Collect information.

4. Save .c2v file by naming it to be your name .c2v e.g. john_markides.c2v.

Back to Top
See Attached document: Transferring NAM data using the Merge Utility.doc
Back to Top
See Attached document: To Create Security Groups and Profiles v2.doc
Back to Top
See Attached document: Scheduled_Edams_Backup.rar
Back to Top
See Attached document: Setup_of_HHU_For_Billing.doc
Back to Top
Your oracle instance's character set configuration is incorrect. Is should be UTF8
Log file shows.
import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
import server uses AL32UTF8 character set (possible charset conversion)
export server uses UTF8 NCHAR character set (possible ncharset conversion)
1)
First drop all edams objects.
2)
login as sys/manager as sysdba and run the following commands.
SHUTDOWN IMMEDIATE; --- or NORMAL
STARTUP MOUNT;
ALTER SYSTEM ENABLE RESTRICTED SESSION;
ALTER SYSTEM SET JOB_QUEUE_PROCESSES=0;
ALTER SYSTEM SET AQ_TM_PROCESSES=0;
ALTER DATABASE OPEN;
ALTER DATABASE NATIONAL CHARACTER SET UTF8;
SHUTDOWN IMMEDIATE; --- OR NORMAL
STARTUP RESTRICT all;
SHUTDOWN IMMEDIATE; --- OR NORMAL
STARTUP;
Back to Top
select a.TABLE_NAME,COLUMN_NAME, ORDINAL_POSITION
from INFORMATION_SCHEMA.TABLE_CONSTRAINTS a, INFORMATION_SCHEMA.KEY_COLUMN_USAGE b
where a.CONSTRAINT_NAME = b.CONSTRAINT_NAME
and a.CONSTRAINT_TYPE = 'PRIMARY KEY'
order by a.TABLE_NAME, ORDINAL_POSITION
Back to Top
select d.ORGPOST_NO, d.DESCRIPTION, a.PROF_SID, a.PROF_NAME, b.GRP_SID,
b.GRP_NAME, [User_Name], Initial, surname,
f.*
from SEC_PROFILES a, SEC_GROUPS b, SEC_GROUPS_PROFILE c, ORGPOSTS d, EMPLOYEES e,
SEC_ACES_SID f
where a.PROF_SID = c.PROF_SID
and b.GRP_SID = c.GRP_SID
and d.PROF_SID = a.PROF_SID
and e.ORGPOST_NO = d.ORGPOST_NO
and c.GRP_SID = f.[SID]
order by b.GRP_SID
Back to Top
See attached document: Scheduled Exporting Of Station Receipts V2.rar
Back to Top
select BILLGROUP, CUSTKEY,
PROP_REF + '/' + cast(CONN_NO as nvarchar) as CONNECTION_REF, METER_REF,
case when CON_STATUS = 1 then 'Connected Meter Installed'
when CON_STATUS = 2 then 'Disconnected Meter Installed'
end as STATUS
from PROP_DTL pd, CONN_DTL cd, METR_DTL md, CUST_DTL cu
where pd.PROPERTY_ID = cd.PROPERTY_ID
and md.METER_ID = cd.METER_ID
and pd.BILL_CUSTKEY = cu.CUSTKEY
and pd.SRV1_ALCTO <> -1
and cd.CON_STATUS in (1,2)
order by BILLGROUP, CUSTKEY, PROP_REF
Back to Top
Identify a good database that has all sequences and run the following query
select 'exec [EDAMS.ADDSEQUENCE] '
+ cast(EDAMS_SEQ_ID as nvarchar)
+ ',''KITWE_EDAMS'',''' + TABLE_NAME + ''',''' + KEY_COL_NAME + ''''
from SILU_EDAMS..EDAMS_SEQ_TABLE a --- Good table..
where not exists (select 1 from EDAMS_SEQ_TABLE b
where a.TABLE_NAME = b.TABLE_NAME
and a.KEY_COL_NAME = b.KEY_COL_NAME )
and exists (select 1 from INFORMATION_SCHEMA.COLUMNS c
where a.TABLE_NAME = c.TABLE_NAME
and c.COLUMN_NAME = a.KEY_COL_NAME)
Back to Top
See attached document: EDAMS - Windows Authentication.doc
Back to Top