I'm using a mysql database and connecting my vb.net program to the DB over a
network connection. i would like to bring this data over to a vb.net random
access file. does anyone know how to convert my DB into a binary file? and
how to convert my code to use a file instead of the db? 3 2359
Hi,
If you store the data in random access file you will lose the
ability to query the data. I think it might be better to install a copy of
mysql on your local machine and making a local copy of the database to work
with. My Sql is open source and can be downloaded from dev.mysql.com.
Another option is move the database to sql express which is also free from
microsoft.
Ken
---------------
"VB.NET" wrote: I'm using a mysql database and connecting my vb.net program to the DB over a network connection. i would like to bring this data over to a vb.net random access file. does anyone know how to convert my DB into a binary file? and how to convert my code to use a file instead of the db?
"Ken Tucker [MVP]" <Ke**********@d iscussions.micr osoft.com> wrote in message
news:DC******** *************** ***********@mic rosoft.com... Hi,
If you store the data in random access file you will lose the ability to query the data. I think it might be better to install a copy of mysql on your local machine and making a local copy of the database to work with. My Sql is open source and can be downloaded from dev.mysql.com. Another option is move the database to sql express which is also free from microsoft.
Ken ---------------
"VB.NET" wrote:
I'm using a mysql database and connecting my vb.net program to the DB over a network connection. i would like to bring this data over to a vb.net random access file. does anyone know how to convert my DB into a binary file? and how to convert my code to use a file instead of the db?
Is there any way to hold data, and do queries on it, but make it file based,
so the data can be transported w/ the program?
Hi,
You have a couple of options here. First you could move the data
to an access database. Access is a file based database which does not
require any database server to be installed.
Sql express is a free version of sql server 2005 which will allow
you to attached a database file to the server. The computer running the
application is required to have sql express installed. http://msdn.microsoft.com/sql/expres...lexcustapp.asp
LINQ is a preview to a new techology to be offered in the next
version of visual basic which will allow you to query classes. You could
create a class which contains all the data in the database and store it in a
file. Understand this is a early beta and there is no guarantee that code
you write now will still work when LINQ is released. Here is a link to info
on LINQ. (I recommend you install betas on virtual pc or virtual server) http://msdn.microsoft.com/netframework/future/linq/
Ken
--------------------
"VB.NET" wrote: "Ken Tucker [MVP]" <Ke**********@d iscussions.micr osoft.com> wrote in message news:DC******** *************** ***********@mic rosoft.com... Hi,
If you store the data in random access file you will lose the ability to query the data. I think it might be better to install a copy of mysql on your local machine and making a local copy of the database to work with. My Sql is open source and can be downloaded from dev.mysql.com. Another option is move the database to sql express which is also free from microsoft.
Ken ---------------
"VB.NET" wrote:
I'm using a mysql database and connecting my vb.net program to the DB over a network connection. i would like to bring this data over to a vb.net random access file. does anyone know how to convert my DB into a binary file? and how to convert my code to use a file instead of the db?
Is there any way to hold data, and do queries on it, but make it file based, so the data can be transported w/ the program? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: dave |
last post by:
Hello there,
I am at my wit's end ! I have used the following script succesfully to
upload an image to my web space. But what I really want to be able to do is
to update an existing record in a table in MySQL with the path & filename to
the image.
I have successfully uploaded and performed an update query on the database,
but the problem I have is I cannot retain the primary key field in a
variable which is then used in a SQL update...
|
by: Laphan |
last post by:
Hi All
I know this is my 2nd (and final) cross-post, but which NG should I use for
the below.
I want to create a game that queries and updates text and numeric stats on a
regular basis, so I'm looking for a data file method that allows me to query
and update the file from a VB app.
I use MS Access/ASP on a daily basis and was hoping to use this knowledge to
|
by: Mike Chirico |
last post by:
Interesting Things to Know about MySQL
Mike Chirico (mchirico@users.sourceforge.net)
Copyright (GPU Free Documentation License) 2004
Last Updated: Mon Jun 7 10:37:28 EDT 2004
The latest version of this document can be found at:
http://prdownloads.sourceforge.net/souptonuts/README_mysql.txt?download
|
by: Kyle Teague |
last post by:
What would give better performance, serializing a multidimensional array
and storing it in a single entry in a table or storing each element of
the array in a separate table and associating the entries with the entry
in the other table?
Having a separate table would result in two queries instead of one, but
you wouldn't have to deal with the overhead of serializing and
unserializing data.
-- Kyle
|
by: (PeteCresswell) |
last post by:
User wants to go this route instead of storing pointers in the DB and the
documents outside.
Only time I tried it was with only MS Word docs - and that was a loooong time
ago - and it seemed to me like there were performance issues at the time.
How about the different types? The MS docs I would expect Access to
differentiate and handle appropriately (i.e. .DOC and .XLS).. but how about
..PDF? and can I stash a .TXT document in the...
| |
by: Kevin Killion |
last post by:
I've recently features to a system by making use of some simple MySQL
access routines. It works fine at most test locations, correctkly
accessing a MySQL database on an internet server.
However, at certain test sites, I cannot access the database. We're
online, and I can access web files, for example. But when trying to say
hello to that MySQL database, the program fails at the
"mysql_real_connect" call. The message is "Can't connect...
|
by: Martin Jørgensen |
last post by:
Hi,
I'm reading a number of double values from a file. It's a 2D-array:
1 2 3 4 5 6 7
-------------
1 3.2
2 0 2.1
3 9.3
4
|
by: alf |
last post by:
Hi,
is it possible that due to OS crash or mysql itself crash or some e.g.
SCSI failure to lose all the data stored in the table (let's say million
of 1KB rows). In other words what is the worst case scenario for MyISAM
backend?
Also is it possible to not to lose data but get them corrupted?
|
by: up2trouble |
last post by:
I wrote a program to generate a random code that the user would use to
gain access to a survey page. I got the code to generate fine;
however it will not store into the db. It gave me the generated code
then:
************************
hn3fXAaah1
Query failed cause: You have an error in your SQL syntax; check the
manual that corresponds to your MySQL server version for the right
syntax to use near '' '' at line 1
************************
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |