aamir55
September 20th, 2008, 11:43 AM
i m writting an application in which i add,delete and edit the records
i m using sql server
i have one table called Contacts in the database and few stored procedures in the database
i have method RetreiveContacts()
Private Sub RetrieveContacts()
Dim conn As New SqlConnection(My.Settings.AddressBookConnection)
Dim adapter As New SqlDataAdapter("Contacts_AllContacts_Select", conn)
Dim dt As New DataTable("Contacts")
adapter.Fill(dt)
dgContacts.DataSource = dt
End Sub
when i run my project ...error comes on following line
adapter.Fill(dt)
and error says"Could not find stored procedure 'Contacts_AllContacts_Select'"
but i have added this stored procedure into the database
i m attaching code and database files,kindly tell me the solution
thanks
i m using sql server
i have one table called Contacts in the database and few stored procedures in the database
i have method RetreiveContacts()
Private Sub RetrieveContacts()
Dim conn As New SqlConnection(My.Settings.AddressBookConnection)
Dim adapter As New SqlDataAdapter("Contacts_AllContacts_Select", conn)
Dim dt As New DataTable("Contacts")
adapter.Fill(dt)
dgContacts.DataSource = dt
End Sub
when i run my project ...error comes on following line
adapter.Fill(dt)
and error says"Could not find stored procedure 'Contacts_AllContacts_Select'"
but i have added this stored procedure into the database
i m attaching code and database files,kindly tell me the solution
thanks