<html>
<head>
    <base href="https://docs.jboss.org/author">
            <link rel="stylesheet" href="/author/s/en/2172/19/5/_/styles/combined.css?spaceKey=TEIID&amp;forWysiwyg=true" type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://docs.jboss.org/author/display/TEIID/DSN+Less+Connection">DSN Less Connection</a></h2>
    <h4>Page <b>edited</b> by             <a href="https://docs.jboss.org/author/display/~rareddy">Ramesh Reddy</a>
    </h4>
        <br/>
                         <h4>Changes (1)</h4>
                                 
    
<div id="page-diffs">
                    <table class="diff" cellpadding="0" cellspacing="0">
    
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >ODBC;DRIVER={PostgreSQL};DATABASE=&lt;vdb-name&gt;;SERVER=&lt;host-name&gt;;PORT=&lt;port&gt;;Uid=&lt;username&gt;;Pwd=&lt;password&gt;             <br>{code} <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;"> <br>All the available pg driver connection options with their descriptions that can be used are defined here [http://psqlodbc.projects.pgfoundry.org/docs/config.html|http://psqlodbc.projects.pgfoundry.org/docs/config.html]. When using these properties on the connection string, their property names are defined here [http://psqlodbc.projects.pgfoundry.org/docs/config-opt.html|http://psqlodbc.projects.pgfoundry.org/docs/config-opt.html] <br></td></tr>
    
            </table>
    </div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <p>You can also connect to Teiid VDB using ODBC with out explicitly creating a DSN. However, in these scenarios your application needs, what is called as "DSN less connection string". The below is a sample connection string </p>

<p>For Windows:</p>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="theme: Confluence; brush: java; gutter: false" style="font-size:12px; font-family: ConfluenceInstalledFont,monospace;">
ODBC;DRIVER={PostgreSQL Unicode};DATABASE=&lt;vdb-name&gt;;SERVER=&lt;host-name&gt;;PORT=&lt;port&gt;;Uid=&lt;username&gt;;Pwd=&lt;password&gt;            
</pre>
</div></div>

<p>For &#42;nix:</p>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="theme: Confluence; brush: java; gutter: false" style="font-size:12px; font-family: ConfluenceInstalledFont,monospace;">
ODBC;DRIVER={PostgreSQL};DATABASE=&lt;vdb-name&gt;;SERVER=&lt;host-name&gt;;PORT=&lt;port&gt;;Uid=&lt;username&gt;;Pwd=&lt;password&gt;            
</pre>
</div></div>

<p>All the available pg driver connection options with their descriptions that can be used are defined here <a href="http://psqlodbc.projects.pgfoundry.org/docs/config.html" class="external-link" rel="nofollow">http://psqlodbc.projects.pgfoundry.org/docs/config.html</a>. When using these properties on the connection string, their property names are defined here <a href="http://psqlodbc.projects.pgfoundry.org/docs/config-opt.html" class="external-link" rel="nofollow">http://psqlodbc.projects.pgfoundry.org/docs/config-opt.html</a></p>
    </div>
        <div id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;" class="grey">
                        <a href="https://docs.jboss.org/author/users/removespacenotification.action?spaceKey=TEIID">Stop watching space</a>
            <span style="padding: 0px 5px;">|</span>
                <a href="https://docs.jboss.org/author/users/editmyemailsettings.action">Change email notification preferences</a>
</div>
        <a href="https://docs.jboss.org/author/display/TEIID/DSN+Less+Connection">View Online</a>
        |
        <a href="https://docs.jboss.org/author/pages/diffpagesbyversion.action?pageId=18646144&revisedVersion=3&originalVersion=2">View Changes</a>
                |
        <a href="https://docs.jboss.org/author/display/TEIID/DSN+Less+Connection?showComments=true&amp;showCommentArea=true#addcomment">Add Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>