<?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: Migrating Sas dataset to ms sql database in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Migrating-Sas-dataset-to-ms-sql-database/m-p/977829#M30364</link>
    <description>&lt;P&gt;Have the users do their work in SAS with SAS datasets, and when the desired dataset is prepared, run PROC DELETE to remove the database table and create it anew.&lt;/P&gt;</description>
    <pubDate>Sun, 26 Oct 2025 18:26:53 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2025-10-26T18:26:53Z</dc:date>
    <item>
      <title>Migrating Sas dataset to ms sql database</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Migrating-Sas-dataset-to-ms-sql-database/m-p/977826#M30363</link>
      <description>SAS 9.4 M5 ,I’m currently migrating data from SAS datasets to a Microsoft SQL database. One of the users previously accessed a SAS table, performed analyses, added new columns, and then saved the output using the same table name. This worked in SAS because it could store the table in memory. However, this behavior doesn’t seem possible in Microsoft SQL, where the only apparent workaround is to save the output under a different name and then delete the old table—a time-consuming process that may result in users forgetting to remove the original table. Is there a more efficient way to handle this scenario?</description>
      <pubDate>Sun, 26 Oct 2025 17:52:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Migrating-Sas-dataset-to-ms-sql-database/m-p/977826#M30363</guid>
      <dc:creator>mokwenak</dc:creator>
      <dc:date>2025-10-26T17:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating Sas dataset to ms sql database</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Migrating-Sas-dataset-to-ms-sql-database/m-p/977829#M30364</link>
      <description>&lt;P&gt;Have the users do their work in SAS with SAS datasets, and when the desired dataset is prepared, run PROC DELETE to remove the database table and create it anew.&lt;/P&gt;</description>
      <pubDate>Sun, 26 Oct 2025 18:26:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Migrating-Sas-dataset-to-ms-sql-database/m-p/977829#M30364</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2025-10-26T18:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating Sas dataset to ms sql database</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Migrating-Sas-dataset-to-ms-sql-database/m-p/977864#M30365</link>
      <description>&lt;P&gt;What you describe is generally considered poor practice in the world of relational databases. It is also possible that your current data design is poor if this sort of thing, adding variables to the same-named table, is needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A more typical approach would be to have a view or query that reads the existing data table that had the results needed and use the view for reporting or whatever that table with the additions is used for. Properly designed views would use "new" table after import or update or what ever is causing new data. Then nothing to delete, just remember to use the view instead of the raw data table.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2025 07:09:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Migrating-Sas-dataset-to-ms-sql-database/m-p/977864#M30365</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2025-10-27T07:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating Sas dataset to ms sql database</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Migrating-Sas-dataset-to-ms-sql-database/m-p/977959#M30373</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/114369"&gt;@mokwenak&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;"&amp;nbsp;However, this behavior doesn’t seem possible in Microsoft SQL....".&lt;/STRONG&gt;&lt;BR /&gt;This behavior is possible in MS SQL Server but not in the same way as SAS. Here are some hints.&lt;/P&gt;
&lt;P&gt;1.Once can always alter table and add /remove&amp;nbsp; columns&lt;/P&gt;
&lt;P&gt;2.MS SQL server has the option to create session scope temporary table. At the end of the session the data is lost. Something like&amp;nbsp; SAS work in functionality . They can be used as an intermediate storage.&lt;/P&gt;
&lt;P&gt;3.There is another feature called common table expressions which are named result set that can be withing the same query.&lt;/P&gt;
&lt;P&gt;Ultimately it depends on your exact needs and the ability to make use of the available features.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2025 00:32:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Migrating-Sas-dataset-to-ms-sql-database/m-p/977959#M30373</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2025-10-28T00:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating Sas dataset to ms sql database</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Migrating-Sas-dataset-to-ms-sql-database/m-p/977971#M30376</link>
      <description>&lt;P&gt;Tables in databases need stable structures. Unlike with SAS Files (tables) you normally also create the table structure only once and then insert, update or delete data attached to this structure.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What you are describing feels like a bad use case for using SQL Server tables as "dumping ground" for SAS output.&amp;nbsp; It only complicates things for your users and likely also increases end-to-end processing time caused by frequent data transfers between SAS and the database.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the reason for pushing "all" SAS output to SQL Server?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2025 07:43:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Migrating-Sas-dataset-to-ms-sql-database/m-p/977971#M30376</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2025-10-28T07:43:59Z</dc:date>
    </item>
  </channel>
</rss>

