CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 1999
    Location
    Singapore
    Posts
    18

    DSN-less connection

    Hi
    I know that DSN-less connections can improve the speed of applications. I've tried using this but I always get error like this:

    DataSource Name not found and no default driver specified.

    Anyone knows what went wrong?



  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: DSN-less connection

    post your connection string, please.
    Does it look similar to the one below?
    "Driver={SQL Server};Server=yourserver;UID=;PWD=;database=yourdatabase"?


  3. #3
    Join Date
    Sep 1999
    Location
    Singapore
    Posts
    18

    Re: DSN-less connection

    Hi, my connection string is as follows:
    ("", rdDriverNoPrompt, False,server=orc0;Driver=MSDASQL;uid=system;pwd=manager")



  4. #4
    Guest

    Re: DSN-less connection

    Hi, i have arround the same problem wuth my connection TO Access, the following lines doesn't go
    // m_strConnection = _T("Provider=MSQASQL.1;Data Source=access");
    m_strConnection = _T("Provider=Microsoft.Jet.OLEDB.3.51.1;Data Source=access");
    m_strCmdText = _T("select * from newbd");
    m_pRs->Open((LPCTSTR)m_strCmdText, (LPCTSTR)m_strConnection, adOpenStatic,
    adLockReadOnly, adCmdTableDirect);



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