Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

VB 2008 Professional and SQL Express Questions

 
   Database Help (Home) -> Visual Basic -> ADO RSS
Next:  Completely new, please forgive me!  
Author Message
peter.taslimi

External


Since: Feb 17, 2008
Posts: 1



(Msg. 1) Posted: Sun Feb 17, 2008 5:44 pm
Post subject: VB 2008 Professional and SQL Express Questions
Archived from groups: microsoft>public>vb>database>ado (more info?)

I am a beginner and having difficulty understanding some database connection
related issues. I started off with VB Express 2005/2008 and have moved to VB
2008 Professional (The trial edition currently).

1. In VB Express when connecting to a database I was given a choice as to
whether I wanted a copy in my local project directory. It seems that in VB
2008 one is not given a dialog to choose and instead one has to select
whether connecting to a database or attaching a database. Is this correct?

2. If 1) above is true, then there are two choices. Connect directly to the
database or attach to the database which creates a local connection under
the project directory.

3. If one connects directly to the database and enters sample data, then the
id counter can only be reset with an sql query statement or by deleting the
id field and re-entering it. I am not sure whether the dataset gets updated
at this point? or whether one has to delete the dataset and create it again
using the wizard?

4. If one attaches to the local project directory database and any changes
are required to the column structures, then this is the process I have gone
through :
Fix the field in SSME.
Detach the database, so that it can be copied to the project directory.
(Otherwise one is allowed to copy).
Copy the database to the project directory.
Recreate the dataset
build the project again
Run debug to see if it works.

I am sure there must be an easier way to deal with this and probably because
I just don't get the whole concept. Any explanations or related links would
be much appreciated..

Peter

 >> Stay informed about: VB 2008 Professional and SQL Express Questions 
Back to top
Login to vote
Ralph

External


Since: Jan 28, 2008
Posts: 34



(Msg. 2) Posted: Sun Feb 17, 2008 7:45 pm
Post subject: Re: VB 2008 Professional and SQL Express Questions [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

wrote in message

> I am a beginner and having difficulty understanding some database
connection
> related issues. I started off with VB Express 2005/2008 and have moved to
VB
> 2008 Professional (The trial edition currently).
>
> 1. In VB Express when connecting to a database I was given a choice as to
> whether I wanted a copy in my local project directory. It seems that in VB
> 2008 one is not given a dialog to choose and instead one has to select
> whether connecting to a database or attaching a database. Is this correct?
>
> 2. If 1) above is true, then there are two choices. Connect directly to
the
> database or attach to the database which creates a local connection under
> the project directory.
>
> 3. If one connects directly to the database and enters sample data, then
the
> id counter can only be reset with an sql query statement or by deleting
the
> id field and re-entering it. I am not sure whether the dataset gets
updated
> at this point? or whether one has to delete the dataset and create it
again
> using the wizard?
>
> 4. If one attaches to the local project directory database and any changes
> are required to the column structures, then this is the process I have
gone
> through :
> Fix the field in SSME.
> Detach the database, so that it can be copied to the project
directory.
> (Otherwise one is allowed to copy).
> Copy the database to the project directory.
> Recreate the dataset
> build the project again
> Run debug to see if it works.
>
> I am sure there must be an easier way to deal with this and probably
because
> I just don't get the whole concept. Any explanations or related links
would
> be much appreciated..
>
> Peter
>

You need to post to a "dotNet" newsgroup. Try one of the following...

microsoft.public.dotnet.languages.vb
microsoft.public.dotnet.languages.vb.data
microsoft.public.dotnet.framework.adonet
microsoft.public.vstudio.general
microsoft.public.vstudio.setup

 >> Stay informed about: VB 2008 Professional and SQL Express Questions 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
runtime error 3021 and user permissions - I have a VB6 application that uses ADO 2.7 to access an Access2000 database. I have found on Windows XP and 2000, that if the user is not part of the administrators group, they receive: "runtime error 3021. Either BOF or EOF is true, or the current ...

updatable ado-recordset - Hi, In the code below i have an updatable ado-recordset. However it is not working how i thought it would be. Maybe someone can help me out here? The global connection (Thanks to Brendan): Option Compare Database Option Explicit Public mconn As..

ADO Connection Access Database VB - I have been accessing a database on a local drive thru an ADO connection. The following is the code that I have been using. cnCejco.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Y:\Cejco.mdb;Persist Security Info=False" The problem is n...

DataReport PageBreak - Hi everyone, I would like to know how to force pagebreak in a datareport for example after 5 records printed. Thank you all

Recordset-adding to a Listview - I've got a weird problem - - - it must be something simple, but for the life of me, I must be missing it... I've got a recordset - and I'm trying to add the results into a listview, but, instead of adding each successive record after the first line of....
   Database Help (Home) -> Visual Basic -> ADO All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]