English 中文(简体)
Crystal Reports with SQL Server 2005: Setting Transaction Isolation Level
原标题:

Is there a way to specify the transaction isolation level when Crystal Reports queries a SQL Server 2005 database without resorting to any of the following:

  • Encapsulating the report s query in a stored procedure that executes SET TRANSACTION ISOLATION LEVEL... before the query itself
  • Hand-writing the SQL query in Crystal Reports to execute SET TRANSACTION ISOLATION LEVEL...
最佳回答

I was able to embed this in a Command object:

SET TRANSACTION ISOLATION LEVEL REPEATABLE READ

--Command objects need to return a value
SELECT GetDate()

This Command object was in addition to the query that I wrote in the Database Expert.

Will you elaborate on the necessity of setting the ISOLATION LEVEL?

问题回答

暂无回答




相关问题
Export tables from SQL Server to be imported to Oracle 10g

I m trying to export some tables from SQL Server 2005 and then create those tables and populate them in Oracle. I have about 10 tables, varying from 4 columns up to 25. I m not using any constraints/...

SQL server: Can NT accounts be mapped to SQL server accounts

In our database we have an SQL server account that has the correct roles to access some of the databases. We are now switching to windows authentication and I was wondering if we can create a NT user ...

SQL Server 2000, ADO 2.8, VB6

How to determine if a Transaction is active i.e. before issuing Begin Transaction I want to ensure that no previous transaction are open.. the platform is VB6, MS-SQL Server 2000 and ADO 2.8

热门标签