Click here to Skip to main content
15,894,260 members
Home / Discussions / C#
   

C#

 
GeneralOleDbException error Pin
theStorminMormon21-Jul-05 9:02
theStorminMormon21-Jul-05 9:02 
GeneralRe: OleDbException error Pin
squawk21-Jul-05 9:12
squawk21-Jul-05 9:12 
GeneralRe: OleDbException error Pin
theStorminMormon21-Jul-05 9:23
theStorminMormon21-Jul-05 9:23 
GeneralRe: OleDbException error Pin
squawk21-Jul-05 9:31
squawk21-Jul-05 9:31 
GeneralRe: OleDbException error Pin
theStorminMormon21-Jul-05 9:41
theStorminMormon21-Jul-05 9:41 
GeneralRe: OleDbException error Pin
Rob Graham21-Jul-05 9:42
Rob Graham21-Jul-05 9:42 
GeneralRe: OleDbException error Pin
theStorminMormon21-Jul-05 9:46
theStorminMormon21-Jul-05 9:46 
GeneralRe: OleDbException error Pin
squawk21-Jul-05 10:01
squawk21-Jul-05 10:01 
I took your code and for the most part is worked ok. I filled in some of the blanks and got this code to complie and run:

OleDbConnection cn = new OleDbConnection("User ID=xxx;Password=xxx;Initial Catalog=Northwind;Data Source=192.168.0.1;Provider=SQLOLEDB");
cn.Open();
System.Data.OleDb.OleDbCommand cmdGetNewClients = new System.Data.OleDb.OleDbCommand();
cmdGetNewClients.CommandText = @"SELECT LastName FROM Employees";
cmdGetNewClients.Connection = cn;
OleDbDataReader rdr = cmdGetNewClients.ExecuteReader();
ArrayList newClients = new ArrayList();
while(rdr.Read())
newClients.Add(rdr["LastName"]); <-- change made here
rdr.Close();
cn.Close();

Good luck.
GeneralRe: OleDbException error Pin
Luis Alonso Ramos21-Jul-05 10:40
Luis Alonso Ramos21-Jul-05 10:40 
Generalrefresh form from another form Pin
webhay21-Jul-05 8:35
webhay21-Jul-05 8:35 
GeneralRe: refresh form from another form Pin
Piovra_21-Jul-05 21:32
Piovra_21-Jul-05 21:32 
GeneralDataGrid question Pin
zaboboa21-Jul-05 7:48
zaboboa21-Jul-05 7:48 
GeneralRe: DataGrid question Pin
Alomgir Miah21-Jul-05 8:02
Alomgir Miah21-Jul-05 8:02 
GeneralRe: DataGrid question Pin
squawk21-Jul-05 9:05
squawk21-Jul-05 9:05 
GeneralRe: DataGrid question Pin
Tom Wright21-Jul-05 11:04
Tom Wright21-Jul-05 11:04 
GeneralFinding when items are added or removed in a ListView Pin
Luis Alonso Ramos21-Jul-05 7:28
Luis Alonso Ramos21-Jul-05 7:28 
GeneralDataGridComboBoxColumn does not exit Pin
zaboboa21-Jul-05 6:26
zaboboa21-Jul-05 6:26 
GeneralRe: DataGridComboBoxColumn does not exit Pin
Luis Alonso Ramos21-Jul-05 7:24
Luis Alonso Ramos21-Jul-05 7:24 
GeneralRe: DataGridComboBoxColumn does not exit Pin
zaboboa21-Jul-05 7:44
zaboboa21-Jul-05 7:44 
GeneralRe: DataGridComboBoxColumn does not exit Pin
Luis Alonso Ramos21-Jul-05 7:47
Luis Alonso Ramos21-Jul-05 7:47 
GeneralProbability /statistical library Pin
machocr21-Jul-05 6:24
machocr21-Jul-05 6:24 
GeneralRe: Probability /statistical library Pin
Kevin McFarlane21-Jul-05 7:51
Kevin McFarlane21-Jul-05 7:51 
GeneralRe: Probability /statistical library Pin
machocr21-Jul-05 11:55
machocr21-Jul-05 11:55 
QuestionHow to get the currently focused mail in outlook using c#? Pin
Inbam21-Jul-05 6:16
Inbam21-Jul-05 6:16 
Generalcreate virtual ftp folder using shell extension under desktop(like My Network Places) Pin
Asif Rehman21-Jul-05 5:09
Asif Rehman21-Jul-05 5:09 

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.