CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2011
    Posts
    1

    Retrieve data from MS SQL server and display in grid view

    Hi, I am using .net visual studio c# to do my project and the database that i am using is called: SQL server 2008. I am developing my codes in 3-tier way.

    The database.cs is being code out to call the stored procedue and the stored procedure will retrieve n store data.

    The attachement is the codes that I have populated.

    The error that I got is:
    System.Data.SqlClient.SqlException: Procedure GET_ItemRecords has no parameters and arguments were supplied.

    Thanks!
    Attached Files Attached Files

  2. #2
    Join Date
    Jan 2011
    Posts
    16

    Re: Retrieve data from MS SQL server and display in grid view

    Hi!

    So, the message reports you everything!
    check params declared in sql procedure and which you pass in procedure call

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured