mhyassin
asked on
MEmo field with sql server and delphi 5
i wana create a database in sql server and use it from an application with delphi 5 program
a have some memo fields in my table
1-witch data type in my table i should use
2- how can i use these fields in quickreport in my program
in qreport tab in delphi i cant find a qrdbmemo in it
tanks
a have some memo fields in my table
1-witch data type in my table i should use
2- how can i use these fields in quickreport in my program
in qreport tab in delphi i cant find a qrdbmemo in it
tanks
QuickReports will use whatever field type you decide to use. The problem with the memo style fields is that, with a program like QuickReports, you set a size it can display in on your report. Anything outside this size will not be printed. I believe you can set the field to auto size. The problem with autosizing is that you could easily have your text spread across hundreds of pages... defeating the idea of having it on a report (the format would be shot). If you need to use a non-memo field on your report (I think the regular field should work) then you can use SQL to return it as a text field of the size you want to print on your report.
Convert(varchar(200), MyMemoField) MyMemoField
Let me know if this helps.
Convert(varchar(200), MyMemoField) MyMemoField
Let me know if this helps.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If you really NEED a field longer than 8000 characters use Text or NText if you need Unicode. Otherwise, use varchar(8000) or nvarchar(4000) if you need Unicode.
On SQL 2005:
You have the option of using varchar(MAX) or nvarchar(MAX) for Unicode. That will give you a field of up to 2^31 -1 bytes.
Hope that gets part 1 for you.