Am trying to get my head around stored procedures in SQL Server today. This place is generally an Ingres platform, where we use dbprocs. Of course, the syntax for SQL Server is different, and it's a case of trying to translate from one slightly hamstrung language to another.