<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How to Create an XSD File with no Primary Key</title><link>https://community.appian.com/discussions/f/general/12136/how-to-create-an-xsd-file-with-no-primary-key</link><description>I know that the old database connectivity node is being deprecated. I am trying to query a database by way of creating a query rule. I created a data type but the table I will be connecting to has no primary key. I find myself at a lost when I create</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to Create an XSD File with no Primary Key</title><link>https://community.appian.com/thread/53732?ContentTypeID=1</link><pubDate>Wed, 28 Mar 2018 20:16:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:750e2d84-3f59-434d-a274-a0fbaf76cb7d</guid><dc:creator>rameshk</dc:creator><description>AFAIK, There should be a primary key in the table when you map the CDT. &lt;br /&gt;
I think you already know that Appian would create a_id by default if table doesnt have a primay key. The alternate solution would be create a view (copy of the table) and map the CDT to the view.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>