Re: User dsns are not fetched - SQLDataSources

Tech-Archive recommends: Fix windows errors by optimizing your registry



By definition, "user DSNs" are those stored in the profile for the currently logged on user
(HKEY_CURRENT_USER registry). If your ATL component is running as a different user, it will not see
the same DSNs as the logged on user.

"ChitraCK" <ChitraCK@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4F84146E-6173-4297-B1F4-299E16759FDC@xxxxxxxxxxxxxxxx
> Hi All,
> I am using SQLDataSources to get all the dsns on the local machine. I am
> able to get system/user dsns when i use this method in an VC++ application.
> But when i use the same code in an ATL component which is getting called from
> the same application it is fetching only system dsns not user dsns. What cud
> be the problem
> Please suggest me on this
>
> --
> ChitraCK


.



Relevant Pages

  • Web server controls not shown on a web form
    ... I have a working ASP.NET web page which uses some DSNs and a COM ... in debug mode on his machine...no errors messages are displayed.... ... I have checked web.config and looks good....my settings ... Prev by Date: ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: Export DSN entries?
    ... Thanks for the reply but I was referring to DSNs, ODBC Data Sources, ... not the DNS entries. ... Jay ... Prev by Date: ...
    (microsoft.public.windows.server.general)
  • User dsns are not fetched - SQLDataSources
    ... I am using SQLDataSources to get all the dsns on the local machine. ... able to get system/user dsns when i use this method in an VC++ application. ... Prev by Date: ...
    (microsoft.public.data.odbc)