HI Neven<div><br></div><div>Yeah thats right, But you can fetch the value using adoquery.fields[0].asstring</div><div><br></div><div>well i even tried S<span class="Apple-style-span" style="font-family: verdana, tahoma, arial, sans-serif; font-size: 12px; color: rgb(51, 51, 51); line-height: 19px; "><strong style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">ELECT IDENT_CURRENT(‘Client_Accountdetail’) as DummyValue but it dint worked either</strong></span><br>
<br><div class="gmail_quote">On Tue, Aug 24, 2010 at 4:18 AM, Neven MacEwan <span dir="ltr"><<a href="mailto:neven@mwk.co.nz">neven@mwk.co.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#ffffff" text="#000000">
Vik<br>
<br>
just a thought but try giving the column a name as both '<span style="font-family:verdana,tahoma,arial,sans-serif;font-size:12px;color:rgb(51, 51, 51);line-height:19px"><strong style="padding:0px;margin:0px">SELECT IDENT_CURRENT(‘Client_Accountdetail’)</strong></span>'
and <b>select max(column name) from table </b>would return
un-named columns<br>
<br>
HTH<br>
Neven<br>
<blockquote type="cite"><div><div></div><div class="h5">Hello everyone,
<div><br>
</div>
<div>Good morning,</div>
<div><br>
</div>
<div>I am facing a small problem while using ident_current feature
using adoquery.</div>
<div><br>
</div>
<div>with AdoAccountQuery do</div>
<div>begin</div>
<div> close;</div>
<div>sql.clear;</div>
<div>sql.text := '<span style="font-family:verdana,tahoma,arial,sans-serif;font-size:12px;color:rgb(51, 51, 51);line-height:19px"><strong style="padding:0px;margin:0px">SELECT
IDENT_CURRENT(‘Client_Accountdetail’)</strong></span>'</div>
<div>open</div>
<div>end;<br clear="all">
<br>
</div>
<div>it gives an access violation in open statement.</div>
<div><br>
</div>
<div>I tried this using select max(column name) from table it
still gives the error</div>
<div><br>
</div>
<div>how ever when i try select * from table it works fine</div>
<div>I know i may sound dump here but it just not seems to work
for me correctly</div>
<div><br>
</div>
<div>regards</div>
<div>Vik<br>
-- <br>
<br>
</div>
</div></div><pre><fieldset></fieldset>
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: <a href="mailto:delphi@delphi.org.nz" target="_blank">delphi@delphi.org.nz</a>
Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a>
Unsubscribe: send an email to <a href="mailto:delphi-request@delphi.org.nz" target="_blank">delphi-request@delphi.org.nz</a> with Subject: unsubscribe</pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
NZ Borland Developers Group - Delphi mailing list<br>
Post: <a href="mailto:delphi@delphi.org.nz">delphi@delphi.org.nz</a><br>
Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
Unsubscribe: send an email to <a href="mailto:delphi-request@delphi.org.nz">delphi-request@delphi.org.nz</a> with Subject: unsubscribe<br></blockquote></div><br><br clear="all"><br>-- <br> vikas<br>
</div>