🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #1420

Re: weird connection string behavior

#1420
From: steve
Date: Mon, 19 Jul 2004 21:26
27 lines
1988 bytes
Thanks, I had it working but then it started bombing out, I will set it up that way.

"Viatcheslav V. Vassiliev" <support@oledbdirect.com> wrote:
>Check that your ADO connection has Connected := false at startup, before you
>set your connection string. Try also WideString instead of AnsiString.
>
>//------------------------------------------
>Regards,
>Vassiliev V. V.
>http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
>ADO.Net
>http://www.oledbdirect.com - The fastest way to access MS SQL Server,
>MS Jet (Access) and Interbase (through OLEDB)
>
>"Steve" <sportock@hotmail.com> �������/�������� � �������� ���������:
>news:40f6f310$1@newsgroups.borland.com...
>>
>> Can anyone explain this? I am using a connectionstring with my
>adoconnection, when I set it up in the properties area and build it, it
>works fine. I want to hard code it in the application though, I took it out
>and set an AnsiString to it, then assign it to my connection when I need it,
>but it bombs out on locating my instance of sql server. Why?
>>
>> Steve
>
>
Technical Details
Message-ID: <40fc3c73$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!hammer.uoregon.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <40f6f310$1@newsgroups.borland.com> <40f7ad5c@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,1266517c5b4c02e6
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII
From: "steve" <sportock@hotmail.com>
Sender: "steve" <sportock@hotmail.com>
Reply-To: "steve" <sportock@hotmail.com>
Subject: Re: weird connection string behavior
Newsgroups: borland.public.cppbuilder.database.ado
X-User-Info: 24.178.50.100     
References: <40f6f310$1@newsgroups.borland.com> <40f7ad5c@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <40fc3c73$1@newsgroups.borland.com>
Date: 19 Jul 2004 14:26:11 -0700
X-Trace: newsgroups.borland.com 1090272371 207.105.83.66 (19 Jul 2004 14:26:11 -0700)
Lines: 28
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!hammer.uoregon.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail