Click here to Skip to main content
15,902,447 members
Home / Discussions / Database
   

Database

 
AnswerRe: distinct? Pin
Blue_Boy20-May-08 22:47
Blue_Boy20-May-08 22:47 
QuestionRe: distinct? Pin
laserbaronen20-May-08 22:51
laserbaronen20-May-08 22:51 
AnswerRe: distinct? Pin
Blue_Boy20-May-08 22:53
Blue_Boy20-May-08 22:53 
GeneralRe: distinct? Pin
laserbaronen20-May-08 23:02
laserbaronen20-May-08 23:02 
GeneralRe: distinct? Pin
Blue_Boy20-May-08 23:19
Blue_Boy20-May-08 23:19 
GeneralRe: distinct? Pin
laserbaronen20-May-08 23:31
laserbaronen20-May-08 23:31 
GeneralRe: distinct? Pin
Blue_Boy20-May-08 23:32
Blue_Boy20-May-08 23:32 
QuestionPrimary Keys Pin
MAW3020-May-08 16:50
MAW3020-May-08 16:50 
AnswerRe: Primary Keys Pin
ChandraRam20-May-08 21:00
ChandraRam20-May-08 21:00 
QuestionInner Join to match multiple rows in lookup table Pin
redivider20-May-08 10:59
redivider20-May-08 10:59 
AnswerRe: Inner Join to match multiple rows in lookup table Pin
WoutL20-May-08 20:12
WoutL20-May-08 20:12 
GeneralRe: Inner Join to match multiple rows in lookup table Pin
redivider21-May-08 4:57
redivider21-May-08 4:57 
Questionsql very long?? Pin
foryou20-May-08 1:52
foryou20-May-08 1:52 
GeneralHelp me please. Pin
foryou21-May-08 1:53
foryou21-May-08 1:53 
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 

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.