what's the client pc requirements for a VB.net using access database - database

does the client pc need to install anything for runing a VB.net application with access database ? (like microsoft office or something else ?)

Yes they do. If they have MS Access, then no further tools are required. Otherwise they will need to install AccessDatabaseEngine.exe to handle the database operations. You can download that from Microsoft.

I'm currently making a VB.net application to run with Access and have had to install AccessDatabaseEngine.exe ect.
Helpful website that I've since saved which contains all the downloads you'll need:
https://social.msdn.microsoft.com/Forums/...

When you are using ADO.NET and have selected the Assembly in the dependencies it will be part of the .NET Framework. Sometimes older Applications do need the Microsoft JET Driver copied into the windows directory. Do you have an error message?

Related

How to avoid ODBC driver installation for a Node.js application?

I'm using https://www.npmjs.org/package/odbc in an application targeting Windows.
Therefore it requires users to install Microsoft ODBC driver for SQL Server located here, which is a problem if the user doesn't have admin rights.
Any workaround?
You can use another system for databases, mongoDB, sqlite, etc. if your application is simply, i recommend sqlite

Lightswitch prerequisites on ASP.NET webserver

I am trying to deploy a LightSwitch application to a hosted ASP.NET webserver in my company. The application access data stored on a SQL Server. My webserver admin is asking me if there are any special prerequisites needed for it to run. I've been reviewing the deployment guide
http://blogs.msdn.com/b/bethmassi/archive/2010/09/23/configuring-a-machine-to-host-a-3-tier-lightswitch-application.aspx
The article lists that there was a server component, but that it might change when RTM arrived:
NOTE: The team is looking at simplifying this process and possibly making the LightSwitch server component pre-reqs go away so this process will likely change for RTM.
This other MSDN article states that there are prerequisites.
http://msdn.microsoft.com/en-us/library/gg481779.aspx
My webserver admin keeps saying there's nothing to install on the ASP.NET web server other than .NET 4.0.
Am I missing something?
Server setup procedures haven't changed since Beta 1 (although of course the runtime has changed). It's pretty simple; the prerequisites article that you cited has the correct information. Basically the process is:
Install the Web Platform Installer if you don't already have it installed
Fire up the WPI and search for the LightSwitch runtime
Install!
As mentioned in the article, you'll need to decide whether you want to install a new instance of SQL Server locally with the prerequisites. If you've already planned for a production SQL Server, you'll want to choose the "without local SQL" option.
I don't have a specific answer, but I would stand up a VM with the appropriate version of windows server on it and run through an install on a do novo machine. Should confirm or deny what your server admin says . . .

What is a way to access .accdb files for reading and writing?

I have an Microsoft Access Database (.accdb) that stores information needed in an application.
Is there a way to distribute my application with the access database without having the user have access installed or get the user to go and download and install the office runtime?
The windows form application that uses the access database is developed in VB.net in Visual Studio 2008.
An installation of Access is not needed. Your installation should include all the necessary files to interact with the accdb file.
Are you using something other than .NET Framework Data Provider for OLE DB?

Embedding SQL Server into a .NET application

Hey, I've just finished writing a VB.NET application. Now I want to package the executable and the database ofcourse into a single installer file. I tried using QSetup, InstallShield to make SQL Server embedded into the setup file, and finally after hours of try&fail I have no idea. Anyone?
You can do a rightmouse on the properties of your Visual Studio Setup Project, and then there is this button 'Prerequisites'. There you can tick 'SQL Server Express ...' Or the 'SQL Server Compact 3.5'
link to image
You're probably best off just to set the connection file directly to the mdf, and attach it when the program is run. This is easier as it doesn't require a custom setup script to install the database to the database directory itself.
Note: Consider using the Compact Version, it's smaller, people don't like a full blown engine on their computer :)
InstallShield has a concept called Setup Prerequisites where you can teach it how to install additional packages along with your own. In older versions this would happen before calling your MSI. In newer versions you can have a "Feature" prerequisite where the prereq can associated to a feature and only installed if that feature is selected to be installed and after it's been selected but still before the main activity of your MSI occurs during the install execute sequence.
InstallShield also has a pattern for executing SQL scripts against your database instance so that you can then load your database into your newly installed instance.
All of this is quite powerful but it does take a bit of digging to learn.
As far as I know, anything but the SQL Server Compact Edition (SQL Server CE) cannot be embedded into your setup, really. Microsoft doesn't want that - you need to have SQL Server Express installed separately - any other edition can't even be shipped with your software (the client must have a license and installation separately).
You can indeed distribute SQL server with your custom application:
http://msdn.microsoft.com/en-us/library/bb264562(SQL.90).aspx

What is Microsoft SQL server and why do I need to install it?

All I want to install is visual web developer (but I've had this issue with other things like visual C# to), so when I choose to install just that from microsoft web platform, it wants to download that, under 3mb, and SQL server (dependency it says,) 100mb. I've seen lots of computers with SQL server installed, does it come with all windows distributions? Do many other applications use it to work? Should I just install it if part of visual studio wants me to? When it asks me to make an administrator account and password for it, should I just type in whatever to get it to install as I won't be using it directly?
What is it?
It is a database system.
does it come with all windows
distributions?
No.
Do many other applications use it to
work?
Yes.
Should I just install it if part of
visual studio wants me to?
Yes. It will hook everything up for you to a copy of SQL Server Express, so no further configuration will be required to make it work.
When it asks me to make an
administrator account and password for
it, should I just type in whatever to
get it to install as I won't be using
it directly?
Yes. Remember the user name and password for later use, but you will probably be using Windows Authentication to access SQL Server on your own machine, so you won't need this user name and password on a regular basis.
The reason it is installed along with Visual Studio is because SQL Server is a database system for storing data, and many developers these days are writing applications that work with databases, so the developer often needs a SQL Server installed so that he has a database system to develop and test against. So in a nutshell, if you were writing such an application, you would already know what it is, and would know that you need it. Which is why OrbMan said "If you don't know what it is, you don't need it."
If you get in the mood to learn something new though, I would highly recommend reading about SQL and SQL Server. It is used alot in the real world.

Resources