PC Review


Reply
Thread Tools Rate Thread

C#, Excel and Access

 
 
R.A.F.
Guest
Posts: n/a
 
      22nd Nov 2007
Hi,

I have a dilema now regarding usage of Excel.

I do not have access to main DB (MS SQL), i only get a simple excel file
with particular data with which i must work.
as i want to use "as database", i was wondering if it is better to do
all queries (select ...) on this excel file or if it is better to export
all data to 1 mdb file (access) and to work with this mdb.

the excel file is generated once per week.
so what do you think about that ?

thx,

RAF
 
Reply With Quote
 
 
 
 
Marc Gravell
Guest
Posts: n/a
 
      22nd Nov 2007
Actually, I would use SQL Express 2005, which is free and much better-
featured than Access files. It shoud be able to easily handle the
volume.

You should be able to use SqlBulkCopy from C# to get the data into the
db efficiently, and once there you can use indexing and full-strength
T-SQL to query the data.

Marc
 
Reply With Quote
 
R.A.F.
Guest
Posts: n/a
 
      22nd Nov 2007
thx Marc, but what if i do not want to use SQL express ?
i know that it is free till 4 Gb data, but i do not want to make it more
complex as it is already :-)

moreover, this little C# application should be, later on, used by
several other people so i would like to be sure it does not need any
other server, or application.

RAF

Marc Gravell wrote:
> Actually, I would use SQL Express 2005, which is free and much better-
> featured than Access files. It shoud be able to easily handle the
> volume.
>
> You should be able to use SqlBulkCopy from C# to get the data into the
> db efficiently, and once there you can use indexing and full-strength
> T-SQL to query the data.
>
> Marc
>

 
Reply With Quote
 
Marc Gravell
Guest
Posts: n/a
 
      22nd Nov 2007
> thx Marc, but what if i do not want to use SQL express ?

Then it sounds like you have already made your decision...

> should be, later on, used by several other people


do they need to update the same file, or it is readonly? If multi-user
editing, Excel is not very practical anyway, so that leaves options
like Access etc. If you can't deploy either SQL Server Compact Edition
or SQL Server Express Edition then you are quite limited, so mdb may
be your only option, but I wouldn't (by choice) go down that road
myself.

Marc
 
Reply With Quote
 
R.A.F.
Guest
Posts: n/a
 
      23rd Nov 2007
Hi Marc,

basically this XLS file is only an output from SQL server. So nobody
will update it ... it's only an output.
i do not want to install a SQL server because i think it would be too
much work just for a simple excel file rework.
it would be like reinvent hot water...

my application only needs to do some simple : select xx from yy where
name=%or%; for example.
nothing more.

so still better choice access than excel for that ?

RAF

> do they need to update the same file, or it is readonly? If multi-user
> editing, Excel is not very practical anyway, so that leaves options
> like Access etc. If you can't deploy either SQL Server Compact Edition
> or SQL Server Express Edition then you are quite limited, so mdb may
> be your only option, but I wouldn't (by choice) go down that road
> myself.
>
> Marc
>

 
Reply With Quote
 
Marc Gravell
Guest
Posts: n/a
 
      23rd Nov 2007
> basically this XLS file is only an output from SQL server
Seriously? Why not just use csv/tsv and simplify things?

> nobody\will update it ... it's only an output

That keeps life simple

> my application only needs to do some simple : select xx from yy
> where name=%or%; for example.

Well, in the name of simplicity you could try it "as is" with whatever
works. However, if the complexity grows much you will find that
performance startes to suffer. If you can use mdb, then fine - give it
a whirl.

> so still better choice access than excel for that ?

Well Excel is a spreadsheet UI application, and you need a database,
so yes: any of the options (Access, SQL Server Express / Compact
Edition) would have advantages. If you just mean looking at the file
(not via Excel itself) then again, fine, but this is what databases
are designed to do well.

In the end it is a trade-off; do you need the simplest possible
deployment, or do you need the performance/feature advantages of a
database engine (which can still be deployed pretty easily via the
setup options in VS). Only you know the full situation...

Marc

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel To Access: Transfer multiple rows from excel to access sam Microsoft Excel Programming 0 20th Jan 2010 09:51 PM
Access Speakers wanted - 2007 Access / Excel User Conferences Damon Longworth Microsoft Access 1 21st Aug 2006 05:01 AM
export access to excel. change access & update excel at same time =?Utf-8?B?ZmFzdGNhcg==?= Microsoft Excel Misc 0 24th Jun 2005 09:27 PM
Closing Excel files from Access and/or quitting Excel from Access Beverly Microsoft Access VBA Modules 1 11th Oct 2003 06:49 PM
Importing excel into access - want access to update data supplied from excel Deborah Microsoft Access External Data 1 30th Jul 2003 01:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:36 AM.