sort with access program is not working
Posted in 2005
Topics: Stored Procedures & SPL, Connectivity: ODBC / JDBC / .NET, Connectivity: ESQL/C, 4GL & Embedded SQL, Platform-Specific Issues, Clustering, Grid & MACH11
This is a multi-part message in MIME format.
------_=_NextPart_001_01C50D2A.0F462F14
Content-Type: multipart/alternative;
boundary="----_=_NextPart_002_01C50D2A.0F462F14"
------_=_NextPart_002_01C50D2A.0F462F14
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
=20
Hello there,
=20
I have the following Problem and I need tips to solve my current
problem.
I tried separately:
=20
1. CSDK2.81.TC1
2. CSDK2.81.TC2
3. CSDK2.81.TC3
=20
and I found that the query with MS-Access program will not work
correctly and here is the query:
=20
SELECT soshh_lab.mtknr, soshh_lab.pnr
FROM soshh_lab
WHERE (((soshh_lab.mtknr)=3D27255))
ORDER BY soshh_lab.pnr;=20
And I got the following error:
=20
ODBC-Error
[Informix][Informix ODBC Driver][Informix]ORDER BY column (pnr) must=20
be in select list. (# -309)
=20
I did and tried the same SQL direct into the DB using ISQL --> it works.
But if I use the same query within MS-Access Program and I alliance my
table through ODBC. I get always the ERROR just as written above.
=20
I tried the same query but without order by it will be works fine. But
the sort it will not work. I think my problem is with the CSDK and I
need to solve this problem.
=20
My environment on Linux Debian:
=20
ISD: 9.30.UC3
4GL: 7.32.UC2
ISQL: 7.32.UC2
=20
Can somebody help me on this?
=20
Regards
Muthana
=20
=20
------_=_NextPart_002_01C50D2A.0F462F14
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 10">
<meta name=3DOriginator content=3D"Microsoft Word 10">
<link rel=3DFile-List href=3D"cid:filelist.xml@01C50D32.715A0CE0">
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:SpellingState>Clean</w:SpellingState>
<w:GrammarState>Clean</w:GrammarState>
<w:DocumentKind>DocumentEmail</w:DocumentKind>
<w:HyphenationZone>21</w:HyphenationZone>
<w:EnvelopeVis/>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;
mso-font-charset:2;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:0 268435456 0 0 -2147483648 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;
text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;
text-underline:single;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{margin:0cm;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Courier New";
mso-fareast-font-family:"Times New Roman";}
pre
{margin:0cm;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Courier New";
mso-fareast-font-family:"Times New Roman";}
span.EmailFormatvorlage17
{mso-style-type:personal-compose;
mso-style-noshow:yes;
color:black;}
span.SpellE
{mso-style-name:"";
mso-spl-e:yes;}
span.GramE
{mso-style-name:"";
mso-gram-e:yes;}
@page Section1
{size:595.3pt 841.9pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;
mso-header-margin:35.4pt;
mso-footer-margin:35.4pt;
mso-paper-source:0;}
div.Section1
{page:Section1;}
/* List Definitions */
@list l0
{mso-list-id:71707504;
mso-list-type:hybrid;
mso-list-template-ids:1009125846 67567631 67567641 67567643 67567631 =
67567641 67567643 67567631 67567641 67567643;}
@list l0:level1
{mso-level-tab-stop:36.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */=20
table.MsoNormalTable
{mso-style-name:"Normale Tabelle";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";}
</style>
<![endif]--><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor=3Dwhite background=3D"cid:image001.jpg@01C50D32.715A0CE0" =
lang=3DDE
link=3Dblue vlink=3Dpurple style=3D'tab-interval:35.4pt'>
<img src=3D"cid:image001.jpg@01C50D32.715A0CE0"
v:src=3D"cid:image001.jpg@01C50D32.715A0CE0" v:shapes=3D"_x0000_Mail" =
width=3D0
height=3D0 class=3Dshape style=3D'display:none;width:0;height:0'>
<div class=3DSection1>
<div>
<p class=3DMsoNormal><font size=3D3 color=3Dblack face=3D"Times New =
Roman"><span
style=3D'font-size:12.0pt;color:black'>Hello =
there,</span></font><o:p></o:p></p>
<p class=3DMsoNormal><font size=3D3 color=3Dblack face=3D"Times New =
Roman"><span
style=3D'font-size:12.0pt;color:black'><o:p> </o:p></span></font></p=
>
<p class=3DMsoNormal><font size=3D3 color=3Dblack face=3D"Times New =
Roman"><span
lang=3DEN-GB =
style=3D'font-size:12.0pt;color:black;mso-ansi-language:EN-GB'>I have
the following Problem and I need tips to solve my current =
problem.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D3 color=3Dblack face=3D"Times New =
Roman"><span
lang=3DEN-GB =
style=3D'font-size:12.0pt;color:black;mso-ansi-language:EN-GB'>I tried
separately:<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D3 color=3Dblack face=3D"Times New =
Roman"><span
lang=3DEN-GB =
style=3D'font-size:12.0pt;c
Well, with all those different CSDKs all generating the same error
maybe MS Access is generating some rubbish?
is this an MS access generated query/ can you turn off the tablename in
front of the column bname
or how about "order by 2"?
Muthana.AL-Temimi@tu-harburg.hamburg.de wrote:
> This is a multi-part message in MIME format.
>
> ------_=_NextPart_001_01C50D2A.0F462F14
> Content-Type: multipart/alternative;
> boundary="----_=_NextPart_002_01C50D2A.0F462F14"
>
>
> ------_=_NextPart_002_01C50D2A.0F462F14
> Content-Type: text/plain;
> charset="us-ascii"
> Content-Transfer-Encoding: quoted-printable
>
> =20
> Hello there,
> =20
> I have the following Problem and I need tips to solve my current
> problem.
> I tried separately:
> =20
> 1. CSDK2.81.TC1
> 2. CSDK2.81.TC2
> 3. CSDK2.81.TC3
> =20
> and I found that the query with MS-Access program will not work
> correctly and here is the query:
> =20
> SELECT soshh_lab.mtknr, soshh_lab.pnr
> FROM soshh_lab
> WHERE (((soshh_lab.mtknr)=3D27255))
> ORDER BY soshh_lab.pnr;> =20
> And I got the following error:
> =20
> ODBC-Error
> [Informix][Informix ODBC Driver][Informix]ORDER BY column (pnr)
must=20
> be in select list. (# -309)
> =20
> I did and tried the same SQL direct into the DB using ISQL --> it
works.
> But if I use the same query within MS-Access Program and I alliance
my
> table through ODBC. I get always the ERROR just as written above.
> =20
> I tried the same query but without order by it will be works fine.
But
> the sort it will not work. I think my problem is with the CSDK and I
> need to solve this problem.
> =20
> My environment on Linux Debian:
> =20
> ISD: 9.30.UC3
> 4GL: 7.32.UC2
> ISQL: 7.32.UC2
> =20
> Can somebody help me on this?
> =20
> Regards
> Muthana
> =20
> =20
>
> ------_=_NextPart_002_01C50D2A.0F462F14
> Content-Type: text/html;
> charset="us-ascii"
> Content-Transfer-Encoding: quoted-printable
>
> <html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
> xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
> xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
> xmlns=3D"http://www.w3.org/TR/REC-html40">
>
> <head>
> <meta http-equiv=3DContent-Type content=3D"text/html; =
> charset=3Dus-ascii">
> <meta name=3DProgId content=3DWord.Document>
> <meta name=3DGenerator content=3D"Microsoft Word 10">
> <meta name=3DOriginator content=3D"Microsoft Word 10">
> <link rel=3DFile-List href=3D"cid:filelist.xml@01C50D32.715A0CE0">
> <!--[if gte mso 9]><xml>
> <o:OfficeDocumentSettings>
> <o:DoNotRelyOnCSS/>
> </o:OfficeDocumentSettings>
> </xml><![endif]--><!--[if gte mso 9]><xml>
> <w:WordDocument>
> <w:SpellingState>Clean</w:SpellingState>
> <w:GrammarState>Clean</w:GrammarState>
> <w:DocumentKind>DocumentEmail</w:DocumentKind>
> <w:HyphenationZone>21</w:HyphenationZone>
> <w:EnvelopeVis/>
> <w:Compatibility>
> <w:BreakWrappedTables/>
> <w:SnapToGridInCell/>
> <w:WrapTextWithPunct/>
> <w:UseAsianBreakRules/>
> </w:Compatibility>
> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
> </w:WordDocument>
> </xml><![endif]-->
> <style>
> <!--
> /* Font Definitions */
> @font-face
> {font-family:Wingdings;
> panose-1:5 0 0 0 0 0 0 0 0 0;
> mso-font-charset:2;
> mso-generic-font-family:auto;
> mso-font-pitch:variable;
> mso-font-signature:0 268435456 0 0 -2147483648 0;}
> /* Style Definitions */
> p.MsoNormal, li.MsoNormal, div.MsoNormal
> {mso-style-parent:"";
> margin:0cm;
> margin-bottom:.0001pt;
> mso-pagination:widow-orphan;
> font-size:12.0pt;
> font-family:"Times New Roman";
> mso-fareast-font-family:"Times New Roman";}
> a:link, span.MsoHyperlink
> {color:blue;
> text-decoration:underline;
> text-underline:single;}
> a:visited, span.MsoHyperlinkFollowed
> {color:purple;
> text-decoration:underline;
> text-underline:single;}
> p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
> {margin:0cm;
> margin-bottom:.0001pt;
> mso-pagination:widow-orphan;
> font-size:10.0pt;
> font-family:"Courier New";
> mso-fareast-font-family:"Times New Roman";}
> pre
> {margin:0cm;
> margin-bottom:.0001pt;
> mso-pagination:widow-orphan;
> font-size:10.0pt;
> font-family:"Courier New";
> mso-fareast-font-family:"Times New Roman";}
> span.EmailFormatvorlage17
> {mso-style-type:personal-compose;
> mso-style-noshow:yes;
> color:black;}
> span.SpellE
> {mso-style-name:"";
> mso-spl-e:yes;}
> span.GramE
> {mso-style-name:"";
> mso-gram-e:yes;}
> @page Section1
> {size:595.3pt 841.9pt;
> margin:70.85pt 70.85pt 2.0cm 70.85pt;
> mso-header-margin:35.4pt;
> mso-footer-margin:35.4pt;
> mso-paper-source:0;}
> div.Section1
> {page:Section1;}
> /* List Definitions */
> @list l0
> {mso-list-id:71707504;
> mso-list-type:hybrid;
> mso-list-template-ids:1009125846 67567631 67567641 67567643 67567631
=
> 67567641 67567643 67567631 67567641 67567643;}
> @list l0:level1
> {mso-level-tab-stop:36.0pt;
> mso-level-number-position:left;
> text-indent:-18.0pt;}
> ol
> {margin-bottom:0cm;}
> ul
> {margin-bottom:0cm;}
> -->
> </style>
> <!--[if gte mso 10]>
> <style>
> /* Style Definitions */=20
> table.MsoNormalTable
> {mso-style-name:"Normale Tabelle";
> mso-tstyle-rowband-size:0;
> mso-tstyle-colband-size:0;
> mso-style-noshow:yes;
> mso-style-parent:"";
> mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
> mso-para-margin:0cm;
> mso-para-margin-bottom:.0001pt;
> mso-pagination:widow-orphan;
> font-size:10.0pt;
> font-family:"Times New Roman";}
> </style>
> <![endif]--><!--[if gte mso 9]><xml>
> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
> </xml><![endif]--><!--[if gte mso 9]><xml>
> <o:shapelayout v:ext=3D"edit">
> <o:idmap v:ext=3D"edit" data=3D"1" />
> </o:shapelayout></xml><![endif]-->
> </head>
>
> <body bgcolor=3Dwhite
background=3D"cid:image001.jpg@01C50D32.715A0CE0" =
> lang=3DDE
> link=3Dblue vlink=3Dpurple style=3D'tab-interval:35.4pt'>
> <img src=3D"cid:image001.jpg@01C50D32.715A0CE0"
> v:src=3D"cid:image001.jpg@01C50D32.715A0CE0" v:shapes=3D"_x0000_Mail"
=
> width=3D0
> height=3D0 class=3Dshape style=3D'display:none;width:0;height:0'>
>
> <div class=3DSection1>
>
> <div>
>
> <p class=3DMsoNormal><font size=3D3 color=3Dblack face=3D"Times New =
> Roman"><span
> style=3D'font-size:12.0pt;color:black'>Hello =
> there,</span></font><o:p></o:p></p>
>
> <p class=3DMsoNormal><font size=3D3 color=3Dblack face=3D"Times New =
> Roman"><span
>
sty
On Mon, 7 Feb 2005 16:31:14 +0100, <Muthana.AL-Temimi@tu-harburg.hamburg.de>
wrote:
>I have the following Problem and I need tips to solve my current
>problem.
>I tried separately:
>=20
>1. CSDK2.81.TC1
>2. CSDK2.81.TC2
>3. CSDK2.81.TC3
>=20
>and I found that the query with MS-Access program will not work
>correctly and here is the query:
>=20
>SELECT soshh_lab.mtknr, soshh_lab.pnr
>FROM soshh_lab
>WHERE (((soshh_lab.mtknr)=3D27255))
>ORDER BY soshh_lab.pnr;>=20
>And I got the following error:
>=20
>ODBC-Error
>[Informix][Informix ODBC Driver][Informix]ORDER BY column (pnr) must=20
>be in select list. (# -309)
>=20
>I did and tried the same SQL direct into the DB using ISQL --> it works.
>But if I use the same query within MS-Access Program and I alliance my
>table through ODBC. I get always the ERROR just as written above.
>=20
>I tried the same query but without order by it will be works fine. But
>the sort it will not work. I think my problem is with the CSDK and I
>need to solve this problem.
>=20
I have similiar issues with the IBM ODBC drivers. Try the trial drivers from
OpenLink or DataDirect and see if they fix the problem.
Gary Quiring