Click here to Skip to main content
15,915,019 members
Home / Discussions / Database
   

Database

 
GeneralLIKE operator in Access Pin
Mazdak25-Dec-03 21:02
Mazdak25-Dec-03 21:02 
GeneralRe: LIKE operator in Access Pin
Hesham Amin31-Dec-03 11:16
Hesham Amin31-Dec-03 11:16 
GeneralRe: LIKE operator in Access Pin
Mazdak31-Dec-03 19:03
Mazdak31-Dec-03 19:03 
GeneralRe: LIKE operator in Access Pin
Hesham Amin31-Dec-03 22:56
Hesham Amin31-Dec-03 22:56 
GeneralRe: LIKE operator in Access Pin
Mazdak1-Jan-04 0:22
Mazdak1-Jan-04 0:22 
GeneralSQL server - Permission and ownership Pin
CillyMe25-Dec-03 20:41
CillyMe25-Dec-03 20:41 
GeneralA string to compare with the rest of the records Pin
codeajay24-Dec-03 18:59
codeajay24-Dec-03 18:59 
Generalconnecting to Exces database(file) Pin
Bharat Gadhia23-Dec-03 10:14
Bharat Gadhia23-Dec-03 10:14 
I am trying to retriev table in excel file using following code, but I get connection error like : Microsoft.Jet.OleDB 4.0 not registered on local machine or installbale ISAM not found. I am using Windows 2000 Adevance server and Visual Studio.Net 2003 and FrameWork 1.1 on my computer. Can any one please help?:
===========
CODE SNIPPET
============
string FileNam = "C:\\ExcelToXml\\ExcelInfo.xml";
string strConn;
strConn = "Provider=Microsoft.Jet.OLEDB 4.0;Data Source=EXCEL.C:\\ExcelToXml\\foodgroup.xls;Extended Properties=Excel 8.0;";
OleDbConnection Conn = new OleDbConnection(strConn);

try
{
Conn.Open();
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}
//You must use the $ after the object you reference in the spreadsheet
OleDbCommand objCmdSelect = new OleDbCommand("SELECT * FROM [Sheet1$]", Conn);
OleDbDataAdapter objAdapter = new OleDbDataAdapter();
objAdapter.SelectCommand = objCmdSelect;
DataSet myDataSet = new DataSet();
try
{
objAdapter.Fill(myDataSet, "ExcelInfo");
Conn.Close();
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}
myDataSet.WriteXml(FileName);
}

Bharat Gadhia
GeneralRe: connecting to Exces database(file) Pin
Rob Graham25-Dec-03 9:59
Rob Graham25-Dec-03 9:59 
GeneralRe: connecting to Exces database(file) Pin
Bharat Gadhia25-Dec-03 12:16
Bharat Gadhia25-Dec-03 12:16 
GeneralRe: connecting to Exces database(file) Pin
Mike Dimmick5-Jan-04 5:41
Mike Dimmick5-Jan-04 5:41 
GeneralRe: connecting to Exces database(file) Pin
Bharat Gadhia5-Jan-04 5:54
Bharat Gadhia5-Jan-04 5:54 
GeneralADO versus ADO.NET with Visual C++ Pin
François Gasnier22-Dec-03 5:02
François Gasnier22-Dec-03 5:02 
GeneralConnecting to Oracle database with ADO Pin
wbng21-Dec-03 14:44
wbng21-Dec-03 14:44 
GeneralLooking for good ADO book suggestion Pin
Flack21-Dec-03 14:15
Flack21-Dec-03 14:15 
GeneralRe: Looking for good ADO book suggestion Pin
Colin Angus Mackay21-Dec-03 14:50
Colin Angus Mackay21-Dec-03 14:50 
GeneralMicrosoft SQL Server - Bulk Update Lock Pin
CillyMe19-Dec-03 21:36
CillyMe19-Dec-03 21:36 
QuestionWhat's the best Desktop Database for Windows Forms Apps? Pin
bJoeyLouie19-Dec-03 8:51
bJoeyLouie19-Dec-03 8:51 
AnswerRe: What's the best Desktop Database for Windows Forms Apps? Pin
SimonS26-Dec-03 21:19
SimonS26-Dec-03 21:19 
GeneralRe: What's the best Desktop Database for Windows Forms Apps? Pin
Mike Dimmick5-Jan-04 5:50
Mike Dimmick5-Jan-04 5:50 
GeneralRe: What's the best Desktop Database for Windows Forms Apps? Pin
DaveMcL5-Jan-04 14:02
DaveMcL5-Jan-04 14:02 
GeneralQuery Optimization - MCAD question. Pin
CillyMe18-Dec-03 4:09
CillyMe18-Dec-03 4:09 
GeneralRe: Query Optimization - MCAD question. Pin
Jeff Varszegi18-Dec-03 14:49
professionalJeff Varszegi18-Dec-03 14:49 
GeneralRe: Query Optimization - MCAD question. Pin
CillyMe18-Dec-03 16:00
CillyMe18-Dec-03 16:00 
GeneralRe: Query Optimization - MCAD question. Pin
Jeff Varszegi18-Dec-03 17:00
professionalJeff Varszegi18-Dec-03 17:00 

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.