Click here to Skip to main content
15,908,776 members
Home / Discussions / Database
   

Database

 
AnswerRe: Problem with a InsertStored Procedure for Vb.net Pin
Paddy Boyd8-Nov-07 0:25
Paddy Boyd8-Nov-07 0:25 
GeneralRe: Problem with a InsertStored Procedure for Vb.net Pin
Vimalsoft(Pty) Ltd8-Nov-07 0:54
professionalVimalsoft(Pty) Ltd8-Nov-07 0:54 
QuestionSql Server 2005 Devloper Edition Pin
Thaer Hamael7-Nov-07 21:43
Thaer Hamael7-Nov-07 21:43 
AnswerRe: Sql Server 2005 Devloper Edition Pin
Pete O'Hanlon8-Nov-07 1:35
mvePete O'Hanlon8-Nov-07 1:35 
Questiondownload message Pin
foladi7-Nov-07 21:42
professionalfoladi7-Nov-07 21:42 
QuestionBitmap Image to Long Binary Stream Pin
sindhutiwari7-Nov-07 19:50
sindhutiwari7-Nov-07 19:50 
Questionselect apperaring in tables Pin
nicetohaveyou7-Nov-07 17:48
nicetohaveyou7-Nov-07 17:48 
QuestionInsert into DB via Web Service [modified] Pin
ssTahoe7-Nov-07 9:08
ssTahoe7-Nov-07 9:08 
Hello, im trying to create a simple web service that allows a user to insert data (from a form) into a DBtable. Here is my webMethod:
-----------------------------------
<webmethod()> _
Public Sub SubmitRatingsForCourse(ByRef dataSet As DataSet)
Using connection As New SqlConnection("ConnectionStrings:RatingsConnection")

Dim adapter As New SqlDataAdapter()
adapter.SelectCommand = New SqlCommand("SELECT ID, CourseID, Rating, Review, ReviewID, DateStamp FROM RatingsTable", connection)

Dim builder As SqlCommandBuilder = New SqlCommandBuilder(adapter)
connection.Open()

Dim dSet As DataSet = New DataSet
adapter.Fill(dSet, "RatingsTable")
Dim INSstr As String
INSstr = "INSERT INTO [RatingsTable] ([ID], [CourseID], [Rating], [Review], [ReviewID], [DateStamp]) VALUES ('@ID', '@CourseID', '@Rating', '@Review', '@ReviewID', '@DateStamp')"

builder.GetUpdateCommand()

adapter.Update(dSet, "RatingsTable")
End Using
End Sub
----------------------------------------

Now when I try to create the clientSide that consumes the service I:
- Launch Visual Web Developer 05 Express.
- Create the WebReference
- Drag a detailsView onto the page
- Create an ObjectDataSource
- Choose my BusinessObject and click next
- Then for the *Select* I choose GetRatingsForCourse() Returns DataSet
- Then in the *insert* tab I choose SubmitRatingsForCourseAsync(DataSet dataSet)
Then when I go to test, the page comes up, the form fields are there, I insert some test data and submit and here is the error:
-------------------------
Could not find a property named 'ID' on the type specified by the DataObjectTypeName property in ObjectDataSource 'ObjectDataSource1'.
-------------------------

Where am I going wrong? Please help...


-- modified at 15:52 Wednesday 7th November, 2007


-- modified at 15:54 Wednesday 7th November, 2007

-swo

QuestionSQL Query Pin
#realJSOP7-Nov-07 9:05
professional#realJSOP7-Nov-07 9:05 
AnswerRe: SQL Query Pin
pmarfleet7-Nov-07 9:28
pmarfleet7-Nov-07 9:28 
AnswerRe: SQL Query Pin
Pete O'Hanlon7-Nov-07 10:50
mvePete O'Hanlon7-Nov-07 10:50 
GeneralRe: SQL Query Pin
Michael Potter7-Nov-07 11:26
Michael Potter7-Nov-07 11:26 
GeneralRe: SQL Query Pin
Pete O'Hanlon7-Nov-07 11:34
mvePete O'Hanlon7-Nov-07 11:34 
GeneralRe: SQL Query Pin
Michael Potter7-Nov-07 11:42
Michael Potter7-Nov-07 11:42 
JokeRe: SQL Query Pin
Paul Conrad7-Nov-07 12:15
professionalPaul Conrad7-Nov-07 12:15 
GeneralRe: SQL Query Pin
#realJSOP8-Nov-07 1:29
professional#realJSOP8-Nov-07 1:29 
GeneralRe: SQL Query Pin
Michael Potter8-Nov-07 3:04
Michael Potter8-Nov-07 3:04 
GeneralRe: SQL Query Pin
#realJSOP8-Nov-07 1:33
professional#realJSOP8-Nov-07 1:33 
QuestionControlling T-SQL output from LINQ to SQL Pin
Mark J. Miller7-Nov-07 8:28
Mark J. Miller7-Nov-07 8:28 
AnswerRe: Controlling T-SQL output from LINQ to SQL Pin
Mark J. Miller7-Nov-07 9:14
Mark J. Miller7-Nov-07 9:14 
GeneralRe: Controlling T-SQL output from LINQ to SQL Pin
Mark J. Miller8-Nov-07 5:36
Mark J. Miller8-Nov-07 5:36 
QuestionExcel into SQLServer2000 Pin
Jedidah7-Nov-07 8:00
Jedidah7-Nov-07 8:00 
AnswerRe: Excel into SQLServer2000 Pin
pmarfleet7-Nov-07 8:24
pmarfleet7-Nov-07 8:24 
QuestionDateTime Query Pin
solutionsville7-Nov-07 6:35
solutionsville7-Nov-07 6:35 
AnswerRe: DateTime Query Pin
solutionsville7-Nov-07 7:50
solutionsville7-Nov-07 7:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.