all groups > sql server reporting services > november 2005 >
You're in the

sql server reporting services

group:

Data Processing Extension and query designer


Data Processing Extension and query designer yinjennytam NO[at]SPAM newsgroup.nospam
11/17/2005 4:50:10 PM
sql server reporting services:
hi, I have successfully implemented my custom data processing extension for
Reporting Services (SQL Server 2005) and now I want to explore how to
implement my own query designer as well.

I did get a sample of how to do that, but the sample is targeted for
Reporting Services 2000. I could somehow modify it to suit my needs, but I
have a simple question. The sample I got shows how to execute the query to
get the IDataReader object and fill up the DataGrid. Now I want to try the
new DataGridView control instead, but is there a better way than the
following.

The major reason why I ask is that I find the data shown in the grid is one
row at a time (i.e. very SLOW).

IDataReader reader = null;
try
{
reader = command.ExecuteReader(CommandBehavior.SingleResult);
System.Data.DataTable dataTable = new System.Data.DataTable();
for (int i = 0; i < reader.FieldCount; i++)
{
string fieldName = reader.GetName(i);
dataTable.Columns.Add(fieldName);
}
while (reader.Read())
{
System.Data.DataRow dataRow = dataTable.NewRow();
for (int i = 0; i < reader.FieldCount; i++)
{
dataRow[i] = reader.GetValue(i);
}
dataTable.Rows.Add(dataRow);
}
dataGridView.DataSource = dataTable;
}
finally
{
if (reader != null)
{
reader.Dispose();
}
}

Any help is appreciated!!
RE: Data Processing Extension and query designer v-mingqc NO[at]SPAM online.microsoft.com
11/18/2005 8:45:43 AM
Hi,

Welcome to use MSDN Managed Newsgroup!

From your descriptions, I understood your main concern is the performance
for executing the query to
get the IDataReader object and fill up the DataGrid is very slow. If I have
misunderstood your concern, please feel free to point it out.

I have reviewed the your codes and it is OK. Maybe you should consider use
a stored procedure with SELECT * statement to get the result from resultset
at once instead of getting the data row one by one.



Sincerely yours,

Michael Cheng
Microsoft Online Partner Support

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
Business-Critical Phone Support (BCPS) provides you with technical phone
support at no charge during critical LAN outages or "business down"
situations. This benefit is available 24 hours a day, 7 days a week to all
Microsoft technology partners in the United States and Canada.

This and other support options are available here:
BCPS:
https://partner.microsoft.com/US/technicalsupport/supportoverview/40010469
Others: https://partner.microsoft.com/US/technicalsupport/supportoverview/

If you are outside the United States, please visit our International
Support page: http://support.microsoft.com/common/international.aspx
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
RE: Data Processing Extension and query designer yinjennytam NO[at]SPAM newsgroup.nospam
11/18/2005 9:05:05 AM
Thanks for your prompt reply. However, I don't think getting results back
from my data extension is slow ... when I switched back to the generic query
designer in Report Designer, the time taken to fill up the data grid is
instantaneous! But as soon as I use my custom query designer, I could see
how each data row is filled, one at a time (i.e. very slow).

Do you have any other suggestions?

Thank you for your help
Jenny


[quoted text, click to view]
RE: Data Processing Extension and query designer v-mingqc NO[at]SPAM online.microsoft.com
11/21/2005 10:20:02 AM
Hi Jenny,

Is it possible for you to generate a small sample of your custom Query
Designer for us to reproduce it on my side?

You may attach the zipped file here or send it to me directly. I understand
the information may be sensitive to you, my direct email address is
v-mingqc@microsoft.com, you may send the file to me directly and I will
keep secure.

If you have any questions or concerns, don't hesitate to let me know. We
are always here to be of assistance!


Sincerely yours,

Michael Cheng
Microsoft Online Partner Support

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
RE: Data Processing Extension and query designer yinjennytam NO[at]SPAM newsgroup.nospam
11/21/2005 10:33:08 AM
Thank you for your offer. I have sent you a sample already.

Just to make sure we are on the same page, I'm using VS .NET 2005 and SQL
Server 2005.

Thank you very much
Jenny


[quoted text, click to view]
RE: Data Processing Extension and query designer v-mingqc NO[at]SPAM online.microsoft.com
11/22/2005 9:56:47 AM
Hi Jenny,

Thanks for your email.

I am looking into this issue with the help of .Net Expert. I will keep you
updated as soon as I find anything valueable.

Thank you for your patience and cooperation.


Sincerely yours,

Michael Cheng
Microsoft Online Partner Support

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
RE: Data Processing Extension and query designer v-mingqc NO[at]SPAM online.microsoft.com
11/23/2005 12:00:00 AM
Hi Jenny

I have received your sample project, and build it without any error.
However, I am not sure how to use it to reproduce out your issues. It seems
that the project run type is "Class Library", Can you show me how to use
this class library? I see the entry point should be in CsvDesigner class,
however, it seems that you missed the code to bootstrap this class.


Sincerely yours,

Michael Cheng
Microsoft Online Partner Support

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
RE: Data Processing Extension and query designer yinjennytam NO[at]SPAM newsgroup.nospam
11/30/2005 12:41:08 PM
Don't worry, Michael. I have figured it out myself.

The trick is to use the splitter control and make sure the datagridview
control dock property is set to 'fill' underneath the splitter.

Now the datagridview control is filled up instantly.

Cheers
Jenny



[quoted text, click to view]
RE: Data Processing Extension and query designer v-mingqc NO[at]SPAM online.microsoft.com
12/1/2005 5:16:59 AM
Hi Jenny,

Thanks so much for the update and it's great to hear you have resolved it
:) I this information is very helpful for those who encounter the same
problem.


Sincerely yours,

Michael Cheng
Microsoft Online Partner Support

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


AddThis Social Bookmark Button