<?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>Sybase ADDICT &#187; Sybase Transact-SQL Code</title>
	<atom:link href="http://sybase-addict.com/category/sybase-transact-sql-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://sybase-addict.com</link>
	<description>Sybase tips, howto and technical informations - All in a blog !</description>
	<lastBuildDate>Sun, 29 Aug 2010 22:11:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Find and delete duplicates records</title>
		<link>http://sybase-addict.com/2010/08/29/find-and-delete-duplicates-records/</link>
		<comments>http://sybase-addict.com/2010/08/29/find-and-delete-duplicates-records/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 22:07:30 +0000</pubDate>
		<dc:creator>Jean-Francois LEBON</dc:creator>
				<category><![CDATA[Sybase Adaptive Server Enterprise]]></category>
		<category><![CDATA[Sybase HowTo]]></category>
		<category><![CDATA[Sybase Tips & Tricks]]></category>
		<category><![CDATA[Sybase Transact-SQL Code]]></category>
		<category><![CDATA[ase]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[sybase]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[transact-sql]]></category>

		<guid isPermaLink="false">http://sybase-addict.com/2010/08/29/find-and-delete-duplicates-records/</guid>
		<description><![CDATA[Wonder how to display or delete duplicate records ? Sometimes, under certain circumstances duplicate data may occur. Then it should be deleted.
In this example, we are going to create a dummy table with an identity column as a unique key, and with two varchar columns. Then we are going to insert data and duplicates manually. [...]]]></description>
		<wfw:commentRss>http://sybase-addict.com/2010/08/29/find-and-delete-duplicates-records/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sybase sql stored procedures to use MDA tables</title>
		<link>http://sybase-addict.com/2010/05/01/sybase-sql-stored-procedures-to-use-mda-tables/</link>
		<comments>http://sybase-addict.com/2010/05/01/sybase-sql-stored-procedures-to-use-mda-tables/#comments</comments>
		<pubDate>Sat, 01 May 2010 23:56:00 +0000</pubDate>
		<dc:creator>Jean-Francois LEBON</dc:creator>
				<category><![CDATA[Sybase Adaptive Server Enterprise]]></category>
		<category><![CDATA[Sybase Transact-SQL Code]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[sybase]]></category>
		<category><![CDATA[transact-sql]]></category>

		<guid isPermaLink="false">http://sybase-addict.com/?p=777</guid>
		<description><![CDATA[MDA tables are very useful to understand what's going on within your dataserver to carry out accurate and successful performance and tuning campaigns. In this post I publish few basic Sybase stored procedures to use with MDA tables that focus on databases objects activity only (but I may release more MDA stored procedures in the future).]]></description>
		<wfw:commentRss>http://sybase-addict.com/2010/05/01/sybase-sql-stored-procedures-to-use-mda-tables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is DIRECT IO supported for Sybase ASE v15 on your platform ?</title>
		<link>http://sybase-addict.com/2010/04/02/is-direct-io-supported-for-sybase-ase-on-your-platform/</link>
		<comments>http://sybase-addict.com/2010/04/02/is-direct-io-supported-for-sybase-ase-on-your-platform/#comments</comments>
		<pubDate>Fri, 02 Apr 2010 15:39:54 +0000</pubDate>
		<dc:creator>Jean-Francois LEBON</dc:creator>
				<category><![CDATA[Sybase Adaptive Server Enterprise]]></category>
		<category><![CDATA[Sybase HowTo]]></category>
		<category><![CDATA[Sybase Tips & Tricks]]></category>
		<category><![CDATA[Sybase Transact-SQL Code]]></category>
		<category><![CDATA[ase]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[sybase]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[transact-sql]]></category>

		<guid isPermaLink="false">http://sybase-addict.com/?p=739</guid>
		<description><![CDATA[This sql query tells you if Direct IO is supported on your platform:
select low from spt_values
where  type='io'
A value of 1 means &#8220;Yes, direct io is supported on this platform&#8221;.
A value of 0 means &#8220;No, direct io is NOT supported on this platform&#8221;.
Read this nice post from David Wein about Direct I/O device option.
]]></description>
		<wfw:commentRss>http://sybase-addict.com/2010/04/02/is-direct-io-supported-for-sybase-ase-on-your-platform/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tell what platform Sybase ASE is running on, with a sql query</title>
		<link>http://sybase-addict.com/2010/03/31/tell-what-platform-sybase-ase-is-running-on-with-a-sql-query/</link>
		<comments>http://sybase-addict.com/2010/03/31/tell-what-platform-sybase-ase-is-running-on-with-a-sql-query/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 20:17:38 +0000</pubDate>
		<dc:creator>Jean-Francois LEBON</dc:creator>
				<category><![CDATA[Sybase Adaptive Server Enterprise]]></category>
		<category><![CDATA[Sybase HowTo]]></category>
		<category><![CDATA[Sybase Tips & Tricks]]></category>
		<category><![CDATA[Sybase Transact-SQL Code]]></category>
		<category><![CDATA[ase]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[sybase]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[transact-sql]]></category>

		<guid isPermaLink="false">http://sybase-addict.com/?p=735</guid>
		<description><![CDATA[Want to know what platform your Sybase Adaptive Server is running on ? No need to connect to the machine to find out, just run this little query: 
select name from master..spt_values
where type = 'E' and number = 1
go
For me it shows:
 name
 --------------------------------------------------------
 linux
Nice&#8230;
]]></description>
		<wfw:commentRss>http://sybase-addict.com/2010/03/31/tell-what-platform-sybase-ase-is-running-on-with-a-sql-query/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Find out all &#8220;Defined Rules&#8221; in a Sybase ASE database</title>
		<link>http://sybase-addict.com/2010/01/10/find-out-all-defined-rules-in-a-sybase-database/</link>
		<comments>http://sybase-addict.com/2010/01/10/find-out-all-defined-rules-in-a-sybase-database/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 15:02:18 +0000</pubDate>
		<dc:creator>Jean-Francois LEBON</dc:creator>
				<category><![CDATA[Sybase Adaptive Server Enterprise]]></category>
		<category><![CDATA[Sybase HowTo]]></category>
		<category><![CDATA[Sybase Tips & Tricks]]></category>
		<category><![CDATA[Sybase Transact-SQL Code]]></category>
		<category><![CDATA[ase]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[sybase]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[transact-sql]]></category>

		<guid isPermaLink="false">http://sybase-addict.com/?p=593</guid>
		<description><![CDATA[The following transact-sql code will help you to find all defined rules in a Sybase ASE database.

select sysobjects.name as "rule name",
object_name(syscolumns.id) as "table name",
syscolumns.name as "column name"
from sysobjects, syscolumns
where object_name(syscolumns.domain)=sysobjects.name
and sysobjects.type = 'R'
go

The output displays the table and column to which the rules are bound.
]]></description>
		<wfw:commentRss>http://sybase-addict.com/2010/01/10/find-out-all-defined-rules-in-a-sybase-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find tables with identity columns</title>
		<link>http://sybase-addict.com/2009/05/23/find-tables-with-identity-columns/</link>
		<comments>http://sybase-addict.com/2009/05/23/find-tables-with-identity-columns/#comments</comments>
		<pubDate>Sat, 23 May 2009 19:28:55 +0000</pubDate>
		<dc:creator>Jean-Francois LEBON</dc:creator>
				<category><![CDATA[Sybase Adaptive Server Enterprise]]></category>
		<category><![CDATA[Sybase HowTo]]></category>
		<category><![CDATA[Sybase Tips & Tricks]]></category>
		<category><![CDATA[Sybase Transact-SQL Code]]></category>
		<category><![CDATA[ase]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[sybase]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[transact-sql]]></category>

		<guid isPermaLink="false">http://sybase-addict.com/?p=161</guid>
		<description><![CDATA[Quickly find out the database&#8217;s tables having identity columns:
select object_name(id) as "tablename",name as "column_name"
from syscolumns where status =128
go
Enjoy  
]]></description>
		<wfw:commentRss>http://sybase-addict.com/2009/05/23/find-tables-with-identity-columns/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Find out the Sybase ASE dataserver&#8217;s page size</title>
		<link>http://sybase-addict.com/2009/01/07/find-out-the-dataservers-page-size/</link>
		<comments>http://sybase-addict.com/2009/01/07/find-out-the-dataservers-page-size/#comments</comments>
		<pubDate>Tue, 06 Jan 2009 23:18:06 +0000</pubDate>
		<dc:creator>Jean-Francois LEBON</dc:creator>
				<category><![CDATA[Sybase Adaptive Server Enterprise]]></category>
		<category><![CDATA[Sybase HowTo]]></category>
		<category><![CDATA[Sybase Tips & Tricks]]></category>
		<category><![CDATA[Sybase Transact-SQL Code]]></category>
		<category><![CDATA[ase]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[sybase]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[transact-sql]]></category>

		<guid isPermaLink="false">http://sybase-addict.com/?p=191</guid>
		<description><![CDATA[Find out the dataserver&#8217;s page size without using global variables like @@pagesize or @@maxpagesize.
When you work with heterogeneous versions of Sybase Ase (12.0.x and 12.5.x or 15.x), this query can help you while coding your dba stored procedures&#8230;
declare @page_size int
select  @page_size = low /1024 from master.dbo.spt_values
where type = 'E' and number = 1
go
It will [...]]]></description>
		<wfw:commentRss>http://sybase-addict.com/2009/01/07/find-out-the-dataservers-page-size/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find text/image columns in a database</title>
		<link>http://sybase-addict.com/2009/01/06/find-textimage-columns-in-a-database/</link>
		<comments>http://sybase-addict.com/2009/01/06/find-textimage-columns-in-a-database/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 22:52:00 +0000</pubDate>
		<dc:creator>Jean-Francois LEBON</dc:creator>
				<category><![CDATA[Sybase Adaptive Server Enterprise]]></category>
		<category><![CDATA[Sybase HowTo]]></category>
		<category><![CDATA[Sybase Tips & Tricks]]></category>
		<category><![CDATA[Sybase Transact-SQL Code]]></category>
		<category><![CDATA[ase]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[sybase]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[transact-sql]]></category>

		<guid isPermaLink="false">http://sybase-addict.com/?p=186</guid>
		<description><![CDATA[Might be a good idea to share some usefull code snippet. Let&#8217;s start with a simple query to find out text/image columns in a database. This one will build a list of columns using text/image columns for each tables:
select user_name(o.uid) as "owner",
o.name as "table",
c.name as "column"
from   sysobjects o, syscolumns c
where  o.type = [...]]]></description>
		<wfw:commentRss>http://sybase-addict.com/2009/01/06/find-textimage-columns-in-a-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>List Server Reserved Words</title>
		<link>http://sybase-addict.com/2008/09/06/list-server-reserved-words/</link>
		<comments>http://sybase-addict.com/2008/09/06/list-server-reserved-words/#comments</comments>
		<pubDate>Sat, 06 Sep 2008 12:55:43 +0000</pubDate>
		<dc:creator>Jean-Francois LEBON</dc:creator>
				<category><![CDATA[Sybase Adaptive Server Enterprise]]></category>
		<category><![CDATA[Sybase HowTo]]></category>
		<category><![CDATA[Sybase Tips & Tricks]]></category>
		<category><![CDATA[Sybase Transact-SQL Code]]></category>
		<category><![CDATA[ase]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[sybase]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[transact-sql]]></category>

		<guid isPermaLink="false">http://sybase-addict.com/?p=3</guid>
		<description><![CDATA[You just have to run a simple query in isql to find all the reserved words for Adaptive Server Enterprise and Sybase SQL Server. To list all reserved words for Adaptive Server Enterprise, log in to isql and run this query:
select name from master..spt_values where type = "W"
go
The spt_values table is a look-up table in [...]]]></description>
		<wfw:commentRss>http://sybase-addict.com/2008/09/06/list-server-reserved-words/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
