DB/Reporting :: Using XML As A Database
Feb 25, 2011
I don't actually know if I can use any XML file as a database that I can edit and make some changes to it using vb.net 2008 and save them. Because I'm working aboard a war ship and we have a central automatic system to control all the internal communication using standard telephones. to reprogram the extinctions we used to have a MS DOS program and it's so old and now it's totally lost and not found and after a long searching I have found a file that could maintain the extensions and reprogram the system but it's an XML file.
[Code]...
View 1 Replies
ADVERTISEMENT
Apr 21, 2008
I want to move my programs and the database to another computer and hard-disks. It looks to me as though I nearly have to re-create the controls and rewrite some of the code to make it so the programs still work after the move. At least with ODBC all I would change was the DSN definitions external to the programs. Is there an easy way to move or rename a database without loads of work?
View 3 Replies
Mar 30, 2008
I am trying to copy a table from a network database to a local database. I used DAO and could check if the network table existed using a function that tried to assign a TableDef object to the table in question. If there was no error then I assumed that the table existed and the function returned true...Or it would error out and return false.I could then proceed with the copy or not as the case may be.I am converting the code to ADO.net and need to know how to check for a table. [code]
View 1 Replies
Sep 20, 2011
Recently working in vb 2010 express. I'm using service-based database which is based on SQL Server. This database will be deployed at the server. Is it possible that multiple vb.net programs, which are installed in remote computers or client computers in the same network, connect to this database simultaneously? Does the service-based database support multiple connections?
View 1 Replies
Jul 22, 2009
I need to programmatically add a row to a MS Database.How is this done?
View 2 Replies
Jul 10, 2008
I'm using Visual Basic 2008 Express Edition. What I have is an Access database that will have several tables. What I want to do is connect to the database, enter the name of a table in a text box and query that table. The code that I have now is: [Code] I'm not sure how to modify this code so that tablename = whatever I type in the text box.
View 5 Replies
May 26, 2008
I am using SQL server managment express. I have 4 databases in it and got a bug on my computer which I could not get rid of. I saved these to disk and reinstalled windows, I reinstalled SQL server and I am now trying to add my 4 databases. Can any one help me with this, I can add a new database but not an existing.
View 2 Replies
Nov 16, 2009
I have working on a project to add details to a database. I'm having trouble with the connection string, the code is as follows:
Code:
Public Function AddContactToDatabase(ByVal sFirstName As String, ByVal sLastName As String, ByVal sAddress1 As String, ByVal sAddress2 As String, ByVal sAddress3 As String, ByVal sAddress4 As String, ByVal dDOB As Date, ByVal sPhone As String)
[Code]......
View 2 Replies
Jan 24, 2010
[Code]....
Thought I should probably say im using Windows 7 and the 2010 beta Visual studio
View 1 Replies
Feb 4, 2009
Using VB 2008 Express /Using SQL Server Express/Database name is "StopData"/Computer name is "LAPTOP"?Here's what I have.
Code:
Imports System.Data.SqlClient
Public Class frmMain
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[code].....
View 1 Replies
Jan 15, 2012
I have a database app that I wrote in VB6 a while back that uses Access as the backend. I have installed the app on Windows 7 pc's and all works fine....most of the time.On some pc's I see an issue where if I replace, rename, or even remove the DB, my app (b/c of something to do with Windows 7) still sees and reads the information from the old DB. It seems no matter what I do, I cannot "remove" the .mdb file from the system. As one can imagine, this is making it very hard to replace the outdated db with an updated version. I never experienced anything like this running the app in the XP environment.
View 3 Replies
May 18, 2011
below is the coding i want to ask :[code...]
this code is used for login by querying into the database....the logic is like this..it query accoding to the username text box and pass word text box...if there is indeed such rows in the table, then the bacadata.read, else something else happens...i have a few question :
1.is this the right way of login in by checking the row is available or not?
2.is there any enlightment and solution for the appropriate way to login system by using database other than the one teached by my lecturer?
View 2 Replies
Mar 2, 2011
I am trying to use the .net connector within my program. I have got add, delete and update working however cannot get search to work. What I would like the program to do is, you enter a value into a textbox and then press a button. The value in the textbox is searched and then the values in the database corresponding to that value are entered into the other text boxes. This is what I have so far:
Private Sub PrescriberSearch()
pre.SelectCommand = New MySqlCommand("SELECT Name FROM Prescriber WHERE Name =?Name like Name = ?Name")
[code].....
View 8 Replies
Mar 9, 2012
Well my problem is that I have a image stored in a database which is a OLE Object.
My Problem is that I am trying to view the database in Vb (windows form) but the image does not appear.
All I can see is a small red cross where the image should be.
I have tried both Datagrid view and Detail View.
View 2 Replies
Nov 12, 2010
I am developing a software that connects to a database and manipulates product and user data. It works on my computer but it will have to be used by many computers maybe even world wide (who will access the same database) so I have no idea what kind of systems people will have. I still don't know how to ensure that they will be able to connect to the database for I have already had problems in Windows 7 computers which don't have jet oledb.4.0
I am a bit lost here because I don't know if I should first try to do a connect, or if I should first look for a jet oledb engine on the computer where the software is installed. And in case they don't have it installed should I prompt them to install it before running the program further? Or should I pack the engine along with my program? What is the line of thought here to make the program run on (almost) any machine?
View 5 Replies
May 1, 2010
how do I use notepad as a database inside a vb.net program.I am making an athletics database/profile program which will include all school records for each and every student.So what I want to know is, how do I use a notepad file, filled with data, to perform search functions on records (like finding the fastest times in a particular event) and sort functions (assending order of times etc.) and view them on a form.
View 1 Replies
May 23, 2009
i'm using vb 2008 express editor, and 3.5 compact sql, through my program, i make changes, like altering rows, deleting or adding new rows, to a dataset. i want, that when button 1 is pressed, all changes made to that dataset, are updated to my database. what is the line of code that does this? [Code]
View 1 Replies
Sep 29, 2010
---3 laptops running same VB.NET application locally AND access/share same database located on one of these machines. Is this Possible? an easy way? ---OR would the best sollution create a website with database ?
View 1 Replies
Aug 21, 2008
I'm building an aplication with an MS Access database behind the scene. In many of my forms I'm gonna use DataGridViews to show data from the database, not an entire table but data based on manually built queries. So, I have few questions without answers, by now. Solutions or 1. I haven't decided how will I bring the database into the project: from the menu -> Add New Data Source, or within the code, at runtime. I still don't know which one's best or why.2. How exactly can I execute any SQL query (SELECT, INSERT, UPDATE, DELETE etc) on my Access database from my aplication?
View 3 Replies
Dec 3, 2009
i have an ACCESS database with 3 columns. I establish the connection with the VB 2008 Express and put the data in the form but i don't know how to add the text of a textbox in the database.
View 5 Replies
Aug 29, 2009
I installed Visual Studio 2008 and Office Enterprise 2007 in my new computer.I made some codes for a data reader to get data from an Access dabase. On the step where it will open the connection an exception appeared which says "Microsoft.Jet.Oledb.4.0 provider is not registered on the local machine".
View 7 Replies
Apr 28, 2012
I have this code that Deletes a record by its IP address inputted by the user. How do you check if that record is available? how do evaluate first that the IP address inputted is not in the database before deleting anything? in vb 6.0 I used to do this line:If rs.EOF And rs.BF Thenbut it doesn't work anymore in vb 2008
Code:
If TextBox1.Text = "" Then
MsgBox("Input IP Address", MsgBoxStyle.OkOnly, Title:="")
[code]......
View 9 Replies
Aug 27, 2009
I'm trying to query an access database, but my query results only display the first cell of the query results.
For example, if I select 3 columns, 5 rows, only Column 1 Row 1 is displayed. Someone mentioned something about EOF but I can't find EOF code for OleDB. Should I be using another type of connection?;
Code:
Private Sub btnGetReport_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGetReport.Click
Dim StartDate, EndDate As Date
[Code]....
View 1 Replies
Apr 24, 2011
I can connect/login to my database, view a formatted table in the current window, however I want to click a button and see a new table set in a new window. Theoretically I should be still logged in/connection information saved but however I get 'unable to connect to database'.
View 2 Replies
Feb 17, 2009
I have a problem with the connection to my database. It's on a remote server, and this is my code:
[Code]....
View 7 Replies
Mar 27, 2008
Anyone know how to copy a table from one database to another? I know the statement 'INSERT INTO Table1 SELECT * FROM Table2' but I want to copy from one database to another from a server to a PC. Of course, I could do a select statement for all the records and use a loop to insert them one by one, but surely there is an easier way.
View 8 Replies
Nov 19, 2008
I am trying to create a Member database and I am pretty new at vb. I need to be able to set a database query and return only the members that expire in a certain month to a data grid. I would also like the year for the query to be set to the current year so the query doesnt return expirations for the following years. Im not really sure how to even start.
View 5 Replies
Mar 15, 2008
I wanna create an access database programmatically.How should this be done?Do you recommend that I do it via code?I don't know how to create an access 2003 compatible file at run-tim
View 4 Replies
Aug 2, 2009
I'm trying to create a database driven application using VS 2008. I want my database to be generic, i.e it shouldn't rely on the existence of MS Access or similar application. So how do I create such a database, add tables , values..etc?
View 7 Replies
Jan 4, 2009
I am trying to do a very simple demo - load data from an access database and let the user manipulate it with a DataGridView. Here's what I understand so far:1) Create an OleDbDataAdapter by passing it a query and a connection.2) Create a DataSet by calling .Fill() on the DataAdapter with a DataSet object and a name for the retrieved data.3) Attach the DataGridView to the DataSet using the .DataSource property of the DataGridView and the .Tables property of the DataSet.However, I was told there is a much easier way to do it now in vb2008 using TableAdapters.1) Create a DataTableAdapter ( I can't actually find this object -what is it called?)2) Use the Fill method on the DataTableAdapter to connect it to a DataSet3) Now anything the user does in the DataGridView can be saved simply by using TableAdapter.Update.
View 2 Replies