🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.bazy-danych.msaccess
Article #137536

Re: znak " w haśle

#137536
From: Zbigniew Bratko
Date: Thu, 12 Oct 2017 08:06
23 lines
1635 bytes
W dniu 2017-10-11 o 18:53, 1h18n19m2t@gmail.com pisze:
> Czołem,
> Może ktoś pomoże.
> Administrator założył mi użytkownika z hasłem do adodb.connection na bazie SQL i w tymże haśle znajduje się znak ". Oczywiście generuje to błąd, bo hasło urywa się przed tym znakiem a reszta kodu stringconnection jest też błędna. Da się to jakoś obejść???

[...]

Może tak się da:



.ConnectionString = "Data Source='Pubs';" & _
         "User ID='MyUserId';Password='MyPass" & """" & "word';"

.ConnectionString = "Data Source='Pubs';" & _
         "User ID='MyUserId';Password='MyPass" & Chr(34) & "word';"


-- 
Pozdrowienia
BraZby
www.faq.accdb.pl
www.accdb.pl
Technical Details
Message-ID: <orn7qb$gps$1@node2.news.atman.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
References: <c2b9cda5-ef9b-437d-a9e4-4d53686bae6d@googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
From: Zbigniew Bratko <byle@co.pl>
Newsgroups: pl.comp.bazy-danych.msaccess
Subject: Re: znak " w haśle
Date: Thu, 12 Oct 2017 10:06:31 +0200
Organization: ATMAN - ATM S.A.
Lines: 23
Message-ID: <orn7qb$gps$1@node2.news.atman.pl>
References: <c2b9cda5-ef9b-437d-a9e4-4d53686bae6d@googlegroups.com>
NNTP-Posting-Host: ip-31-0-122-223.multi.internet.cyfrowypolsat.pl
Mime-Version: 1.0
X-Trace: node2.news.atman.pl 1507795595 17212 31.0.122.223 (12 Oct 2017 08:06:35 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Thu, 12 Oct 2017 08:06:35 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0
In-Reply-To: <c2b9cda5-ef9b-437d-a9e4-4d53686bae6d@googlegroups.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit