473,387 Members | 1,501 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

C# ACCESS database help

I've got a simple database that I need to create, and then I'll probably use
something like a data grid to display to users. It won't be anything major,
a few tables, maybe one relation, then just display, add, and delete.
Since I've never delt with anything that involves a DB, I have been looking
at alot of different C# books that have chapters on C# and database's. My
question is that I notice everything assumes I've got a SQL serve which is
fine, since it comes with VS 2005 so I could easily follow along with those
example, but when I go to deploy this to my users, in which the Database and
user interface will be installed onto the users PC, will it work, since I
wrote this with SQL?

I could easily get away with ACCESS and Jet database connections but
knowing nothing about databases, deleting cells, adding cells I find it hard
to find any good examples.

Anyone know of any good examples, books, tutorials that would talk about
such a thing?

Thanks ahead of time.

Apr 6 '07 #1
5 2593
Jason,

Whatever you do, I implore you to not use Access. Yes, it's a personal
opinion, but I really don't find it useful for anything really.

Instead, use SQL Server Express. It is free, and you can deploy it to
all your users. The great thing about that is that if you decide to upgrade
the server to SQL Server, the code doesn't have to change.

However, if you have multiple users, are you sure you want to have
individual databases on each machine? Why not use SQL Server with the data
in one central place?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Jason" <so*****@ms.netwrote in message
news:eT**************@TK2MSFTNGP03.phx.gbl...
I've got a simple database that I need to create, and then I'll probably
use something like a data grid to display to users. It won't be anything
major, a few tables, maybe one relation, then just display, add, and
delete. Since I've never delt with anything that involves a DB, I have
been looking at alot of different C# books that have chapters on C# and
database's. My question is that I notice everything assumes I've got a
SQL serve which is fine, since it comes with VS 2005 so I could easily
follow along with those example, but when I go to deploy this to my users,
in which the Database and user interface will be installed onto the users
PC, will it work, since I wrote this with SQL?

I could easily get away with ACCESS and Jet database connections but
knowing nothing about databases, deleting cells, adding cells I find it
hard to find any good examples.

Anyone know of any good examples, books, tutorials that would talk about
such a thing?

Thanks ahead of time.

Apr 7 '07 #2
Hello

I don't work in I.T. at my company, and I don't want to get them involved
for a very small project. A SQL would have to reside on the network, which
is in I.T.'s control.

So, if I do decide to use SQL, can I deploy SQL EXPRESS as part of the MSI
that would install the DB?
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote in
message news:%2****************@TK2MSFTNGP03.phx.gbl...
Jason,

Whatever you do, I implore you to not use Access. Yes, it's a personal
opinion, but I really don't find it useful for anything really.

Instead, use SQL Server Express. It is free, and you can deploy it to
all your users. The great thing about that is that if you decide to
upgrade the server to SQL Server, the code doesn't have to change.

However, if you have multiple users, are you sure you want to have
individual databases on each machine? Why not use SQL Server with the
data in one central place?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Jason" <so*****@ms.netwrote in message
news:eT**************@TK2MSFTNGP03.phx.gbl...
>I've got a simple database that I need to create, and then I'll probably
use something like a data grid to display to users. It won't be anything
major, a few tables, maybe one relation, then just display, add, and
delete. Since I've never delt with anything that involves a DB, I have
been looking at alot of different C# books that have chapters on C# and
database's. My question is that I notice everything assumes I've got a
SQL serve which is fine, since it comes with VS 2005 so I could easily
follow along with those example, but when I go to deploy this to my
users, in which the Database and user interface will be installed onto
the users PC, will it work, since I wrote this with SQL?

I could easily get away with ACCESS and Jet database connections but
knowing nothing about databases, deleting cells, adding cells I find it
hard to find any good examples.

Anyone know of any good examples, books, tutorials that would talk about
such a thing?

Thanks ahead of time.


Apr 7 '07 #3
Jason wrote:
I've got a simple database that I need to create, and then I'll probably use
something like a data grid to display to users. It won't be anything major,
a few tables, maybe one relation, then just display, add, and delete.
Since I've never delt with anything that involves a DB, I have been looking
at alot of different C# books that have chapters on C# and database's. My
question is that I notice everything assumes I've got a SQL serve which is
fine, since it comes with VS 2005 so I could easily follow along with those
example, but when I go to deploy this to my users, in which the Database and
user interface will be installed onto the users PC, will it work, since I
wrote this with SQL?

I could easily get away with ACCESS and Jet database connections but
knowing nothing about databases, deleting cells, adding cells I find it hard
to find any good examples.

Anyone know of any good examples, books, tutorials that would talk about
such a thing?
Find a general tutorial on ADO.NET and another on SQL.

Do not worry so much if it is using SQLServer examples.

For simple stuff the difference between SQLServer and Access is:
- SQLServer classnames are SqlXxxx and Access classnames are OleDbXxxx
- you import System.Data.SQLClient and System.Data.OleDb respectively
- different connection string

The basic technique is the same.

Arne
Apr 7 '07 #4
"Jason" <so*****@ms.netwrote in message
news:OC**************@TK2MSFTNGP05.phx.gbl...
I don't work in I.T. at my company, and I don't want to get them involved
for a very small project. A SQL would have to reside on the network,
which is in I.T.'s control.
http://www.microsoft.com/sql/edition...t/default.mspx
Apr 7 '07 #5
Thanks

Over the weekend, I was looking at a C# cookbook and saw an example that
went was in SQL the author went through the same example and made a few
changes for ODBC.
"Arne Vajhøj" <ar**@vajhoej.dkwrote in message
news:46***********************@news.sunsite.dk...
Jason wrote:
>I've got a simple database that I need to create, and then I'll probably
use something like a data grid to display to users. It won't be anything
major, a few tables, maybe one relation, then just display, add, and
delete. Since I've never delt with anything that involves a DB, I have
been looking at alot of different C# books that have chapters on C# and
database's. My question is that I notice everything assumes I've got a
SQL serve which is fine, since it comes with VS 2005 so I could easily
follow along with those example, but when I go to deploy this to my
users, in which the Database and user interface will be installed onto
the users PC, will it work, since I wrote this with SQL?

I could easily get away with ACCESS and Jet database connections but
knowing nothing about databases, deleting cells, adding cells I find it
hard to find any good examples.

Anyone know of any good examples, books, tutorials that would talk about
such a thing?

Find a general tutorial on ADO.NET and another on SQL.

Do not worry so much if it is using SQLServer examples.

For simple stuff the difference between SQLServer and Access is:
- SQLServer classnames are SqlXxxx and Access classnames are OleDbXxxx
- you import System.Data.SQLClient and System.Data.OleDb respectively
- different connection string

The basic technique is the same.

Arne

Apr 9 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: cooldv | last post by:
i am running a website on Windows 2000 server with ASP 3 webpages and Access 2000 database. (with a hosting company) traffic is slow at this time but expect to grow. lately i have been reading...
4
by: intl04 | last post by:
How do I create a data input form in Access that is external to the Access database to which it's connected (if that's possible, which I believe it is)? For example, if someone clicks on an Access...
49
by: Yannick Turgeon | last post by:
Hello, We are in the process of examining our current main application. We have to do some major changes and, in the process, are questionning/validating the use of MS Access as front-end. The...
5
by: Bec | last post by:
I'm in desperate need of your help.. I need to build an access database and have NO idea how to do this.. Not even where to start.. It IS for school, and am not asking anyone to do my...
52
by: Neil | last post by:
We are running an Access 2000 MDB with a SQL 7 back end. Our network guy is upgrading to Windows Server 2003 and wants to upgrade Office and SQL Server at the same time. We're moving to SQL Server...
15
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
7
by: Cheryl Langdon | last post by:
Does anyone know if there is a way to globally turn off ALL control tips in Access 2003 using VBA code? Thanks. --- CL
17
by: Mell via AccessMonster.com | last post by:
Is there a way to find out where an application was created from? i.e. - work or home i.e. - if application sits on a (work) server/network, the IT people know the application is sitting...
9
by: Wayne Smith | last post by:
I've come up against a major headache that I can't seem to find a solution for but I'm sure there must be a workaround and I would really be grateful of any help. I'm currently building a web...
18
by: surfrat_ | last post by:
Hi, I am having the following problems in getting Microsoft Visual Studio 2005 Professional to link to an Access .mdb database. Please help me to sort this out. Problem 1: The Microsoft...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.