 




<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IT Answers &#187; SQL tables</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/sql-server/sql-tables/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Thu, 23 May 2013 19:25:58 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>RUNSQLSTM ALTER TABLE</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/runsqlstm-alter-table/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/runsqlstm-alter-table/#comments</comments>
		<pubDate>Tue, 14 Feb 2012 10:51:27 +0000</pubDate>
		<dc:creator>Hanisadeq</dc:creator>
				<category><![CDATA[AS/400 V5R3M0]]></category>
		<category><![CDATA[SQL tables]]></category>
		<category><![CDATA[SQL/400]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[i&#8217;m trying to run SQl statment in batch job to alter Table CCSID to 420 but i have error Reason code 10  Hani ]]></description>
				<content:encoded><![CDATA[<p>i&#8217;m trying to run SQl statment in batch job to alter Table CCSID to 420 but i have error Reason code 10 </p>
<div></div>
<div>Hani </div>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/runsqlstm-alter-table/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Reading xml url into SQL Server 2008 Table with OpenXML</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/reading-xml-url-into-sql-server-2008-table-with-openxml/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/reading-xml-url-into-sql-server-2008-table-with-openxml/#comments</comments>
		<pubDate>Tue, 28 Jun 2011 17:21:25 +0000</pubDate>
		<dc:creator>Rscheinberg59</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[SQL Server tables]]></category>
		<category><![CDATA[SQL tables]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[XML development]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I am parsing an xml file that contains an xml url and a text file url as values. OpenXML appears to be unable to read neither the xml url nor the url to the text file. It reads the urls to pdf and html locations fine. How can I get the process to get the xml url [...]]]></description>
				<content:encoded><![CDATA[<p>I am parsing an xml file that contains an xml url and a text file url as values. OpenXML appears to be unable to read neither the xml url nor the url to the text file. It reads the urls to pdf and html locations fine. How can I get the process to get the xml url as text into my sql table.  My next step would be to parse each xml for each record to retrieve some data out of each, but that will come later. I first need to be able to read the url. Right now all I get is null values.<br/><br/> Here is a sample of one record (there are about 5000 in the xml):<br/><br/> &lt;document id=&#8221;1028&#8243; doc_type=&#8221;3&#8243;&gt;  &lt;url_xml&gt;https://www.someplace.com/docs/xml/something.xml&lt;/url_xml&gt;  &lt;url_pdf&gt;https://www.someplace.com/docs/pdf/something.pdf&lt;/url_pdf&gt;  &lt;url_html&gt;https://www.someplace.com/docs/html/something.html&lt;/url_html&gt;  &lt;url_txt&gt;https://www.someplace.com/docs/html2/something.txt&lt;/url_txt&gt;  &lt;headline&gt;Some Text&lt;/headline&gt;  &lt;dateadded&gt;20080924&lt;/dateadded&gt;  &lt;active&gt;1&lt;/active&gt;  &lt;published&gt;1&lt;/published&gt; &lt;/document&gt;<br/><br/> Here is my code:<br/><br/>  INSERT<br/><br/>   <br/><br/>   INTO #WorkingTable<br/><br/>  SELECT<br/><br/>   <br/><br/>   * FROM OPENROWSET (BULK &#8216;C:ProcessesBlueMatrixBMdocs.xml&#8217;, SINGLE_BLOB) AS data<br/><br/>  SELECT<br/><br/>   <br/><br/>   @XML = Data FROM #WorkingTable<br/><br/>  EXEC<br/><br/>   <br/><br/>   sp_xml_preparedocument @hDoc OUTPUT, @XML<br/><br/>  SELECT<br/><br/>   <br/><br/>   getdate(), id, doc_type, url_xml, url_pdf, url_html, url_text, headline, dateadded, active<br/><br/>  FROM<br/><br/>   <br/><br/>   OPENXML(@hDoc, &#8216;/doc_url/document&#8217;, 2)<br/><br/>  WITH <br/><br/>   <br/><br/>  (id int &#8216;@id&#8217;, doc_type tinyint &#8216;@doc_type&#8217;, url_xml varchar(200), url_pdf varchar(200), url_html varchar(200), url_text varchar(200), headline varchar(200), dateadded datetime, active tinyint );<br/><br/>  EXEC<br/><br/>   <br/><br/>   sp_xml_removedocument @hDoc<br/><br/> Thanks for any help you can provide.<br/><br/></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/reading-xml-url-into-sql-server-2008-table-with-openxml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Problem Querying SQL table from PHP</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/problem-querying-sql-table-from-php/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/problem-querying-sql-table-from-php/#comments</comments>
		<pubDate>Fri, 17 Jun 2011 14:50:22 +0000</pubDate>
		<dc:creator>ELHaysStrom</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[SQL 2008]]></category>
		<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[SQL tables]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I recently added a new table to an existing database. Data is entered into the db via a web front end, using PHP 5. I am not a php developer. Our developer is trying to build a search query against the new table (there is data in the table). From the page he is working [...]]]></description>
				<content:encoded><![CDATA[<p>I<br />
 recently added a new table to an existing database.  Data is entered<br />
into the db via a web front end, using PHP 5.  I am not a php developer.<br />
Our<br />
 developer  is trying to build a search query against the new table<br />
(there is data in the table).  From the page he is working on, he can<br />
run a query against any other table in the database, but not against the<br />
 new table.<br />
I have verified that the user login account he is<br />
using has the requisite permissions.  I can log in to SSMS with those<br />
credentials and runs a select * from the table in question, and it<br />
returns all the rows.  I can run an osql statement from my desktop and<br />
from the developers desktop utilizing the same credentials, and return<br />
the rows.<br />
I&#8217;ve run a Profiler trace, and watched while he queries<br />
 other tables and when he queries the new table.  When he queries the<br />
&#8220;customer&#8221; table, which has 161 records in it, I see 485 Reads.  When he<br />
 queries the new table &#8220;esb_rt&#8221;, there are 0 reads.<br />
I think this<br />
is a PHP issue.  The developer thinks it&#8217;s a SQL issue.  Can anyone<br />
provide any ideas where to look that I&#8217;m not looking?</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/problem-querying-sql-table-from-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL statement needed to remove characters</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-statement-needed-to-remove-characters/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/sql-statement-needed-to-remove-characters/#comments</comments>
		<pubDate>Fri, 15 Apr 2011 02:34:45 +0000</pubDate>
		<dc:creator>Satonthehill</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[SQL statement]]></category>
		<category><![CDATA[SQL tables]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I have data in one of my columns in a table that I would like to remove via a SQL update statement.  In all cases, the data that I want to remove is the same 3 characters at the end of the varchar field.   How would I structure the SQL statement?]]></description>
				<content:encoded><![CDATA[<p>I have data in one of my columns in a table that I would like to remove via a SQL update statement.  In all cases, the data that I want to remove is the same 3 characters at the end of the varchar field.   How would I structure the SQL statement?</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/sql-statement-needed-to-remove-characters/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Can two separate cursors update the same SQL table when executed together?</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/can-two-separate-cursors-update-the-same-table-when-executed-together/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/can-two-separate-cursors-update-the-same-table-when-executed-together/#comments</comments>
		<pubDate>Wed, 23 Mar 2011 10:57:15 +0000</pubDate>
		<dc:creator>MrRussellWebb</dc:creator>
				<category><![CDATA[SQL Cursors]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[SQL Server 2005 administration]]></category>
		<category><![CDATA[SQL tables]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I have three tables. Table One is a master table which contains rows which need to be updated with data from the other two tables (I&#8217;ll call them Table Two and Table Three). I have created a cursor which updates existing rows in Table One with data from Table Two. This works fine, and following [...]]]></description>
				<content:encoded><![CDATA[<p>I have three tables.  </p>
<p>Table One is a master table which contains rows which need to be updated with data from the other two tables (I&#8217;ll call them Table Two and Table Three).</p>
<p>I have created a cursor which updates existing rows in Table One with data from Table Two.  This works fine, and following the successful execution of the cursor, Table One contains the new data. </p>
<p>However, I have a second cursor, which updates the same columns in Table One as the first cursor does, (but never the same rows), and when this second cursor is executed, the data in Table One is updated with the data from Table Three. However, when querying Table One after the execution of the second cursor the data from Table Two is no longer present.<br />
Each cursor is executed in its own transaction, which is committed after the cursor has been closed and deallocated.</p>
<p>This is my first attempt at using cursors, and I need to know whether what I&#8217;m doing is technically possible, and if so what may be causing the updates from the first cursor to be lost.</p>
<p>Any help would be greatly appreciated!</p>
<p>Thanks R.W.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/can-two-separate-cursors-update-the-same-table-when-executed-together/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update a subquery with different tables</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/update-a-subquery-with-different-tables/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/update-a-subquery-with-different-tables/#comments</comments>
		<pubDate>Thu, 17 Feb 2011 20:04:13 +0000</pubDate>
		<dc:creator>Bartbart</dc:creator>
				<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL tables]]></category>
		<category><![CDATA[Subquery]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I am trying to update a table and use a subquery for the argument. I think I have both queries correct but since but since they are from two tables I am not tying together correctly. Can you tell me what I need to do? update MVXJDTA.MITMAS set MMSTAT =&#8217;01&#8242; where MVXJDTA.MITMAS.MMITNO = MVXJDTA.MITSTA.MHITNO (Select [...]]]></description>
				<content:encoded><![CDATA[<p>I am trying to update a table and use a subquery for the argument. I think I have both queries correct but since but since they are from two tables I am not tying together correctly. Can you tell me what I need to do? <br/><br/> update MVXJDTA.MITMAS set MMSTAT =&#8217;01&#8242; where MVXJDTA.MITMAS.MMITNO = MVXJDTA.MITSTA.MHITNO (Select MHITNO as Item, SUM(MHMAQT+MHPUQT + MHSOQT + MHUSQT + MHDEMQ)as total from MVXJDTA.MITSTA where MHCYP6 Between 200801 and 201102 Group by MHITNO Having SUM(MHMAQT+MHPUQT + MHSOQT + MHUSQT + MHDEMQ) &lt;= 0)<br/><br/></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/update-a-subquery-with-different-tables/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>SQL Server 2008 tables</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/number-of-apearance-in-a-table/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/number-of-apearance-in-a-table/#comments</comments>
		<pubDate>Sun, 30 Jan 2011 13:51:37 +0000</pubDate>
		<dc:creator>Ajibola</dc:creator>
				<category><![CDATA[SQL 2008]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[SQL tables]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I  have 2 tables, tanle1 and table2 Can someone help for  SQL query  for table3 with 2 colums colum 1  is select number from table1 for colum2 in table3  I need to get the total number of times  each number in colum1 of table1 apears in in colums n1,n2,n3,n4 of all events in table2 as [...]]]></description>
				<content:encoded><![CDATA[<p>I  have 2 tables, tanle1 and table2 <br/><br/> Can someone help for  SQL query  for table3 with 2 colums<br/><br/> colum 1  is select number from table1 <br/><br/> for colum2 in table3  I need to get the total number of times  each number in colum1 of table1 apears in in colums n1,n2,n3,n4 of all events in table2 as shown in table3.<br/><br/> Pls. help<br/><br/> [table border="0" width="535" cellpadding="0" cellspacing="0" style="margin: auto auto auto 4.55pt; width: 401pt; border-collapse: collapse; mso-yfti-tbllook: 1184; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt;" class="MsoNormalTable"> [tbody] [tr style=&#8221;height: 15pt; mso-yfti-irow: 0; mso-yfti-firstrow: yes;&#8221;> [td colspan=&#8221;2&#8243; width=&#8221;99&#8243; valign=&#8221;bottom&#8221; style=&#8221;padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0cm; width: 74pt; padding-top: 0cm; height: 15pt; background-color: transparent; border: #ece9d8;&#8221;> Table1</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/number-of-apearance-in-a-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL command question</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-command-question/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/sql-command-question/#comments</comments>
		<pubDate>Fri, 21 Jan 2011 16:20:52 +0000</pubDate>
		<dc:creator>Ktoby</dc:creator>
				<category><![CDATA[SQL commands]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server tables]]></category>
		<category><![CDATA[SQL tables]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I have three tables as below: Table 1: attributes fields: attID, att_CategoryID, name Table 2: att_Category fields: att_CategoryID, name Table 3: prodcutAttributes fields: ID, productID, attID, I desigining this tables to be able to add multiple prodcut attributes for ecommerce site. I don&#8217;t know how good this design is. Anyways I need to find out [...]]]></description>
				<content:encoded><![CDATA[<p>I have three tables as below: Table 1: attributes fields: attID, att_CategoryID, name Table 2: att_Category fields: att_CategoryID, name Table 3: prodcutAttributes fields: ID, productID, attID, I desigining this tables to be able to add multiple prodcut attributes for ecommerce site. I don&#8217;t know how good this design is. Anyways I need to find out the sql command which can first see how many type of options are entered for the particular prodcut based on that, i need to get each product options entered for the prodcut. example: prodcut 1 might have att_category (COLOR): attributes( blue, black, green) and att_category(Size): attributes (xxl, xl, large) prodcut 2 might have only att_category(SIZE): attributes(large, medium, small) I would appreciate any help on this.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/sql-command-question/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Access or SQL Server tables</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/access-or-sql/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/access-or-sql/#comments</comments>
		<pubDate>Tue, 14 Dec 2010 16:02:12 +0000</pubDate>
		<dc:creator>Imjnice</dc:creator>
				<category><![CDATA[Access Tables]]></category>
		<category><![CDATA[SQL Server administration]]></category>
		<category><![CDATA[SQL Server Table Migration]]></category>
		<category><![CDATA[SQL Server tables]]></category>
		<category><![CDATA[SQL tables]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Yes I am consultant for a small business, and currently they have a Access database that works pretty decently. At the current situation, the owner needs another database. I really do not want to have to ask the developer to keep creating different databases that includes him having to put more separate tables on the [...]]]></description>
				<content:encoded><![CDATA[<p>Yes I am consultant for a small business, and currently they have a Access database that works pretty decently.  At the current situation, the owner needs another database.  I really do not want to have to ask the developer to keep creating different databases that includes him having to put more separate tables on the server for the new database.  I wanted to know, for future growth, would SQL be better to implement being that the owner needs another database?  I mean no telling how many more databases she may need.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/access-or-sql/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Question on SQL 2005 table</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/quetion-on-table/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/quetion-on-table/#comments</comments>
		<pubDate>Fri, 10 Dec 2010 20:39:11 +0000</pubDate>
		<dc:creator>Vijaykumar456</dc:creator>
				<category><![CDATA[SQL 2005]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[SQL Server tables]]></category>
		<category><![CDATA[SQL tables]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[New Answer by Chris Leonard]]></description>
				<content:encoded><![CDATA[New Answer by Chris Leonard]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/quetion-on-table/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/34 queries in 0.830 seconds using memcached
Object Caching 917/1089 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-23 19:26:06 -->