im developing a project where i have to read a single database file (.db) from the directory "personal" in a PDA, im using smart device vb.net and i dont know if there's a way to read that single database file, i would post here what i've tried but unfortunately i haven't found anything, if there's a way i would be very happy, thanks!
-Visual Studio 2008
- VIsual Basic SmartDevice
- Target: Windows Mobile 2003 Pocket PC.
In the case that it cant be done, is there a way to read a single database file, i mean, if it can't be done with .db, is there another kind of database file that the program can read just that one, in the directory "\personal\mydatabase.db"
System.data.SQLite included a compact framework version
http://system.data.sqlite.org/index.html/doc/trunk/www/index.wiki
You will need to instal SQL CE 3.5 on the device and the sdk on the Computer.
(When you install the sdk, this will create a folder with all the cab files you will need)
You Can Download it Here http://www.microsoft.com/en-us/download/details.aspx?id=12264
Related
I created my project with ms access database and it worked well in the visual studio environment. When I created an installation file/set up and installed it, the system is no longer saving data into the database. How can i overcome this problem?
First of all, check if database is working and linked properly?
2nd, If your User Interface is developed in .Net?
3rd, Use InstallShield to compress your Application data to install it.
I have a new .net Core 2.0 Web API project (In Visual Studio 2017 Version 15.3.5) where I can´t build the solution if I add a new database project.
error MSB4019: The imported project "C:\Program Files\dotnet\sdk\2.0.0\Microsoft\VisualStudio\v11.0\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.
I have tried all kinds of solutions
Installed almost everything missing from the Visual Studio Installer
Installed Visual Studio Build Tools 2017
Repaired Visual Studio
Without luck I tried to find Microsoft.Data.Tools.Schema.SqlTasks.targets file on C:\ to the add reference to it in the project file (I then don´t know if that works while building the solution in VSTS).
So why can I add a database project to a normal API project and everything works just fine but not to a .net core one?
Do database projects not work with .net Core? I have searched for information on this but sorry I just can´t find it.
I´m not sure what to do. Hope somebody can help.
Ok I managed to find the Microsoft.Data.Tools.Schema.SqlTasks.targets file on my computer.
I then needed to unload the project and edit it
There I changed this line
<SSDTExists Condition="Exists('$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets')">True</SSDTExists>
to the hardcoded path of my file
<SSDTExists Condition="Exists('C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets')">True</SSDTExists>
And now it builds on my computer and on VSTS.
But why this is like this I don´t know.
I was having the exact same issue building a SQL Server project on an Azure DevOps CI/CD pipeline, and locally on VS Code. On Azure DevOps none of the pre-built build tasks would work for me, and locally I could only compile the SQL Server project on Visual Studio, which was annoying. Your solution didn't work for me, after doing what you suggest, I would get a .dll missing error, related with the first error.
I solved this by avoiding to add a SQL Server project to the solution.
I achieved this by using an MSBuild SDK, capable of producing a SQL Server Data-Tier Application package (.dacpac) from the set of SQL scripts. By adding this second project to the solution, I managed to continue taking advantage of linking the project to a live database through SQL Server Object Explorer on Visual Studio. I gave a more detailed explanation about my implementation in this answer.
I created a vb.net project and I used SQL Server Compact Edition as my database. Now I want to create an installer for it, for installing on different PCs.
Does it require to install Visual Studio on the client PC? How should I create installer which will include that database file?
Sorry for my bad English.
Please help.
Thank you in advance.
This msdn link shows how to do it:
https://msdn.microsoft.com/en-us/library/aa983326.aspx
There are 2 parts to it:
Deploy the database file. This can be done by setting the file to copy local always and updating your connection string to point to this.
Deploy the sqlserverce dll's. Follow the instructions in the msdn link which will copy the 7 dll's locally. This means you don't have to install sqlserverce on the individual pcs.
When I try to connect a TSQLConnection with MSSQLConnection it returns dbxmss.dll missing.
There is no such dll in all of my C: drive (I checked also ...\bin\ folder)
I've already uninstalled and reinstalled Delphi (XE4).
And, after that, it is still missing.
The table was created with Microsoft SQL Server 2012 (v11.0.3128.0) Management Studio.
Am I doing something wrong?
It appears you're using a Professional or lower SKU of RAD Studio. The lower editions don't come with drivers for SQL Server or Oracle for DBExpress.
You'll need to switch to using ADO (via the components in the dbGo component palette page), upgrade to a higher SKU (Enterprise or Architect), or find a third-party dbExpress driver to use instead.
Download Zip folder
Extract libmysql.dll, Place it in the folder "C:\Program Files (x86)\Embarcadero\RAD Studio\9.0\bin64
As in title I'm having problem with my VB project when I change its .NET Framework from 4.5.1 in which I have application written to v4 which is supported on windowsXP. When I make the change and try to compile my program database could not be found. Should I make any extra changes in project properties or why database could not be found?
Thank you for help!
The Jet engine is not supported on 64bit machines. I know it is crazy but it's true. Not sure what MS Access uses on 64Bit, must be something else.
Jet on 64Bit
Some places say it's not going to be supported, others say it is part of Office 2010 install and you can download a seperate driver.
I ran into this when deploying a web app to our 64Bit server and just found a way around using MS Access for our report server. Got luck.