Christian Hansen

NAME

SQL::ReservedWords::SQLServer - Reserved SQL words by SQL Server

SYNOPSIS

   if ( SQL::ReservedWords::SQLServer->is_reserved( $word ) ) {
       print "$word is a reserved SQL Server word!";
   }

DESCRIPTION

Determine if words are reserved by SQL Server.

METHODS

is_reserved( $word )

Returns a boolean indicating if $word is reserved by SQL Server 7, 2000 or 2005.

is_reserved_by_sqlserver7( $word )

Returns a boolean indicating if $word is reserved by SQL Server 7.

is_reserved_by_sqlserver2000( $word )

Returns a boolean indicating if $word is reserved by SQL Server 2000.

is_reserved_by_sqlserver2005( $word )

Returns a boolean indicating if $word is reserved by SQL Server 2005.

reserved_by( $word )

Returns a list with SQL Server versions that reserves $word.

words

Returns a list with all reserved words.

EXPORTS

Nothing by default. Following subroutines can be exported:

is_reserved
is_reserved_by_sqlserver7
is_reserved_by_sqlserver2000
is_reserved_by_sqlserver2005
reserved_by
words

SEE ALSO

http://msdn2.microsoft.com/en-us/library/ms130214.aspx

AUTHOR

Christian Hansen chansen@cpan.org

COPYRIGHT

This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.