paulkeys
Programmer
- Sep 21, 2006
- 80
Hi all,
I'm using SQL Server 2005 and am currently experiencing an intermittent problem when trying to run a udf.
The udf accepts 2 dates as parameters, and calculates the work time between based on working days, bank holidays etc.
The problem i have is that sometimes calling the function will fail with 'incorrect syntax near m' error - although there is no table name or alias m in the function or database.
Restarting the SQL Server service will solve the issue, but unfortunately that's not really a good enough solution, as this function is also used within a several SSIS packages that run frequently during the day.
Has anyone ever experienced this problem? Any help would be most appreciated.
I'm using SQL Server 2005 and am currently experiencing an intermittent problem when trying to run a udf.
The udf accepts 2 dates as parameters, and calculates the work time between based on working days, bank holidays etc.
The problem i have is that sometimes calling the function will fail with 'incorrect syntax near m' error - although there is no table name or alias m in the function or database.
Restarting the SQL Server service will solve the issue, but unfortunately that's not really a good enough solution, as this function is also used within a several SSIS packages that run frequently during the day.
Has anyone ever experienced this problem? Any help would be most appreciated.