全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:811
推到 Plurk!
推到 Facebook!

[SQL not supported:%s]問題

尚未結案
bebooo
一般會員


發表:8
回覆:11
積分:3
註冊:2002-04-15

發送簡訊給我
#1 引用回覆 回覆 發表時間:2003-06-09 12:55:26 IP:203.69.xxx.xxx 未訂閱
var aQuery : TClientDataSet; Data : OleVariant; sResult : String; begin try aQuery := TClientDataSet.Create( self ); try....... .......... 到aQuery := TClientDataSet.Create( self );時會出現SQL not supported:%s,不知是甚麼原因?以前在Delphi5沒問題,換到Delphi6後才發生的,有人遇過嗎?謝謝~
hagar
版主


發表:143
回覆:4056
積分:4445
註冊:2002-04-14

發送簡訊給我
#2 引用回覆 回覆 發表時間:2003-06-10 22:49:00 IP:202.39.xxx.xxx 未訂閱
這裏有一篇: http://groups.google.com.tw/groups?hl=zh-TW&lr=&ie=UTF-8&oe=UTF-8&th=1fae1c767ebfe2e7&rnum=1 節錄 Bob Swart 的回答: I've seen this before with "regular" ClientDataSets (i.e. not the specific SQLClientDataSets). In my case, I could solve it by setting the "ResolveToDataSet" property of the DataSetProvider to True (so it  would resolve the updates to the DataSet itself, without looking for  the remote DBMS). If you are using a SQLClientDataSet without SQLConnection, then this  is something to try as well (setting ResolveToDataSet to True)...    --- 每個人都是一本書
bebooo
一般會員


發表:8
回覆:11
積分:3
註冊:2002-04-15

發送簡訊給我
#3 引用回覆 回覆 發表時間:2003-06-11 23:55:42 IP:211.75.xxx.xxx 未訂閱
ResolveToDataSet 不是DataSetProvider 的嗎?可是我是宣告TClientDataset耶!還是不懂~ var aQuery : TClientDataSet; Data : OleVariant; sResult : String; begin try aQuery := TClientDataSet.Create( self ); try....... ..........
系統時間:2024-06-27 2:08:49
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!