Welcome Guest Search | Active Topics | Sign In | Register

Grid - runningmode callback (server) problem Options
MKotaska
Posted: Wednesday, April 22, 2009 4:46:51 AM
Rank: Member
Groups: Member

Joined: 8/13/2007
Posts: 10
Hello,

I have a problem with Grid and its callback running mode.
I made a function LoadGridData, as you present in your sample, but SQL command doesn't work on MS SQL Server 2005.

The part of the code of SQL command constuction:

string sql1 = string.Format(
"SELECT TOP {0} * FROM KDO ORDER BY {1} {2}",
recordsTillCurrentPage, sortField, sortOrder);

string sql2 = string.Format(
"SELECT TOP {0} * FROM ({1}) ORDER BY {2} {3}",
recordsForCurrentPage, sql1, sortField, sortOrderReverse);

string sql3 = string.Format(
"SELECT * FROM ({0}) ORDER BY {1} {2}",
sql2, sortField, sortOrder);

Please, could you help me?

Thank you.

Best regards,

Milan KOTASKA
eo_support
Posted: Wednesday, April 22, 2009 7:16:39 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We are not in a position to troubleshoot SQL statement. The sample is intended to give you a general idea of how it works and we would expect you to adapt it to fit your specific scenario. For example, some people may use another database server such as Oracle, in that case it's obvious that they will need to troubleshoot whatever problem they have encountered when using Oracle.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.