Problem reading memo or VarChar>255 with SQL Server
Hello there,
I have a quite common as I can see problem, but there are a couple of
questions not answered..
I am building an ISAPI dll with Delphi5, which will access through ODBC
(therefore also through BDE??) a database, run a Query and return some
fields, some of which are of type Text in SQL Server and some other of type
VarChar(3000). I am also using Sessions in my dll.
The query is parametirized so it is created at run-time, using information
taken from the user (for example
http://myserver/scripts/MyISAPI.dll/find?id=SomeID).
I experimented a lot and I have noticed that:
1. There is only problem when I choose in my query to get fields of kind
Text or VarChar>255.
2. There is NO problem if I try to use a TTable insted of a query, even with
Texts, or VarChars>255!! (but of course for me this is not a solution, cause
it is NOT paramatirized).
3. There is also NO problem if I use ADO, but I suppose that I can forget
about Sessions then, isn't that right?
I also downloaded and updated the BDE, with ver5.11, but also NO result!
So:
After reading some hundrends of news posts, I still haven't got an answer
for the following matter:
How can I get a Text or VarChar>255 field from an SQL Server by using a
query whose SQL is created at runtime and also have sessions???
If anyone should have an answer, I would be grateful...
Thanks in advance
Nikolas