Sybase Technical Library - Product Manuals Home
[Search Forms] [Previous Section with Hits] [Next Section with Hits] [Clear Search] Expand Search

Chapter 6 Issuing

SQL statements [Table of Contents] Chapter 8 Issuing

RPC events

Access Service User's Guide DirectConnect Anywhere

[-] Chapter 7 Using Sybase Mode commands

Chapter 7

Using Sybase Mode commands

This chapter describes the Transact-SQL recognized in sybase mode and the corresponding target SQL the service library generates.

This chapter covers the Transact-SQL commands listed in the following table.

Transact-SQL commands

Command

Restrictions

Description

Location

alter table

core

Adds new columns to an existing table

begin transaction

Transact-SQL only

Marks the starting point of a user-defined transaction

commit transaction

Transact-SQL only

Marks the ending point of a user-defined transaction

create index

core

Creates an index on one or more columns in a table

create table

minimum

Creates new tables

create view

core

Creates a new view

delete

minimum

Removes rows from a table

delete(cursor event)

core

Removes a row from a table (if row was made current by a read cursor)

delete(dynamic event)

minimum

Removes rows from a table

drop index

core

Removes an index from a table in the current database

drop table

minimum

Removes a table definition from the database

drop view

core

Removes one or more views from the current database

execute

Runs a system procedure or user-defined storage procedure

grant

core

Assigns authorization to users

insert

minimum

Adds new rows to a table or view

prepare transaction

Determines whether a server is prepared to commit a transaction

revoke

core

Revokes permissions from users

rollback transaction

Rolls back a user-specified transaction

select

minimum

Retrieves rows from database objects

truncate table

extension using where 1=1

Removes all rows from a table

update

core

Changes existing rows by adding or modifying data

update(cursor event)

core

Changes data in a row made current by a read cursor

update(dynamic event)

core

Changes data in existing rows of a referenced table

use

Specifies the database in which you want to work

Transact-SQL commands
[-] alter table (core)
Description
Syntax
Parameters
Examples
Usage
[-] begin transaction (Transact-SQL only)
Description
Syntax
Parameters
Examples
Usage
[-] commit transaction (Transact-SQL only)
Description
Syntax
Parameters
Examples
Usage
[-] create index (core)
Description
Syntax
Parameters
Examples
Usage
[-] create table (minimum)
Description
Syntax
Parameters
Examples
Usage
[-] create view (core)
Description
Syntax
Parameters
Examples
Usage
[-] delete (minimum)
Description
Syntax
Parameters
Examples
Usage
[-] delete (cursor event) (core)
Description
Syntax
Examples
Usage
[-] delete (dynamic event) (minimum)
Description
Syntax
Parameters
Usage
[-] drop index (core)
Description
Syntax
Parameters
Examples
Usage
[-] drop table (minimum)
Description
Syntax
Parameters
Examples
Usage
[-] drop view (core)
Description
Syntax
Parameters
Examples
Usage
[-] execute
Description
Syntax
Usage
[-] grant (core)
Description
Syntax
Parameters
Examples
Usage
[-] insert (minimum)
Description
Syntax
Parameters
Examples
Usage
[-] prepare transaction
Description
Syntax
[+] Usage
[-] revoke (core)
Description
Syntax
Parameters
Examples
Usage
[-] rollback transaction
Description
Syntax
Parameters
Examples
Usage
[-] select (minimum)
Description
Syntax
Parameters
Examples
Usage
[-] truncate table (extension using where 1=1)
Description
Syntax
Parameters
Examples
Usage
[-] update (core)
Description
Syntax
Parameters
Examples
Usage
[-] update (cursor event) (core)
Description
Syntax
Parameters
Examples
Usage
[-] update (dynamic event) (core)
Description
Syntax
Parameters
Examples
Usage
[-] use
Description
Syntax
Parameters
[+] Usage


Chapter 6 Issuing

SQL statements [Table of Contents] Transact-SQL commands