473,403 Members | 2,270 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Vbnet 2005 and databases + database bug ??

Hi,

I hope to find some information on this way,
I used to develop databases in Access and want to try visual basic VB.net
2005

Could someone help me how to link 2 datagrid like in the first grid I want
to show Customers and the second grid Customers Contacts from Customers.

I also have another question,
Debugging program seems not to work correctly, is this a bug of VS2005?
When by debugging and I makes some changes in the data so then I save the
changes, this changes will not be shown when I debug again
If I try the Exe this will work correctly

Strange!!
Like I remark there are 2 databases copys one in the Bin/Debug and another
in the main dir

By debugging when I save the other database is upgraded
By debugging when I load the database again then I see the data from the
fist database

Hope someone can help me with usefull information,
Marc.
Mar 17 '06 #1
2 1251
On Fri, 17 Mar 2006 08:08:43 +0100, "Marc" <Ap***@village.invalid>
wrote:
Hi,

I hope to find some information on this way,
I used to develop databases in Access and want to try visual basic VB.net
2005

Could someone help me how to link 2 datagrid like in the first grid I want
to show Customers and the second grid Customers Contacts from Customers.

I also have another question,
Debugging program seems not to work correctly, is this a bug of VS2005?
When by debugging and I makes some changes in the data so then I save the
changes, this changes will not be shown when I debug again
If I try the Exe this will work correctly

Strange!!
Like I remark there are 2 databases copys one in the Bin/Debug and another
in the main dir

By debugging when I save the other database is upgraded
By debugging when I load the database again then I see the data from the
fist database

Hope someone can help me with usefull information,
Marc.

From MSDN:
One of the things to know when working with local database files is
that they are treated as any other content files. For desktop
projects, it means that by default, the database file will be copied
to the output folder (aka bin) each time the project is built.

1. If you select local database file in the Solution Explorer window,
you will see a property called ‘Copy to Output’ in the Properties
window. By default it is set to ‘Copy Always’ which means that on each
build, the data files in the project folder will be copied to the
output folder overwriting the existing data files if any. You can set
this property to Copy Never and then manually put a copy of the data
file in the output folder. This way, on subsequent builds, the project
system will leave the datafile in the output folder and not try to
overwrite it with the one from the project. The downside is that you
still have two copies so after you modify the database file using the
app, if you want to work on those changes in the project, you need to
copy it to the project manually and vise-versa.

2. You can leave the data file outside the project and create a
connection to it in Database Explorer. When the IDE asks you to bring
the file into the project, just say no. This way, both the design-time
and the run-time will be using the same data file but the downside is
that the path in the connection string will be hard coded and
therefore it’ll be harder to share the project and deploy the app.
Before deploying the app, just make sure to replace the full path in
the settings with a relative path.

Note: "Copy If Newer" seems a better option if not outside the
project.

Gene

Mar 17 '06 #2
Hi Gene,

Many thanks for your answer.

Best regards
Marc.


"gene kelley" <ok**@by.me> schreef in bericht
news:0o********************************@4ax.com...
On Fri, 17 Mar 2006 08:08:43 +0100, "Marc" <Ap***@village.invalid>
wrote:
Hi,

I hope to find some information on this way,
I used to develop databases in Access and want to try visual basic VB.net
2005

Could someone help me how to link 2 datagrid like in the first grid I want
to show Customers and the second grid Customers Contacts from Customers.

I also have another question,
Debugging program seems not to work correctly, is this a bug of VS2005?
When by debugging and I makes some changes in the data so then I save the
changes, this changes will not be shown when I debug again
If I try the Exe this will work correctly

Strange!!
Like I remark there are 2 databases copys one in the Bin/Debug and another
in the main dir

By debugging when I save the other database is upgraded
By debugging when I load the database again then I see the data from the
fist database

Hope someone can help me with usefull information,
Marc.

From MSDN:
One of the things to know when working with local database files is
that they are treated as any other content files. For desktop
projects, it means that by default, the database file will be copied
to the output folder (aka bin) each time the project is built.

1. If you select local database file in the Solution Explorer window,
you will see a property called 'Copy to Output' in the Properties
window. By default it is set to 'Copy Always' which means that on each
build, the data files in the project folder will be copied to the
output folder overwriting the existing data files if any. You can set
this property to Copy Never and then manually put a copy of the data
file in the output folder. This way, on subsequent builds, the project
system will leave the datafile in the output folder and not try to
overwrite it with the one from the project. The downside is that you
still have two copies so after you modify the database file using the
app, if you want to work on those changes in the project, you need to
copy it to the project manually and vise-versa.

2. You can leave the data file outside the project and create a
connection to it in Database Explorer. When the IDE asks you to bring
the file into the project, just say no. This way, both the design-time
and the run-time will be using the same data file but the downside is
that the path in the connection string will be hard coded and
therefore it'll be harder to share the project and deploy the app.
Before deploying the app, just make sure to replace the full path in
the settings with a relative path.

Note: "Copy If Newer" seems a better option if not outside the
project.

Gene

Mar 17 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: datapro01 | last post by:
I am a DB2 DBA that has been asked to become familiar enough with SQL Server in order to become actively involved in its installation, implementation, and to review database backup/recovery...
2
by: Marc | last post by:
Hi, I hope to find some information on this way, I used to develop databases in Access and want to try visual basic VB.net 2005 Could someone help me how to link 2 datagrid like in the first...
21
by: Peter Nurse | last post by:
I have just upgraded to SQL Server 2005 from SQL Server 2000. In Microsoft SQL Server Management Studio, when I click on database properties, I receive the following error:- Cannot resolve the...
9
by: HC | last post by:
Hello, all, I started out thinking my problems were elsewhere but as I have worked through this I have isolated my problem, currently, as a difference between MSDE and SQL Express 2005 (I'll just...
9
by: =?Utf-8?B?RnJpdHo=?= | last post by:
Hi all, I am having the following problems in getting Microsoft Visual Studio 2005 Professional to link to an Access .mdb database. Please help me to sort this out. Problem 1: ======= The...
5
by: Icemokka | last post by:
Hi, We have a SQL-cluster with over 6300 databases, most of them pretty small in size and usage. For this reason all these databases are on auto-close ( Otherwise SQL would need many many...
1
by: Steve | last post by:
Hi; My company just installed MS SQLServer 2005 ( see below the dotted line ). When a user logs into management studio all of the databases on the server are displayed in the right hand...
0
Coldfire
by: Coldfire | last post by:
Since i cannot show the differences in a two-column like table. I am first putting MS SQL Server 2005 and then MySQL 5.x. MS SQL Server 2005 Brief Overview - SQL Server is a full-fledged...
9
by: dpatel75 | last post by:
I am trying to copy a database from a SQL 2000 SP3 Windows 2000 server to a 2005 SP2 Windows 2003 server. I am trying to use detach and attach method (have tried both within Management Studio and...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
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,...
0
jinu1996
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...
0
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...
0
agi2029
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,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.