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

Thread: Distinct clause

  1. #1
    Join Date
    Mar 2001
    Posts
    16

    Distinct clause

    When I use 'Distinct' clause in Oracle it works fine. But the same query doesn't work from VB. It displays all the record in the result.

    eg.
    Sql = "Select distinct name from emp"


  2. #2
    Join Date
    Oct 2000
    Location
    JHB South Africa
    Posts
    27

    Re: Distinct clause

    Using SQL Server, this works fine for me.

    Perhaps you should check out the ODBC or OLE DB Provider driver installed on your machine.

    Test this with a connection to SQL or Access using ADO. If it works this way around, you may want to re-install or upgrade MDAC on your machine


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