🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: weird connection string behavior

#1417
From: Viatcheslav V. Vassiliev
Date: Fri, 16 Jul 2004 10:26
21 lines
1878 bytes
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: <40f7ad5c@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40f6f310$1@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: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <40f6f310$1@newsgroups.borland.com>
Subject: Re: weird connection string behavior
Date: Fri, 16 Jul 2004 14:26:37 +0400
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 213.234.218.42
Message-ID: <40f7ad5c@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1089973596 213.234.218.42 (16 Jul 2004 03:26:36 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail