K
Kenneth Bohman
I often use ADO.NET and SP:s, but now I'm stuck after spending all yesterday
on two issues
1) ARITHABORT
A form calls SP to insert a record, but executing it only results in the
following message :"Insert failed becase the following SET options have
incorrect settings 'ARITHABORT'". I've checked the SQL Server documentation
and can't see how it at all applies in this case.
Tracing the command in SQL Profiler this is what it looks like
exec insertReportPeriodExchangeRates @FromCurrencyID = N'GBP', @ToCurrencyID
= N'USD', @ExchangeRate = 1.600000, @ReportPeriodID = N'2004Q3',
@ReportPeriodExchangeRateID = @P1 output, @TimeStamp = @P2 output
If I execute that command from SQL Analyzer it works just fine. No error
message
2) .SP does not execute at all
Another form calls a SP to delete a record, but the SP is never executed!
How is that possible?
Tracing the command in SQL Profiler this is what it looks like
exec deleteReportPeriods @Original_ReportPeriodID = N'2003Q5', @Timestamp =
0x00000000000083C1
If I execute that command from SQL Analyzer it works just fine.
All in all about 200 SP:s are called in the application, and these are the
only one that failing. Again, if I run them from SQL Analyzer they execute
correctly, so there is something odd happing in ADO:NET. All the commands
are executed from inherited forms. Any ideas where to look?
Kind regards,
Kenneth Bohman
on two issues
1) ARITHABORT
A form calls SP to insert a record, but executing it only results in the
following message :"Insert failed becase the following SET options have
incorrect settings 'ARITHABORT'". I've checked the SQL Server documentation
and can't see how it at all applies in this case.
Tracing the command in SQL Profiler this is what it looks like
exec insertReportPeriodExchangeRates @FromCurrencyID = N'GBP', @ToCurrencyID
= N'USD', @ExchangeRate = 1.600000, @ReportPeriodID = N'2004Q3',
@ReportPeriodExchangeRateID = @P1 output, @TimeStamp = @P2 output
If I execute that command from SQL Analyzer it works just fine. No error
message
2) .SP does not execute at all
Another form calls a SP to delete a record, but the SP is never executed!
How is that possible?
Tracing the command in SQL Profiler this is what it looks like
exec deleteReportPeriods @Original_ReportPeriodID = N'2003Q5', @Timestamp =
0x00000000000083C1
If I execute that command from SQL Analyzer it works just fine.
All in all about 200 SP:s are called in the application, and these are the
only one that failing. Again, if I run them from SQL Analyzer they execute
correctly, so there is something odd happing in ADO:NET. All the commands
are executed from inherited forms. Any ideas where to look?
Kind regards,
Kenneth Bohman