Re: Weird problem with DSN
- From: "Ralph" <nt_consulting64@xxxxxxxxx>
- Date: Sat, 1 Oct 2005 06:24:18 -0500
"Someone" <nobody@xxxxxxx> wrote in message
news:1zo%e.60659$ct5.20288@xxxxxxxxxxxxx
> You probably have the connection string hardcoded in one of the properties
> of Data Control, ADO Control, or the DataEnvironment. You may have one of
> these controls hidden from view, so open your forms in design mode, and go
> to the property window. Select the drop down list that shows the list of
> objects and make sure that you check anyone of these controls when you
find
> them.
>
> If you do a text search on the files using Windows Explorer, you might be
> able to see the hardcoded DSN name, if any. Note that Windows XP with no
> service packs will skip VB6 source files, so it might report that nothing
> was found. Try searching for the word "End" to see if your OS supports
> searching VB source files. You could also use Notepad if you don't have
too
> many files.
>
>
> "Luiz Horacio" <lhoracio@xxxxxxxxx> wrote in message
> news:Oe1ksUjxFHA.2960@xxxxxxxxxxxxxxxxxxxxxxx
> > Hi,
> >
> > I have an app written in VB6 that uses a DSN to connect to the database.
> > Worked fine and perfect at home and at my work. Each place has a DSN
with
> > a
> > different name.
> >
> > Well, made some changes in the app, compiled and took it to work. It did
> > not
> > work, and I received a message that the connection was closed and could
> > not
> > be used... Uhh... After being sure I did not hardcoded the DSN name, I
> > changed the DSN in .INI file to use the same name I had at home, created
> > another DSN with that name and the app ran perfectly.
> >
> > Back home, I double checked and there is no DSN name in the project. So
I
> > created another DSN, changed .INI file and it does not work.
> >
> > Looks like my app will only work with an specific DSN name, but this
> > weird... What is happening?
> >
> > Thanks,
> >
> > Luiz Horacio
> >
You can also use the command line utilities "find" and "findstr".
Open a console window ("DOSPrompt") and type
find /?
findstr /?
or visit...
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx
-ralph
.
- Follow-Ups:
- Re: Weird problem with DSN
- From: Veign
- Re: Weird problem with DSN
- References:
- Weird problem with DSN
- From: Luiz Horacio
- Weird problem with DSN
- Prev by Date: Re: Format a number using TextBox
- Next by Date: Re: Load Different Forms!
- Previous by thread: Weird problem with DSN
- Next by thread: Re: Weird problem with DSN
- Index(es):
Relevant Pages
|