Results 1 to 3 of 3

Thread: Error with retrieving data

  1. #1

    Thread Starter
    Addicted Member Tjoppie's Avatar
    Join Date
    Aug 2005
    Location
    South Africa
    Posts
    241

    Error with retrieving data

    Hi all,

    I'm getting an error when filling a dataset, but I can't figure out why. code is:

    VB Code:
    1. TreeAdapter.Fill(TreeData.Qry_Admin_TreeMenu_VBNET)

    And the error I get is:

    An unhandled exception of type 'System.data.sqlclient.sqlexception' occurred in system.data.dll

    Additional Information: System Error

    How can I resolve this error? I think it might be sql server is giving the error, how can I get the application to give me the error in a messagebox?

    Thanks

    Rudi

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Error with retrieving data

    DO this:

    VB Code:
    1. Try
    2.   TreeAdapter.Fill(TreeData.Qry_Admin_TreeMenu_VBNET)
    3. Catch ex As System.data.sqlclient.sqlexception
    4.   MEssageBox ex.ToString
    5. End Try

    That will tell you what SQL Server is returning as the error.

    Tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    Addicted Member Tjoppie's Avatar
    Join Date
    Aug 2005
    Location
    South Africa
    Posts
    241

    Re: Error with retrieving data

    Ok I got the error, it's sql errors... but not one that I like....

    Execute permission denied on 'sp_sdidebug' on the master database.

    What does that sp do?
    I don't really want to give my users access to my master database..... Will it harm my server?

    Regards,

    Rudi

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