<?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: Alter table in SQL database in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Alter-table-in-SQL-database/m-p/228514#M5567</link>
    <description>&lt;P&gt;What is the use case for altering a SQL Server table from SAS?&lt;/P&gt;&lt;P&gt;SAS programs is normally not a DBA tool, unless you try to build it into&amp;nbsp;some&amp;nbsp;kind of application.&lt;/P&gt;&lt;P&gt;The easiest should be to use SQL Server Management Studio.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Oct 2015 20:01:33 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2015-10-05T20:01:33Z</dc:date>
    <item>
      <title>Alter table in SQL database</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Alter-table-in-SQL-database/m-p/228452#M5558</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;I am trying to update the table named "test" in the in the SQL database. I have tried the libname option as;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;libname&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; PIlibt odbc noprompt=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"uid=myuid;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;pwd=mypassword;&lt;/P&gt;
&lt;P&gt;dsn=mydsn;"&lt;/P&gt;
&lt;P&gt;stringdates=yes;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;SQL&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ALTER&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;TABLE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; PILIBT.TEST&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ADD&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; MYVAR &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;NUM &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;DROP AGE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;QUIT&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;This statemnt gave me an error message :&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;ERROR: The HEADER/VARIABLE UPDATE function is not supported by the ODBC engine.&lt;/P&gt;
&lt;P&gt;ERROR: View PILIBT.TEST cannot be altered.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Next I am trying to&lt;STRONG&gt; use pass through facility&lt;/STRONG&gt; option using the the code below and my code is not correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;SQL&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;CONNECT&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;TO&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; ODBC &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;AS&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; MYCON&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;(DSN=mydsn USER=myuid PASSWORD=mypassword);&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ALTER&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;TABLE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; TEST&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ADD&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; NEWVAR &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;NUM &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;DROP AGE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;DISCONNECT&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;FROM&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; MYCON;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;QUIT&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;could you help me fixing this codes to update my table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2015 15:44:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Alter-table-in-SQL-database/m-p/228452#M5558</guid>
      <dc:creator>ram_adhikari_jacks_sdstate_edu</dc:creator>
      <dc:date>2015-10-05T15:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Alter table in SQL database</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Alter-table-in-SQL-database/m-p/228458#M5560</link>
      <description>When you use Pass Through your code needs to comply with the SQL requirements of your DB. What type of DB are you on, Oracle SQL, MS SQL, etc?  The SQL would need to match that system.</description>
      <pubDate>Mon, 05 Oct 2015 15:57:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Alter-table-in-SQL-database/m-p/228458#M5560</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-10-05T15:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Alter table in SQL database</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Alter-table-in-SQL-database/m-p/228463#M5562</link>
      <description>&lt;P&gt;I am in MS SQL&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2015 16:28:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Alter-table-in-SQL-database/m-p/228463#M5562</guid>
      <dc:creator>ram_adhikari_jacks_sdstate_edu</dc:creator>
      <dc:date>2015-10-05T16:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Alter table in SQL database</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Alter-table-in-SQL-database/m-p/228464#M5563</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;
&lt;P&gt;I am updating in the MS SQL. It does not let me add or drop the columns in the the existing tables in the database.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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;Ram&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2015 16:35:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Alter-table-in-SQL-database/m-p/228464#M5563</guid>
      <dc:creator>ram_adhikari_jacks_sdstate_edu</dc:creator>
      <dc:date>2015-10-05T16:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Alter table in SQL database</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Alter-table-in-SQL-database/m-p/228477#M5564</link>
      <description>Are you using something like the following. Please post your full code that doesn't work. Also, verify you have permissions to add/drop columns.&lt;BR /&gt;&lt;BR /&gt;Alter table my_schema.my_table ADD column_b VARCHAR(20) NULL;</description>
      <pubDate>Mon, 05 Oct 2015 17:47:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Alter-table-in-SQL-database/m-p/228477#M5564</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-10-05T17:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Alter table in SQL database</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Alter-table-in-SQL-database/m-p/228514#M5567</link>
      <description>&lt;P&gt;What is the use case for altering a SQL Server table from SAS?&lt;/P&gt;&lt;P&gt;SAS programs is normally not a DBA tool, unless you try to build it into&amp;nbsp;some&amp;nbsp;kind of application.&lt;/P&gt;&lt;P&gt;The easiest should be to use SQL Server Management Studio.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2015 20:01:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Alter-table-in-SQL-database/m-p/228514#M5567</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2015-10-05T20:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Alter table in SQL database</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Alter-table-in-SQL-database/m-p/228541#M5568</link>
      <description>&lt;P&gt;I believe the following SAS note applies also for SQL Server &lt;A href="http://support.sas.com/kb/37/015.html" target="_blank"&gt;http://support.sas.com/kb/37/015.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your pass-through SQL code needs to be in an EXECUTE() block as shown in the SAS Note.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The pass-through SQL code must be valid SQL syntax in the flavor of the database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2015 22:46:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Alter-table-in-SQL-database/m-p/228541#M5568</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2015-10-05T22:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Alter table in SQL database</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Alter-table-in-SQL-database/m-p/228715#M5575</link>
      <description>&lt;P&gt;Hi Patrick,&lt;/P&gt;
&lt;P&gt;Thank you for the exec options. The code that you provided works when creating additional columns in the table, but it does not work when i try to drop the columns from the existing table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When Submitted the code below error was generated&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;SQL&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;CONNECT&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;TO&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; ODBC &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;(DSN=mydsn USER=myuid PASSWORD=mypassword);&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;EXEC&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; (ALTER TABLE DBO.TEST&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;drop Age) &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;BY&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; ODBC;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;DISCONNECT&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;FROM&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; ODBC;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;QUIT&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: CLI execute error: [Microsoft][ODBC SQL Server Driver][SQL Server]'Age' is not a&lt;/P&gt;
&lt;P&gt;constraint. : [Microsoft][ODBC SQL Server Driver][SQL Server]Could not drop constraint.&lt;/P&gt;
&lt;P&gt;See previous errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you help me fix this.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2015 20:10:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Alter-table-in-SQL-database/m-p/228715#M5575</guid>
      <dc:creator>ram_adhikari_jacks_sdstate_edu</dc:creator>
      <dc:date>2015-10-06T20:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Alter table in SQL database</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Alter-table-in-SQL-database/m-p/228733#M5576</link>
      <description>&lt;P&gt;Looks like your SQL syntax is incorrect for dropping a column. The error you get&amp;nbsp;&lt;EM&gt;'Age' is not a&amp;nbsp;constraint&amp;nbsp;&lt;/EM&gt;indicates that this would be valid syntax for dropping a constraint.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe the valid syntax would be:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;ALTER TABLE DBO.TEST&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;drop &lt;FONT color="#800000"&gt;&lt;STRONG&gt;column&lt;/STRONG&gt; &lt;/FONT&gt;Age&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2015 21:12:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Alter-table-in-SQL-database/m-p/228733#M5576</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2015-10-06T21:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Alter table in SQL database</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Alter-table-in-SQL-database/m-p/228754#M5579</link>
      <description>&lt;P&gt;We are ready to help, and share knowledge. But this is not a free of charge ordering service. So please phrase differently from now on ("&lt;EM&gt;Could you help me fix this&lt;/EM&gt;").&lt;/P&gt;&lt;P&gt;Second, this is not SAS syntax, it's SQL Server, and something you clearly could have googled yourself.&lt;/P&gt;&lt;P&gt;Now that&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick﻿&lt;/a&gt; had the kindness to&amp;nbsp;answer your inquiry, make sure to mark it as a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Br&lt;/P&gt;&lt;P&gt;Linus&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2015 23:44:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Alter-table-in-SQL-database/m-p/228754#M5579</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2015-10-06T23:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Alter table in SQL database</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Alter-table-in-SQL-database/m-p/228880#M5587</link>
      <description>&lt;P&gt;Thank you so much Patrick&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2015 13:53:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Alter-table-in-SQL-database/m-p/228880#M5587</guid>
      <dc:creator>ram_adhikari_jacks_sdstate_edu</dc:creator>
      <dc:date>2015-10-07T13:53:20Z</dc:date>
    </item>
  </channel>
</rss>

