Click here to Skip to main content
16,005,389 members
Home / Discussions / Database
   

Database

 
GeneralRe: DateTime format Pin
Colin Angus Mackay19-Jul-07 4:18
Colin Angus Mackay19-Jul-07 4:18 
GeneralRe: DateTime format Pin
Mike Dimmick19-Jul-07 5:43
Mike Dimmick19-Jul-07 5:43 
Questionreplication Pin
SVb.net19-Jul-07 3:22
SVb.net19-Jul-07 3:22 
Questiondisplay last 4 records in a table Pin
mavii19-Jul-07 2:36
mavii19-Jul-07 2:36 
AnswerRe: display last 4 records in a table Pin
Colin Angus Mackay19-Jul-07 2:39
Colin Angus Mackay19-Jul-07 2:39 
AnswerRe: display last 4 records in a table Pin
Sathesh Sakthivel19-Jul-07 2:40
Sathesh Sakthivel19-Jul-07 2:40 
Questionhow to retrieve data from excel sheet Pin
Farrukh Hussein19-Jul-07 2:27
Farrukh Hussein19-Jul-07 2:27 
AnswerRe: how to retrieve data from excel sheet Pin
Rob Graham19-Jul-07 3:35
Rob Graham19-Jul-07 3:35 
Connect to Excel using ADO (System.Data.Oledb classes for .NET) with the following connection string:

e.g open an OledbConnection using:
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source= \myfilepath\myexcelsheet.xls
;Extended Properties=\"text;HDR=Yes;FMT=Delimited;\";Extended Properties=\"Excel 8.0;\""


Note that HDR =Yes implies the first row in the Excel sheet is to be treated as column names.
If you use HDR=No, the first row is data, and the sheet column names (A,B,C,D...) are used.

Open the worksheet (in a DataReader or a DataAdapter) using a query like this one:
"select my19digitfild from $MyWorksheetName where mymatchfield = mymatchvalue"

Note the $ in $MyWorkHeetName. The $ indicates the "table" name to use is the worksheet tab name (e.g $Sheet1). If you omit the $, it will look for a named rage top determine the 'table'.

Good luck.





Questiondownload mysql (link) Pin
p_19-Jul-07 1:44
p_19-Jul-07 1:44 
AnswerRe: download mysql (link) Pin
Rob Graham19-Jul-07 3:47
Rob Graham19-Jul-07 3:47 
Questionurgent plz Pin
magedhv19-Jul-07 1:41
magedhv19-Jul-07 1:41 
AnswerRe: urgent plz Pin
kubben19-Jul-07 1:45
kubben19-Jul-07 1:45 
GeneralRe: urgent plz Pin
magedhv19-Jul-07 1:50
magedhv19-Jul-07 1:50 
GeneralRe: urgent plz Pin
kubben19-Jul-07 1:56
kubben19-Jul-07 1:56 
GeneralRe: urgent plz Pin
magedhv19-Jul-07 2:14
magedhv19-Jul-07 2:14 
GeneralRe: urgent plz Pin
Pete O'Hanlon19-Jul-07 2:48
mvePete O'Hanlon19-Jul-07 2:48 
AnswerRe: urgent plz Pin
Krish - KP19-Jul-07 2:09
Krish - KP19-Jul-07 2:09 
AnswerTHE RULES Pin
leckey19-Jul-07 4:05
leckey19-Jul-07 4:05 
GeneralRe: THE RULES Pin
Paul Conrad19-Jul-07 8:04
professionalPaul Conrad19-Jul-07 8:04 
GeneralRe: THE RULES Pin
Vasudevan Deepak Kumar19-Jul-07 21:48
Vasudevan Deepak Kumar19-Jul-07 21:48 
AnswerRe: urgent plz Pin
Vasudevan Deepak Kumar19-Jul-07 21:46
Vasudevan Deepak Kumar19-Jul-07 21:46 
QuestionAccess / SQL Server 2000 Write Conflict error Pin
StyleGuide18-Jul-07 22:16
StyleGuide18-Jul-07 22:16 
AnswerRe: Access / SQL Server 2000 Write Conflict error Pin
StyleGuide18-Jul-07 22:51
StyleGuide18-Jul-07 22:51 
Questiongroup by issue Pin
Tauseef A18-Jul-07 21:51
Tauseef A18-Jul-07 21:51 
AnswerRe: group by issue Pin
andyharman18-Jul-07 23:00
professionalandyharman18-Jul-07 23: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.