Update To HandHeld Compact SQL DB
May 23, 2011Is there any sample code for me to investigate of below situation?
VB.Net has the dataset which will update the tables of Compact SQL DB in the handheld??
Is there any sample code for me to investigate of below situation?
VB.Net has the dataset which will update the tables of Compact SQL DB in the handheld??
I'm development an application in vb 6.0 with SQLCE but when I try to make an update in a table I recive an error 3251 or -2147217887 (80040e21) [code]...
View 1 RepliesI have an application that I am running on a Panasonic H1 handheld device, that is used at remote locations. I have a database on this device (SQL Server 2005) to help with the data entry process. Because the H1 can be slow (only 2GB ram), when this application starts, I load the data into a global data set. As this data is loading I display a progress bar letting the user know what's going on. This works quite well.
On my main form, the user has the ability to enter data into a text box, and press a button that will open up another form. The data that was entered into the first form's text box will be displayed in the second form's text box with a datagridview below showing results that matched what was typed in. Also, the user does not have to enter any data in the first form's text box, just hit the search button, and all records of the table will be displayed in the second form's datagridview. Then as they start entering data in the second form's text box, any data in the table matching what is entered is displayed.
This is how I am binding the data in the second form's datagridview :
objBS = New BindingSource
objBS.DataSource = g_objDS.Tables("nsi")
dgvSampleID.DataSource = objBS
Now, in the search form, let's say I type '27190' into the text box, only 3 records exist in the SQL Server table therefore only these 3 records will be displayed in my datagridview :
27190-001
27190-002
27190-003
The code to perform this 'auto complete' is in the TextChanged for the text field :objBS.Filter = "sample_id like '" + Me.txtSampleID.Text + "%'"Now, when a I double-click one of the rows, the form closes and the first form then has several fields filled in based on the row selected. When I clear out the text box in the first form, then press the search button, I am expecting to see the entire database in the second form's datagridview. However, what I am seeing is the 3 rows from above.
When I run the app in debug mode, I verify that the 'g_objDS.Tables("nsi")' does in fact have all the records in the table I want to search. Yet when I assign the objBS.datasource = g_objDS.Tables("nsi"), objBS.count = 3, representing the 3 records from above. My question is why am I not seeing the entire database.
I want to develop an application in VB.net for handheld device(Ticket machine in Bus and train).Is it possible to develop in Vb net. Whether i need windows OS in my handheld device or any runtime environment only needed.My hardware is ARM processor.I want to run my application as standalone in my machine.
View 2 RepliesI have put the file under the path below. How to access this file from VB.Net on Desktop program??
My Devicexxxx folderfile.sdf
I'm currently working on an VB.net application using Win forms and SQL Server Express 2008. One of the major functions of our program is to generate work orders for field engineers. These engineers typically work in a factory and have to walk around the factory to complete these work orders doing things such as recording pressures and voltages of certain equipment. Right now they are printing out the work orders and writing down these values then entering them into the computer when they get back from doing the work.
We would like them to have some sort of handheld device we could push their work orders out to that would allow them to enter values/complete work orders and then come back and sync up with our app. Something like an ipod touch or maybe a bit larger seems like a good kind of device. Not really sure what kind of device would work for this and what OS it should run. I'm guessing it will be easiest if I can get something that can run SQL server on it. Also, how would I implement something like this?
I am developing an application which can connect to an ip address to transfer/receive data to the handheld device via gprs network.
View 2 Replieshowever i have always had issues with databases... so i abandoned it and went into web design instead. Php and sql are so easy there is nothing i cant do with them.I created an Sql compact database which i can connect to and navigate using the following code... but that is it. i cant seem to add to db in any way shape or form.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.AddressTableAdapter1.Fill(Me.TestsqlcDataSet1.address)
End Sub
[code]....
Im looking for some advice on the deployment of an application using SQL Compact Edition.My application will only be used by two people on two separate desktops with file sharing enabled.My goal is to deploy the application and have the .sdf file located on one of the desktops in a shared folder. So the other person using the app can connect to that database too.What is the best way to setup the deployment of this so that I can place the DB in lets say c:DBMyDB.sdf
View 5 RepliesHow can I add data to SQL Compact Database from DataGridView?Striving to do my best.
View 2 RepliesI am new to vb 2008 and I can't seem to figure this out.
When I try to add a database to my project I get this error (Please look at .jpg (Firsterror)
I have selected the correct driver SQL Compact 3.5
It will add the database to the project but the FULL PATH is always incorrect and I can't change it. (Please look at my seconderror.jpg) the correct path is C:SQLSample.sdf
I am trying to compact a Access 97 MDB file. I have found and tried the following code
Private Sub CompactDB()
Dim jro As JRO.JetEngine
jro = New JRO.JetEngine()
jro.CompactDatabase("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=<DATAPATH>", _
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=<DATAPATH>;")
MsgBox("Finished Compacting Database!")
End Sub
This codes works and seems to compact the file and it appears in the destination folder but when i try to open the new file i get an error "Unrecognized database format 'DATAPATH'"Is there something i am doing incorrect? the database file sizes range from 5Mb to 100Mb+
I am using Access database. Now i compact the database by using DAO and sometimes using JRO. But to this both, we have add the COM reference.
View 2 RepliesI am trying to set a default datetime for sql compact but I receive an overflow.
Does anyone know the default format for sql compact? I thought it was yyyymmdd
I need to create a sound if validation fails. Anyone know how to do that? It can be a wave file or any kind of format.
How can i create a sound in .net compact framework 2.0. using vb.net. I saw codes asking to use system.media class. However in compact framework there do not seem to have this class.
I want to use MySQL with my mobile phone. I have installed the "MySQL Connector" and use this
Dim conn As New MySql.Data.MySqlClient.MySqlConnection
Dim myConnectionString as String
[CODE]....
My machine has erros with "MySql.Data.MySqlClient.MySqlException" and "MySql.Data.MySqlClient.MySqlConnection"
How can i solve this problem? With the normale Framework i can use MySQL...
I cant understand why sending parameters to insert function works slow in .net compact framework.
Forexample following code inserts within 2 seconds
[Code]...
In Visual Basic 2008 Express with SQL Server Compact 3.5 and the Usual DataSet / TableAdapters, My Query is too long:Changing the names, it is a query like this:
SELECT Table1.*, Table3.*
FROM Table1
INNER JOIN Table2
ON Table1.ID = Table2.T1ID
[code].....
Problem is, Table1 and Table3 have around 10 and 5 columns each, with rather descriptive names, and The Table adapter is insistent on writing all the columns out and therefore hacks off my command. (It won't take * 's, it always says it can't find the column Table1.* )
Is there a way around this?
Its my first time playing with the sql compact edition. I am noticing a difference vs char fields in a normal sql database. I was wondering if someoen can explain to me how to get the 2 to work the 'same'...Here is my issue I am having.
View 2 Repliescan the code below be modified for use with a SQL Server Compact edition DB? Public Function Querymode1(ByVal SpecifiedYear As String) As DataSet
'Dim DBConnection As New System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Jet OLEDB:Database Password=charlyX;Persist Security Info=False;Data Source=c:mydata" & DBName)
Dim DBConnection As New System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Jet OLEDB:Database Password=charlyX;Persist Security Info=False;Data Source=" & Trim$(MitsSetUpFile.MainDataLocation) & "" & MDBName)
[Code]...
In Vb.NET I allways use mdb files to my applications.Now, in this one, I need use the Sql Compact Edition.The code isn't the same to connect to the DB?
I'm using this:
DIM connString As String = "Provider=SQLOLEDB;Data Source=|DataDirectory|SITAC.sdf;Password=abc;Persist Security Info=True"
[code].....
I have the following code which I hoped added a row to my DataGridView and also a record to my database. It does the first part, but not the second.
Dim row As DataRow = Me.CCLogDataSet.tblLog.NewRow()
row("cc_log_contract") = Me.txt_Log_Add_Contract.Text
row("cc_log_registration") = Me.mtb_Log_Add_Registration.Text.ToUpper()
row("cc_log_milage") = Me.txt_Log_Add_Milage.Text
[Code] .....
It seems to be storing the data in memory? As the data in the DataGridView is persistant, even after a Relaunch of the application. However, why I query the database, there are no records in it.
I need a simple embedded database for a relatively small database size (< 100MB, but in most cases < 20MB) and maximum 1-2 concurrent users/connections on average. It must be able to protect/encrypt it's data with a login.
View 4 RepliesI have a compacting subroutine which basically call for MSAccess compacting[code]...
It runs without a problem in VB 2005 IDE, no problem at all. However, when I compiled it, and build the set up, and deploy it. It throws up this exception:
"Could not load file or assembly 'Interop.JRO, Version=2.6.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified."
I'm updating an old VS 2003 project to VS 2010. Part of the application uses the old JRO COM object to compact the database. That seems to be depreciated in 2010.
View 1 RepliesI am looking for some sample code to use in VB2008, in order to compact and repair Microsoft Access MDB files and ACCDB files.
View 1 RepliesAnyone doing anything with VS2010 and the compact framework ? or do we need to go back to VS2005/VS2008 ?
View 1 RepliesI need to replace WebRequestFactory, what is this doing?
Public Shared Sub download_file()
Dim wr As HttpWebRequest = CType(WebRequestFactory.Create("http://www.test.com/test.jpg"), HttpWebRequest)
[Code]....
How can i compact my outlook 2007 pst file?
View 4 RepliesI have an internet available SQL Server 2008 R2 instance that is running normally. Clients connect over the internet from vs 2005 and 2010 desktop applications, without issue. My scan gun application can connect to the local instance (if I'm in my office) but not to the internet instance from my Windows Mobile 5.0 scanning device. Connect string = user id=[Code]. This connection string works fine for the desktop apps. It's not a port issue, I have all the correct ports open.
View 10 Replies