Click here to Skip to main content
15,887,927 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All,

I have an application in c# with postgree sql.

I can retrive data from all tables except one in a specific pc.

the underlying table has data.
in my pc and in other one pc it works fine.

but my client pc it does not return any datarows (count is zero) for just one table.
from other tables data is returned successfully. but not from that table.

tablename is : DownloadScheduleMap
query is : "select * from DownloadScheduleMap where dsm_IsDeleted=0 order by dsm_Des des".
what a strange problem it is!!!!
please give me solution. I need it asap.

Thank you all.
Posted
Updated 11-Nov-11 19:16pm
v2
Comments
Mehdi Gholam 12-Nov-11 0:29am    
Try removing the dsm_isdeleted filter.

1 solution

Quote:
where dsm_IsDeleted=0 order by des"


Your ORDER BY does not state the field which you want to use to order by. It should look something like this:-

SQL
SELECT * FROM DownloadScheduleMap WHERE dsm_IsDeleted = 0 ORDER BY yourOrderField DESC



Just replace yourOrderField above with the name of the field you would like to use to order by.

Hope this helps
 
Share this answer
 
Comments
mmdullah 12-Nov-11 1:18am    
I am sorry for not typing the orderField. Its actually there.
SELECT * FROM DownloadScheduleMap WHERE dsm_IsDeleted = 0 ORDER BY dsm_Des DESC
Yet the problem arises. It works on my pc-- but not on my client pc. Also it happens for this table only other tables are OK.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900