Click here to Skip to main content
15,923,197 members
Home / Discussions / Database
   

Database

 
AnswerRe: mySQL, what do you think? Pin
Rob Graham1-Jan-03 6:12
Rob Graham1-Jan-03 6:12 
GeneralRe: mySQL, what do you think? Pin
Jassim Rahma1-Jan-03 11:10
Jassim Rahma1-Jan-03 11:10 
AnswerRe: mySQL, what do you think? Pin
David Salter4-Jan-03 1:11
David Salter4-Jan-03 1:11 
GeneralAppendChunk Pin
Dave Loeser31-Dec-02 7:51
Dave Loeser31-Dec-02 7:51 
GeneralADODB Object Vs. COM component Pin
retZ30-Dec-02 8:33
retZ30-Dec-02 8:33 
GeneralSQL Server strange error Pin
Shah Shehpori30-Dec-02 2:13
sussShah Shehpori30-Dec-02 2:13 
GeneralRe: SQL Server strange error Pin
Rob Graham30-Dec-02 8:46
Rob Graham30-Dec-02 8:46 
GeneralStrange problem with Access and SQLServer Pin
Mazdak29-Dec-02 8:35
Mazdak29-Dec-02 8:35 
I'm writing program that I use Access database and C#.And I use it in disconnected(DataSet) mode.When I run this code my dataset will be have 0 rows,and it seems it return nothing but if I only I change my connection string to SQL connection and use SQLServer instead of Access,I'll get correct result.This is my code:

OleDbConnection conn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Jet OLEDB:database     
 Password='';User ID=Admin ; Persist Security Info =False;Data Source=F:\\Visual 
Studio Projects1\\Visual C#\\Reminder Manager\\bin\\Debug\\RemindManagerDB.mdb");
//OleDbConnection conn = new OleDbConnection("Provider=SQLOLEDB;Data Source=localhost;Initial Catalog=Test;Integrated Security=SSPI;");
oleDbConnection1.Open();
OleDbDataAdapter adapter = new OleDbDataAdapter("select * from my table", conn);
DataSet firstjobds = new DataSet();
adapter.Fill(firstjobds);
oleDbConnection1.Close();

foreach (DataRow r in firstjobds.Tables[0].Rows)//--->firstjobds.Tables[0].Rows.Count is 0 for Access but not for SQLServer!!!!!
{
	userjobslv.Items.Add(r["JobTitle"].ToString());
}



Any idea?

Mazy

"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me
-Tom Waits

GeneralRe: Strange problem with Access and SQLServer Pin
Rob Graham29-Dec-02 8:58
Rob Graham29-Dec-02 8:58 
GeneralRe: Strange problem with Access and SQLServer Pin
Mazdak29-Dec-02 19:59
Mazdak29-Dec-02 19:59 
GeneralRe: newbie needs database help Pin
Michael P Butler28-Dec-02 10:25
Michael P Butler28-Dec-02 10:25 
GeneralA difficult challenge Pin
skallestad27-Dec-02 15:06
skallestad27-Dec-02 15:06 
GeneralGetDate() in Access Pin
Mazdak27-Dec-02 8:40
Mazdak27-Dec-02 8:40 
GeneralRe: GetDate() in Access Pin
Nick Parker27-Dec-02 9:05
protectorNick Parker27-Dec-02 9:05 
GeneralRe: GetDate() in Access Pin
Mazdak29-Dec-02 1:16
Mazdak29-Dec-02 1:16 
GeneralRe: GetDate() in Access Pin
Rob Graham30-Dec-02 8:59
Rob Graham30-Dec-02 8:59 
GeneralRe: GetDate() in Access Pin
Mazdak31-Dec-02 7:30
Mazdak31-Dec-02 7:30 
GeneralDetermining if a datarow contains a particular column Pin
MS le Roux26-Dec-02 21:35
MS le Roux26-Dec-02 21:35 
GeneralRe: Determining if a datarow contains a particular column Pin
MS le Roux26-Dec-02 21:54
MS le Roux26-Dec-02 21:54 
GeneralRe: Determining if a datarow contains a particular column Pin
leppie27-Dec-02 12:14
leppie27-Dec-02 12:14 
QuestionHow do I execute a query through an ASP page to update my fields Pin
E Slipchenko26-Dec-02 18:29
E Slipchenko26-Dec-02 18:29 
AnswerRe: How do I execute a query through an ASP page to update my fields Pin
leppie27-Dec-02 12:20
leppie27-Dec-02 12:20 
QuestionHow to send data from one application to another Pin
Exceter25-Dec-02 17:37
Exceter25-Dec-02 17:37 
AnswerRe: How to send data from one application to another Pin
Alexander Kojevnikov26-Dec-02 6:00
Alexander Kojevnikov26-Dec-02 6:00 
GeneralCount records / ASP Pin
Sarvesvara (BVKS) Dasa24-Dec-02 21:02
Sarvesvara (BVKS) Dasa24-Dec-02 21:02 

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.