Click here to Skip to main content
15,891,529 members
Home / Discussions / C#
   

C#

 
Questionhow to convert string into code? Pin
rachelicohen29-Apr-09 7:24
rachelicohen29-Apr-09 7:24 
AnswerRe: how to convert string into code? Pin
Henry Minute29-Apr-09 7:34
Henry Minute29-Apr-09 7:34 
GeneralRe: how to convert string into code? Pin
rachelicohen29-Apr-09 7:55
rachelicohen29-Apr-09 7:55 
RantRe: how to convert string into code? Pin
Rolando CC29-Apr-09 7:41
professionalRolando CC29-Apr-09 7:41 
AnswerRe: how to convert string into code? Pin
Xmen Real 29-Apr-09 8:27
professional Xmen Real 29-Apr-09 8:27 
GeneralRe: how to convert string into code? Pin
Luc Pattyn29-Apr-09 9:23
sitebuilderLuc Pattyn29-Apr-09 9:23 
GeneralRe: how to convert string into code? Pin
Giorgi Dalakishvili29-Apr-09 9:37
mentorGiorgi Dalakishvili29-Apr-09 9:37 
QuestionMultiple tables from a single DB [modified] Pin
Star0929-Apr-09 6:41
Star0929-Apr-09 6:41 
There seems to be a problem with my code when I try and retrieve multiple tables. Please tell me what's wrong, or if there is an alternative way to do this? Thanks in advance.

OleDbConnection clsConnection;
           clsConnection = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\one.mdb;");
           clsConnection.Open();
           //first table
           WTest1.oneDataSet f_table = new WTest1.oneDataSet();
           OleDbDataAdapter dAdapter = new OleDbDataAdapter("SELECT * FROM first", clsConnection);
           dAdapter.Fill(f_table, "first");

           //second table
           WTest1.oneDataSet s_table = new WTest1.oneDataSet();
           OleDbDataAdapter dAdapter1 = new OleDbDataAdapter("SELECT * FROM second", clsConnection);
           dAdapter1.Fill(s_table, "second");

<br />
Runtime Error: Syntax Error in FROM Clause


--Star

modified on Wednesday, April 29, 2009 1:04 PM

AnswerRe: Multiple tables from a single DB Pin
Rolando CC29-Apr-09 6:51
professionalRolando CC29-Apr-09 6:51 
GeneralRe: Multiple tables from a single DB Pin
Star0929-Apr-09 6:52
Star0929-Apr-09 6:52 
GeneralRe: Multiple tables from a single DB Pin
Rolando CC29-Apr-09 7:18
professionalRolando CC29-Apr-09 7:18 
GeneralRe: Multiple tables from a single DB Pin
Star0929-Apr-09 7:25
Star0929-Apr-09 7:25 
GeneralRe: Multiple tables from a single DB Pin
Rolando CC29-Apr-09 7:31
professionalRolando CC29-Apr-09 7:31 
QuestionHow to return a sorted object collection to a List<t>?</t> Pin
Goalie3529-Apr-09 6:37
Goalie3529-Apr-09 6:37 
AnswerRe: How to return a sorted object collection to a List? Pin
Henry Minute29-Apr-09 8:27
Henry Minute29-Apr-09 8:27 
Questionneed code for performing hte following operaiton in c| Pin
raviraazk29-Apr-09 6:25
raviraazk29-Apr-09 6:25 
AnswerRe: need code for performing hte following operaiton in c| Pin
Jimmanuel29-Apr-09 6:53
Jimmanuel29-Apr-09 6:53 
AnswerRe: need code for performing hte following operaiton in c| Pin
scottgp29-Apr-09 7:17
professionalscottgp29-Apr-09 7:17 
GeneralRe: need code for performing hte following operaiton in c| Pin
raviraazk29-Apr-09 7:32
raviraazk29-Apr-09 7:32 
GeneralRe: need code for performing hte following operaiton in c| Pin
scottgp29-Apr-09 7:48
professionalscottgp29-Apr-09 7:48 
GeneralRe: need code for performing hte following operaiton in c| Pin
raviraazk29-Apr-09 7:51
raviraazk29-Apr-09 7:51 
AnswerRe: need code for performing hte following operaiton in c| Pin
jas0n2329-Apr-09 20:19
jas0n2329-Apr-09 20:19 
Questionhow to convert string into code? Pin
rachelicohen29-Apr-09 6:11
rachelicohen29-Apr-09 6:11 
AnswerMessage Removed Pin
29-Apr-09 6:15
professionalN_tro_P29-Apr-09 6:15 
GeneralRe: how to convert string into code? Pin
rachelicohen29-Apr-09 6:20
rachelicohen29-Apr-09 6: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.