Click here to Skip to main content
15,905,233 members
Home / Discussions / Database
   

Database

 
GeneralRe: Read-only Access DB Problem Pin
Roger Wright28-Jul-03 7:48
professionalRoger Wright28-Jul-03 7:48 
GeneralRe: Read-only Access DB Problem Pin
-- NA --28-Jul-03 7:51
-- NA --28-Jul-03 7:51 
GeneralFirehose Pin
THEMYTH27-Jul-03 22:19
THEMYTH27-Jul-03 22:19 
GeneralRe: Firehose Pin
Arjan Einbu27-Jul-03 22:50
Arjan Einbu27-Jul-03 22:50 
GeneralRe: Firehose Pin
THEMYTH27-Jul-03 22:57
THEMYTH27-Jul-03 22:57 
GeneralProblems with LIKE in MFC(vs6) Pin
jag_typ27-Jul-03 22:00
jag_typ27-Jul-03 22:00 
GeneralRe: Problems with LIKE in MFC(vs6) Pin
Mike Dimmick29-Jul-03 2:44
Mike Dimmick29-Jul-03 2:44 
GeneralRe: Problems with LIKE in MFC(vs6) Pin
jag_typ2-Aug-03 0:18
jag_typ2-Aug-03 0:18 
I think it's much easier working with CDao classes...

And the way the program is ment to be used, i can't create System-DSN's on all computers (to be able to use ODBC) I would like to connect directly to the SQL server...

One strange thing I've noticed is that if I use very simple SQL queries such as SELECT * FROM scala_A_SL010100 or SELECT * FROM scala_A_SL010100 WHERE FNCustomerName LIKE 'Besam AB'.. Or something else without the % it works fine..

Iv'e also noticed that it doesn't work then i use joins.. but as I

SELECT DISTINCT scala_A_OR200100.FNSalesmanNo AS 'Salesman', scala_A_SYCD0100.FNCurrencyShortName AS 'Currency', scala_A_OR120100.FNOrderNumber AS 'Ordernumber', scala_A_OR120100.FNLineNumber AS 'LineNumber', scala_A_OR120100.FNStockCode AS 'StockCode', scala_A_OR120100.FNDescripLine1 AS 'DescLine1', scala_A_OR120100.FNDescripLine2 AS 'DescLine2', scala_A_OR120100.FNUnitPrice AS 'UnitPrice', scala_A_OR120100.FNQty AS 'Qty', scala_A_OR120100.FNDelDate AS 'DelDate', scala_A_OR120100.FNOrderDate AS 'OrderDate' <br />
FROM scala_A_OR200100 right outer join scala_A_OR120100 <br />
ON scala_A_OR120100.FNOrderNumber = scala_A_OR200100.FNOrderNo <br />
right outer join scala_A_SYCD0100 <br />
ON scala_A_OR120100.FNUnitCode = scala_A_SYCD0100.FNCurrencyCode <br />
WHERE scala_A_OR120100.FNCustCodeDel = '400002' <br />
ORDER BY scala_A_OR120100.FNOrderNumber Desc, <br />
scala_A_OR120100.FNLineNumber asc"


But it works perfectley in the Query Analyser...

If I take away the last join it seems to work without any errors, but I naturally don't recieve all data I need..

I wonder if he DaoClass can't cope with a little more advanced SQL queries.. Or if it may be something i've done wrong.. And if there may be some way to fix my problem??



(ps. been on a vaccation a few days, therefore I havn't replied until now ds.)
GeneralGetting Child Items; Pin
Bo Hunter27-Jul-03 20:32
Bo Hunter27-Jul-03 20:32 
GeneralRe: Getting Child Items; Pin
Not Active28-Jul-03 2:34
mentorNot Active28-Jul-03 2:34 
GeneralRe: Getting Child Items; Pin
ZoogieZork28-Jul-03 8:33
ZoogieZork28-Jul-03 8:33 
GeneralRe: Getting Child Items; Pin
Bo Hunter28-Jul-03 10:35
Bo Hunter28-Jul-03 10:35 
GeneralRe: Getting Child Items; Pin
Alexander Kojevnikov28-Jul-03 23:37
Alexander Kojevnikov28-Jul-03 23:37 
GeneralADO.NET connection problem Pin
sacoskun27-Jul-03 1:11
sacoskun27-Jul-03 1:11 
GeneralRe: ADO.NET connection problem Pin
Mike Dimmick29-Jul-03 2:54
Mike Dimmick29-Jul-03 2:54 
GeneralRe: ADO.NET connection problem Pin
sacoskun29-Jul-03 5:23
sacoskun29-Jul-03 5:23 
GeneralBulk Insert - DataTable to DataTable Pin
sburton@amersham25-Jul-03 12:41
sburton@amersham25-Jul-03 12:41 
GeneralRe: Bulk Insert - DataTable to DataTable Pin
Rein Hillmann26-Jul-03 20:56
Rein Hillmann26-Jul-03 20:56 
GeneralRe: Bulk Insert - DataTable to DataTable Pin
sburton@amersham28-Jul-03 6:13
sburton@amersham28-Jul-03 6:13 
GeneralRe: Bulk Insert - DataTable to DataTable Pin
sburton30-Jul-03 8:35
sburton30-Jul-03 8:35 
GeneralMail Pin
sardinka25-Jul-03 5:49
sardinka25-Jul-03 5:49 
GeneralRe: Mail Pin
William O'Malley25-Jul-03 8:53
sussWilliam O'Malley25-Jul-03 8:53 
GeneralRe: Mail Pin
sardinka30-Jul-03 3:26
sardinka30-Jul-03 3:26 
QuestionWildcard SELECT in MySQL? Pin
MKlucher25-Jul-03 5:11
MKlucher25-Jul-03 5:11 
AnswerRe: Wildcard SELECT in MySQL? Pin
ZoogieZork25-Jul-03 6:54
ZoogieZork25-Jul-03 6:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.