<?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: insert data into sql table in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/insert-data-into-sql-table/m-p/391779#M94178</link>
    <description>All the constraints are fine .I am not able to undertsand what the error is</description>
    <pubDate>Wed, 30 Aug 2017 11:05:48 GMT</pubDate>
    <dc:creator>Rohit12</dc:creator>
    <dc:date>2017-08-30T11:05:48Z</dc:date>
    <item>
      <title>insert data into sql table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/insert-data-into-sql-table/m-p/391766#M94172</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to insert a data in SQL server table using SAS&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the code that I have written&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro lzlib;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;LIBNAME LZZ OLEDB BULKLOAD=YES&lt;BR /&gt;DBCOMMIT=0&lt;BR /&gt;CURSOR_TYPE=STATIC&lt;BR /&gt;BL_KEEPIDENTITY=YES&lt;BR /&gt;BL_KEEPNULLS=NO&lt;BR /&gt;DIRECT_EXE=DELETE&lt;BR /&gt;PROPERTIES=('Integrated Security'=SSPI&lt;BR /&gt;'Persist Security Info'=TRUE&lt;BR /&gt;'Initial Catalog'=Customer_account)&lt;BR /&gt;PROMPT=NO&lt;BR /&gt;REREAD_EXPOSURE=NO&lt;BR /&gt;PROVIDER=SQLOLEDB&lt;BR /&gt;DATASOURCE="dwh-i-sql"&lt;BR /&gt;SCHEMA=DZS&lt;BR /&gt;ROWSET_SIZE=32767&lt;BR /&gt;UPDATE_MULT_ROWS=YES&lt;BR /&gt;PRESERVE_GUID=yes;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PROC SQL;&lt;BR /&gt;INSERT INTO LZZ.CUST_DIM&lt;BR /&gt;SELECT DATO&lt;BR /&gt;,JOBNAME&lt;BR /&gt;,RUNDATE&lt;BR /&gt;,EXECUTION_STATUS&lt;BR /&gt;,COMPARE&lt;BR /&gt;,LcOMPARE_RESULT&lt;BR /&gt;,OUTPUT_FLAT_FILE_EXISTS&lt;BR /&gt;,FOLDER_LINK&lt;BR /&gt;,FILE_NAME&lt;BR /&gt;,ADD_INFO&lt;BR /&gt;,FILE_EXISTS&lt;BR /&gt;,HOST_FILE_DOWNLOAD&lt;BR /&gt;,FILE_READ&lt;BR /&gt;,HOST_FILE_READ&lt;BR /&gt;,COMPARE_PROCEDURE&lt;BR /&gt;,COMPARE_STATUS&lt;BR /&gt;,BASEDATASETOBS&lt;BR /&gt;,COMPAREDATASETOBS&lt;BR /&gt;,BASEDATASETVAR&lt;BR /&gt;,COMPAREDATASETVAR FROM FINAL;&lt;BR /&gt;QUIT;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;%mend;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the error that comes up&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="x_MsoNormal"&gt;&lt;SPAN&gt;ERROR: Execute error: IRowsetFastLoad::InsertRow failed. : Unspecified error&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="x_MsoNormal"&gt;&lt;SPAN&gt;ERROR: ROLLBACK issued due to errors for data set LZZ.CUST_DIM.DATA.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 10:14:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/insert-data-into-sql-table/m-p/391766#M94172</guid>
      <dc:creator>Rohit12</dc:creator>
      <dc:date>2017-08-30T10:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: insert data into sql table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/insert-data-into-sql-table/m-p/391772#M94177</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options msglevel=i sastrace=',,,d' sastraceloc=saslog;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Might give you some more info in the log.&lt;/P&gt;
&lt;P&gt;Check the data and try to see if they break any constraints, or if you have any read only columns.&lt;/P&gt;
&lt;P&gt;Check in SQL Server logs,&amp;nbsp;enable additional audit if necessary.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 10:47:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/insert-data-into-sql-table/m-p/391772#M94177</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-08-30T10:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: insert data into sql table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/insert-data-into-sql-table/m-p/391779#M94178</link>
      <description>All the constraints are fine .I am not able to undertsand what the error is</description>
      <pubDate>Wed, 30 Aug 2017 11:05:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/insert-data-into-sql-table/m-p/391779#M94178</guid>
      <dc:creator>Rohit12</dc:creator>
      <dc:date>2017-08-30T11:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: insert data into sql table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/insert-data-into-sql-table/m-p/391817#M94186</link>
      <description>&lt;P&gt;I found this ancient discussion: &lt;A href="https://communities.sas.com/t5/General-SAS-Programming/Using-DI-Studio-to-build-a-data-warehouse-in-SQL-Server-2008/td-p/123563" target="_blank"&gt;https://communities.sas.com/t5/General-SAS-Programming/Using-DI-Studio-to-build-a-data-warehouse-in-SQL-Server-2008/td-p/123563&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 13:28:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/insert-data-into-sql-table/m-p/391817#M94186</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2017-08-30T13:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: insert data into sql table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/insert-data-into-sql-table/m-p/391858#M94204</link>
      <description>&lt;P&gt;Most likely you have a type conflict for one of the column or perhaps just one of the values for one of the columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Find an example observation that it cannot insert.&lt;/P&gt;
&lt;P&gt;Then repeatally try loading the row with different combinations of variables selected to see which variable(s) are causing the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should probably check the date varaibles first. SAS stores DATE and DATETIME values differently, but many DBMS have only one data type for dates. &amp;nbsp;You might need to convert your SAS DATE value to a DATETIME value to put it into the target variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 16:25:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/insert-data-into-sql-table/m-p/391858#M94204</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-08-30T16:25:33Z</dc:date>
    </item>
  </channel>
</rss>

