<?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>topic Re: SQL Pass Through Options in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/SQL-Pass-Through-Options/m-p/497999#M15509</link>
    <description>&lt;P&gt;So what were the results of your testing?&lt;/P&gt;</description>
    <pubDate>Fri, 21 Sep 2018 22:39:31 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2018-09-21T22:39:31Z</dc:date>
    <item>
      <title>SQL Pass Through Options</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SQL-Pass-Through-Options/m-p/497887#M15504</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to find some options for a pass through query to SQL which would allow the table to still have new records appended while the query is running. Here's a version of what I've tried so far:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;rsubmit;
proc sql;
%odbc_connect(alias=CRGMT,dsn=NeuAnalytics,user=&amp;amp;sqlpw.,password=&amp;amp;EIW_pwd.);
	/* Connection=sharedread ?? */
	execute(SET NOCOUNT ON     
			OPEN SYMMETRIC KEY AccountAudit_Key11     
			DECRYPTION BY CERTIFICATE AccountAudit09) by CRGMT;
	execute(SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED) by CRGMT;
   	create table R1Remed as 
		select * from connection to CRGMT
   			(
			SELECT distinct
				WorkItemId
				, StartDate
				, QTemplateVersionWorkItemId
				, QTemplateInfoId
				, QTemplateVersionId
				, QuestionAnswerOptionId
				, AnswerOption
				, cast(AnswerText as varchar(1000)) as AnswerText
				, AccountImportDetailId
				,[FileName]
			FROM WorkItem.QTemplateVersionWorkItem TVWI
				LEFT JOIN workitem.[WorkItemQTemplateAnswer] WTA ON TVWI.QTemplateVersionWorkItemId = WTA.QTemplateVersionWorkItemId
			WHERE StartDate &amp;gt; '9/1/2016'
				AND StatusId &amp;lt;&amp;gt; 6 
			);
disconnect from CRGMT;
quit;
endrsubmit;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Sep 2018 15:59:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SQL-Pass-Through-Options/m-p/497887#M15504</guid>
      <dc:creator>DMD_23</dc:creator>
      <dc:date>2018-09-21T15:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Pass Through Options</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SQL-Pass-Through-Options/m-p/497999#M15509</link>
      <description>&lt;P&gt;So what were the results of your testing?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 22:39:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SQL-Pass-Through-Options/m-p/497999#M15509</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-09-21T22:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Pass Through Options</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SQL-Pass-Through-Options/m-p/498378#M15518</link>
      <description>&lt;P&gt;When I used the options that ran on the server as part of my posted query, the SQL table was still locking when the query was running long. I'm wondering if there are some options I could put on the SAS side of the query that would work.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 12:54:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SQL-Pass-Through-Options/m-p/498378#M15518</guid>
      <dc:creator>DMD_23</dc:creator>
      <dc:date>2018-09-24T12:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Pass Through Options</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SQL-Pass-Through-Options/m-p/500132#M15548</link>
      <description>&lt;P&gt;I suggest you talk to the database DBA for advice. Possibly using views of the tables you are accessing may help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would also suggest checking forums for the database you are using since this isn't really a SAS question.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Sep 2018 00:46:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SQL-Pass-Through-Options/m-p/500132#M15548</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-09-30T00:46:08Z</dc:date>
    </item>
  </channel>
</rss>

