473,395 Members | 2,006 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,395 software developers and data experts.

vb.net 2008 problem writing to sql 2005 express database

Hi
I am trying to write to a sql database, but the Update method is not
writing the data to the database.

I can view the data coming into the dataset grid ok and no errors are
generated.

I'm really stuck now :/

Private Sub addrow_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles addrow.Click
Dim NewMeetingRow As meetinginfoDataSet.MeetingRow
NewMeetingRow = MeetinginfoDataSet.Meeting.NewMeetingRow()

newmeetingRow.Course = "new course"
MeetinginfoDataSet.Meeting.Rows.Add(NewMeetingRow)
MeetingBindingSource.EndEdit()
TableAdapterManager.UpdateAll(MeetinginfoDataSet)

End Sub

is there something missing here?
thanks ..
PK..
Dec 30 '07 #1
2 1463

"plonk" <pl***@orcon.net.nzwrote in message
news:52**********************************@s12g2000 prg.googlegroups.com...
Hi
I am trying to write to a sql database, but the Update method is not
writing the data to the database.

I can view the data coming into the dataset grid ok and no errors are
generated.

I'm really stuck now :/

Private Sub addrow_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles addrow.Click
Dim NewMeetingRow As meetinginfoDataSet.MeetingRow
NewMeetingRow = MeetinginfoDataSet.Meeting.NewMeetingRow()

newmeetingRow.Course = "new course"
MeetinginfoDataSet.Meeting.Rows.Add(NewMeetingRow)
MeetingBindingSource.EndEdit()
TableAdapterManager.UpdateAll(MeetinginfoDataSet)

End Sub

is there something missing here?
thanks ..
PK
I have made a small amount of progress on this.
If I use the northwind database the updateall method works ok, however, if I
use my own database it does not..

very strange...
Dec 31 '07 #2
Plonk,

Are you able to fill a datatable from your database?

Cor
Dec 31 '07 #3

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

Similar topics

12
by: Chris Springer | last post by:
I'd like to get some feedback on the issue of storing data out to disk and where to store it. I've never been in a production environment in programming so you'll have to bear with me... My...
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...
24
by: JJ | last post by:
I see the new software is 'RTM' but what does that mean in terms of when we can actually purchase it? Thanks, JJ
4
by: =?Utf-8?B?dGhlamFtaWU=?= | last post by:
Can NET 2008 run side by side with NET 2005? -- Regards, Jamie
0
by: =?Utf-8?B?TWlyYW5v?= | last post by:
I tried it several times, setup disk is not damaged, everything is fine, but it always fails with the error below after completing like 75% of the installation. Then I saw other posts, and figured...
3
by: =?Utf-8?B?Rmxhc2hwcm8=?= | last post by:
i have googled this question but cannot find an answer. i'm running windows vista and i'm using Visual Basic Express 2008. i know the build event button SHOULD be in under the compile tag but i...
2
by: Ian Thompson-Bell | last post by:
I did a fair bit of VB programming many years ago (>10) and have just downloaded the free VB Express 2008. What I need is a good tutorial (preferably in pdf format) or a good book that covers VB...
1
by: Alex Pavluck | last post by:
Hi. I am managing a SQL server that is running SQL 2005. I really like the management studio that comes with the full version because I can view tables and easily create relationships and...
6
by: AAaron123 | last post by:
I need to move a database from sql server 2008 to sql express 2008. Will backing up the sql server 2008 database to a file and then using that file to restore to sql express 2008 work? I don't...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
tracyyun
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...
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.