MySQL Concat with dataset

M

^MisterJingo^

Hi all,

Usually when pulling a dataset from a DB I get the headers too, so i
can databind DataValueField and DataTextField etc. But I am trying the
below query:

SELECT CONCAT(firstname,' ',lastname) as name FROM authentication.users
WHERE users.idusers IN (SELECT idcollaborator FROM
cpd.coursecollaborators where idcourse=64 and collabtype='Other
Individuals')

This should return a header as 'name', and so i should be able to bind
with this value. But it seems ASP.Net cannot find the header when i try
this.

Any ideas?
 
C

chris.withers

^MisterJingo^ said:
Hi all,

Usually when pulling a dataset from a DB I get the headers too, so i
can databind DataValueField and DataTextField etc. But I am trying the
below query:

SELECT CONCAT(firstname,' ',lastname) as name FROM authentication.users
WHERE users.idusers IN (SELECT idcollaborator FROM
cpd.coursecollaborators where idcourse=64 and collabtype='Other
Individuals')

This should return a header as 'name', and so i should be able to bind
with this value. But it seems ASP.Net cannot find the header when i try
this.

Any ideas?

Argh, this actually works. It was my own stupidity which caused the
problem.
 

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

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top