SQL Server compact Edition 4 (Inner Join)
-
Friday, February 01, 2013 5:52 PM
I'm moving from MS Access database to SQL Server compact Edition 4 database.
Can someone give translate the SQL statement below into SQL CE format?
Dim m_sSQL_Base_DR As String = "Select * From tbl_Records_DR AS Records_DR " _
& "INNER JOIN tbl_Records_DR_ExplainAction AS Records_EA ON Records_DR.DAutoID = Records_EA.DRefer_ID "Thanks,
ADawn
ADawn- Edited by tropicwhisper Friday, February 01, 2013 5:53 PM
All Replies
-
Friday, February 01, 2013 5:55 PMModerator
I believe you just want the T-SQL and not the C# code?
Select * From tbl_Records_DR AS Records_DR INNER JOIN tbl_Records_DR_ExplainAction AS Records_EA ON Records_DR.DAutoID = Records_EA.DRefer_ID
Select *
From tbl_Records_DR AS Records_DR INNER JOIN tbl_Records_DR_ExplainAction AS Records_EA
ON Records_DR.DAutoID = Records_EA.DRefer_IDDavid Dye My Blog
-
Friday, February 01, 2013 6:10 PM
Jjust the T-SQL statement translated to SQL CE.
"Select * From tbl_Records_DR AS Records_DR " _
& "INNER JOIN tbl_Records_DR_ExplainAction AS Records_EA ON Records_DR.DAutoID = Records_EA.DRefer_ID "
ADawn
- Edited by tropicwhisper Friday, February 01, 2013 6:10 PM
-
Friday, February 01, 2013 6:12 PMModerator
Select * From tbl_Records_DR AS Records_DR INNER JOIN tbl_Records_DR_ExplainAction AS Records_EA ON Records_DR.DAutoID = Records_EA.DRefer_ID
David Dye My Blog
-
Friday, February 01, 2013 6:56 PMIsn't that what I had? So what I was using should work?
ADawn
- Edited by tropicwhisper Friday, February 01, 2013 6:56 PM
-
Friday, February 01, 2013 7:01 PMModerator
-
Friday, February 01, 2013 7:32 PM
Yes.
OleDbDataAdapter internal error: invalid row set accessor: Ordinal=28 Status=UNSUPPORTEDCONVERSION.
ADawn
- Edited by tropicwhisper Friday, February 01, 2013 7:32 PM
-
Friday, February 01, 2013 7:35 PMModerator
Is is not the query, but rather the provider:
http://social.msdn.microsoft.com/Forums/en-US/sqlce/thread/ce6a36c2-14e5-4e1c-93de-d261a667e8f0
David Dye My Blog
- Marked As Answer by tropicwhisper Friday, February 01, 2013 7:44 PM

