Skip to Content
author's profile photo Former Member
Former Member

Problems using RecordSet Object in SBO 2004

Hi,

When of one of our testers runs any code that uses the RecordSet object, they always get a null object when reading the record results. The code is:

string Query = string.Format("SELECT COUNT(TABLE_NAME) TOTAL FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' " +

"AND TABLE_NAME = ''", TableName);

int result = 0;

IRecordset RS = (IRecordset)BaseUI.oCompany.GetBusinessObject(BoObjectTypes.BoRecordset);

RS.DoQuery(Query);

if (RS.RecordCount > 0)

{

RS.MoveFirst();

result = (int)RS.Fields.Item("TOTAL").Value; //problem is here, it is always null for our tester

}

The returned results in the RS object are always null.

However I can run the code on my computer without any problems. We are not running the add-on as a registerd add-on as we are still in the midst of testing.

Has anyone else experienced similar problems or know of the cause or a solution?

Lita

Message was edited by: Lita Teng

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 25, 2005 at 10:17 AM

    Hi,

    Are you using the same user? The access mode, in sqlserver, is the same as your machine?

    Ribeiro Santos

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.