By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,306 Members | 1,657 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,306 IT Pros & Developers. It's quick & easy.

Connecting to SQL Server Express 2008 from Visual Basic.Net

P: n/a
CAM
Hello,

I am using SQL Server Express 2008 for my database and Visual Studios 2008 -
Visual Basic.Net for my forms. I Gone into VS 2008 and specify the source
of data using the Data Sources Windows following the wizard. I have input
the Server name using Windows Authentication, select the database name and
tested the connection it works fine. I created a form in VS 2008 added
text boxes and the data navigator, table adapter. It all seems to work fine
I can add data, delete data from the DataSet, but it's not permanent. When
I look into the table in SQL nothing is updated. I just cannot update my
SQL table at all. I don't know what is missing. Can anyone help? Any tips
or website to visit I would appreciate. Thank you in advance.

Cheers

Oct 11 '08 #1
Share this Question
Share on Google+
5 Replies


P: n/a

"CAM" <al***********@ca.rr.comwrote in message
news:A4**********************************@microsof t.com...
Hello,

I am using SQL Server Express 2008 for my database and Visual Studios
2008 -
Visual Basic.Net for my forms. I Gone into VS 2008 and specify the source
of data using the Data Sources Windows following the wizard. I have input
the Server name using Windows Authentication, select the database name and
tested the connection it works fine. I created a form in VS 2008 added
text boxes and the data navigator, table adapter. It all seems to work
fine
I can add data, delete data from the DataSet, but it's not permanent.
When
I look into the table in SQL nothing is updated. I just cannot update my
SQL table at all. I don't know what is missing. Can anyone help? Any
tips
or website to visit I would appreciate. Thank you in advance.

Cheers
Have you installed SP1 for your Visual Studio 2008?
It's my understanding that SP1 is required for SQL Server 2008 support.
Oct 11 '08 #2

P: n/a
CAM
Thanks PvdG42,
I Installed the latest service pack, but that doesn't seem to do the trick.
I appreicate your tip. Hopefully someone may have another tip. Thanks
again.

Cheers
"PvdG42" <pv**@toadstool.eduwrote in message
news:un**************@TK2MSFTNGP02.phx.gbl...
>
"CAM" <al***********@ca.rr.comwrote in message
news:A4**********************************@microsof t.com...
>Hello,

I am using SQL Server Express 2008 for my database and Visual Studios
2008 -
Visual Basic.Net for my forms. I Gone into VS 2008 and specify the
source
of data using the Data Sources Windows following the wizard. I have input
the Server name using Windows Authentication, select the database name
and
tested the connection it works fine. I created a form in VS 2008 added
text boxes and the data navigator, table adapter. It all seems to work
fine
I can add data, delete data from the DataSet, but it's not permanent.
When
I look into the table in SQL nothing is updated. I just cannot update my
SQL table at all. I don't know what is missing. Can anyone help? Any
tips
or website to visit I would appreciate. Thank you in advance.

Cheers
Have you installed SP1 for your Visual Studio 2008?
It's my understanding that SP1 is required for SQL Server 2008 support.

Oct 12 '08 #3

P: n/a
CAM wrote:
>>I can add data, delete data from the DataSet, but it's not
permanent.
Are you callling an Update or Save method of some sort? Changes to a dataset are
local, until you explicitly say you want them saved back to the database.
Oct 12 '08 #4

P: n/a
CAM
Steve,

I beleive that is my problem I need to explicity saved back to the database,
I am not sure how to do that? Thanks for the insight.

Cheers
"Steve Gerrard" <my********@comcast.netwrote in message
news:m7******************************@comcast.com. ..
CAM wrote:
>>>I can add data, delete data from the DataSet, but it's not
permanent.

Are you callling an Update or Save method of some sort? Changes to a
dataset are local, until you explicitly say you want them saved back to
the database.

Oct 12 '08 #5

P: n/a
CAM wrote:
Steve,

I beleive that is my problem I need to explicity saved back to the
database, I am not sure how to do that? Thanks for the insight.
If you have made a standard TableAdapter using the wizards, you should be able
to call the Update method of the TableAdapter. It will need to have the insert,
delete, and update SQL commands defined, which I think is optional in the course
of running the wizard, but they may be there by default.

Oct 12 '08 #6

This discussion thread is closed

Replies have been disabled for this discussion.