<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Vbscript -sybase connection : Password ends with a  semicolon in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/vbscript-sybase-connection-password-ends-with-a-semicolon/qaa-p/13845474#M4876317</link>
    <description>&lt;P&gt;This forum is dedicated to SQL Anywhere, which is a different product from ASE.&lt;/P&gt;
&lt;P&gt;For SQL Anywhere this question is moot since passwords cannot contain semicolons: &lt;A href="http://dcx.sybase.com/index.html#1201/en/dbadmin/permissi-s-5614688.html"&gt;http://dcx.sybase.com/index.html#1201/en/dbadmin/permissi-s-5614688.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Aug 2011 06:04:22 GMT</pubDate>
    <dc:creator>Breck_Carter</dc:creator>
    <dc:date>2011-08-03T06:04:22Z</dc:date>
    <item>
      <title>Vbscript -sybase connection : Password ends with a  semicolon</title>
      <link>https://community.sap.com/t5/technology-q-a/vbscript-sybase-connection-password-ends-with-a-semicolon/qaq-p/13845473</link>
      <description>&lt;P&gt;Hi 
I am using VBscript (QTP) 
facing an issue in making an connection to database (Sybase 15.0 ) since in the DbPassword has semicolon in the end .For e.g. Test123;&lt;/P&gt;
&lt;P&gt;Below is the piece of code used where paramters are passed &lt;/P&gt;
&lt;P&gt;set adoConn=Createobject("ADODB.Connection") 
adoConn.ConnectionTimeout =600
adoConn.Open ("DRIVER={Sybase ASE ODBC Driver};NA=" &amp;amp; sDBServerName &amp;amp; "," &amp;amp; sDBPortNo &amp;amp; " ;DB=" &amp;amp; sDBName &amp;amp; ";UID=" &amp;amp; sDBUserID &amp;amp; ";PWD=" &amp;amp; sDBPassword &amp;amp; " ;")&lt;/P&gt;
&lt;P&gt;is there a way using which i can escape the ';' in vbscript
please help! &lt;/P&gt;
&lt;P&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;
&lt;P&gt;Additional Info : in VBscript ';' semicolon is taken as a literal if placed inside a "".
ie 
sDBPassword  = "Test;" 
will take ';' as a part of string , however connection sting is &lt;/P&gt;
&lt;P&gt;("DRIVER={Sybase ASE ODBC Driver};NA=myNewServer,6400;DB=TestDb;UID=keshava;PWD=Test;;")
this when passed as a connection string ignores the semicolon in the end and takes the password as Test&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2011 03:28:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/vbscript-sybase-connection-password-ends-with-a-semicolon/qaq-p/13845473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-03T03:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Vbscript -sybase connection : Password ends with a  semicolon</title>
      <link>https://community.sap.com/t5/technology-q-a/vbscript-sybase-connection-password-ends-with-a-semicolon/qaa-p/13845474#M4876317</link>
      <description>&lt;P&gt;This forum is dedicated to SQL Anywhere, which is a different product from ASE.&lt;/P&gt;
&lt;P&gt;For SQL Anywhere this question is moot since passwords cannot contain semicolons: &lt;A href="http://dcx.sybase.com/index.html#1201/en/dbadmin/permissi-s-5614688.html"&gt;http://dcx.sybase.com/index.html#1201/en/dbadmin/permissi-s-5614688.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2011 06:04:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/vbscript-sybase-connection-password-ends-with-a-semicolon/qaa-p/13845474#M4876317</guid>
      <dc:creator>Breck_Carter</dc:creator>
      <dc:date>2011-08-03T06:04:22Z</dc:date>
    </item>
  </channel>
</rss>

