Click here to Skip to main content
15,888,984 members
Home / Discussions / Database
   

Database

 
QuestionRetrieve from DataBase Pin
Mr. Wonderful20-May-08 0:02
Mr. Wonderful20-May-08 0:02 
AnswerRe: Retrieve from DataBase Pin
Blue_Boy20-May-08 3:14
Blue_Boy20-May-08 3:14 
QuestionWhy the exception "Could not save; currently locked by another user" is coming? Pin
nicolus19-May-08 23:50
nicolus19-May-08 23:50 
QuestionLoad file in SQL Server from FileSystem Pin
JoZ CaVaLLo19-May-08 23:24
JoZ CaVaLLo19-May-08 23:24 
QuestionSql server reporting service 2005 - Drill down problem Pin
veereshIndia19-May-08 22:26
veereshIndia19-May-08 22:26 
AnswerCP Ignore Pin
leckey20-May-08 3:27
leckey20-May-08 3:27 
QuestionSql Server 2005 reporting service-Toggle problem Pin
veereshIndia19-May-08 22:15
veereshIndia19-May-08 22:15 
QuestionPartially solved SQL SELECT won't select more than two columns [modified] Pin
Vaclav_19-May-08 16:59
Vaclav_19-May-08 16:59 
I cannot get more than two columns using this simple SELECT query.

m_FDRecordset = new FDRecordset();

m_FDRecordset->Open(AFX_DB_USE_DEFAULT_TYPE,
"SELECT [Column1],[Column2],[Column3] FROM [Table] WHERE [Column1] LIKE '" + text + "%'", CRecordset::readOnly );


All I get is "Error retrieving record".
Being a total greenhorn in SQL I am lost.
Could someone give me a hint what is missing.
The query works fine with just two columns selections.
I am using Access as a database.

Here is an addendum to my dilema.
I am getting this error message in my trace.

Invalid character value for cast specification on column number 4

I have copied working column #2 to columns 3 and 4.
They are "text" in Access database.
As soon as I add data to these columns I get this error.
If my columns data are same why I get this error?

PS I am stuck with Access.

Thanks for reading.
Vaclav


The "problem" was in Access column data type - it does not accept
"3.5 MHz" either as text or number. The SELECT than fails.
But "1A" is accepted as text - no problem.
Live and learn!

modified on Wednesday, May 21, 2008 10:54 AM

AnswerRe: SQL SELECT won't select more than two columns Pin
Mycroft Holmes19-May-08 23:16
professionalMycroft Holmes19-May-08 23:16 
GeneralRe: SQL SELECT won't select more than two columns Pin
Vaclav_20-May-08 2:50
Vaclav_20-May-08 2:50 
QuestionHow can i get max Point and Min Date using SQL [modified] Pin
mangrovecm19-May-08 16:20
mangrovecm19-May-08 16:20 
AnswerRe: How can i get max Point and Min Date using SQL Pin
WoutL19-May-08 21:32
WoutL19-May-08 21:32 
GeneralRe: How can i get max Point and Min Date using SQL Pin
mangrovecm20-May-08 3:52
mangrovecm20-May-08 3:52 
GeneralRe: How can i get max Point and Min Date using SQL Pin
WoutL20-May-08 20:02
WoutL20-May-08 20:02 
QuestionQuery Help Pin
Hulicat19-May-08 13:17
Hulicat19-May-08 13:17 
AnswerRe: Query Help Pin
Blue_Boy19-May-08 21:51
Blue_Boy19-May-08 21:51 
GeneralRe: Query Help Pin
Hulicat20-May-08 3:50
Hulicat20-May-08 3:50 
GeneralRe: Query Help Pin
Blue_Boy20-May-08 4:03
Blue_Boy20-May-08 4:03 
QuestionTransaction question Pin
kensai19-May-08 5:17
kensai19-May-08 5:17 
AnswerRe: Transaction question Pin
J4amieC19-May-08 5:39
J4amieC19-May-08 5:39 
GeneralRe: Transaction question Pin
kensai19-May-08 5:52
kensai19-May-08 5:52 
QuestionOne more thing Pin
kensai19-May-08 6:44
kensai19-May-08 6:44 
QuestionHow to read an database table step by step (with ADO) Pin
harry7988019-May-08 3:35
harry7988019-May-08 3:35 
AnswerRe: How to read an database table step by step (with ADO) Pin
Adeel Chaudhry19-May-08 5:48
Adeel Chaudhry19-May-08 5:48 
AnswerRe: How to read an database table step by step (with ADO) Pin
Mycroft Holmes19-May-08 23:29
professionalMycroft Holmes19-May-08 23:29 

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.