How to the get to number of retrieved columns?

R

Roman Klimkowicz

Hello everyone,

i just implement an own search site in MS CRM 1.2, which searches in a
MS-SQL database.

My question is, how to get the number of retrieved columns by a SQL-query??

Any suggestions for me?

Thx...


Greets,

Roman
 
S

Scott Mitchell [MVP]

Roman said:
i just implement an own search site in MS CRM 1.2, which searches in a
MS-SQL database.

My question is, how to get the number of retrieved columns by a SQL-query??

Any suggestions for me?

Roman, I am not familiar with MS CRM at all, so this is a shot in the
dark. There's basically two approaches you can use:

(1) Run a SQL query to determine the number of results, i.e.:

SELECT COUNT(*) FROM TableName WHERE ...


(2) Once you have the data back in a DataTable or DataSet, use the
apporpriate properties. For example, the DataTable's Rows collection
has a Count property that specifies how many rows are contained in the
DataTable. I'm not certain what ADO.NET object you are using to
retrieve the data for CRM, so I don't know if this second approach will
be helpful or not.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top