IT Community - Software Programming, Web Development and Technical Support

SQL Server 2005

This is a discussion on SQL Server 2005 within the Database Support forums, part of the Web Development category; CREATE FULLTEXT CATALOG Create a full-text catalog for the database. Syntax CREATE FULLTEXT CATALOG catalog [ON FILEGROUP filegroup ] [IN ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > Database Support

Register FAQ Members List Calendar Mark Forums Read
  #61 (permalink)  
Old 01-10-2008, 08:55 PM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: SQL Server 2005

CREATE FULLTEXT CATALOG

Create a full-text catalog for the database.

Syntax
CREATE FULLTEXT CATALOG catalog
[ON FILEGROUP filegroup ]
[IN PATH 'rootpath']
[WITH ACCENT_SENSITIVITY = {ON|OFF}]
[AS DEFAULT] [AUTHORIZATION owner ]

Key:
catalog Name of the catalog to create
rootpath The local root directory for the catalog.
AS DEFAULT Specify that this is the default catalog.

After creating a catalog, one or more full-text indexes may be associated with it.

Example

CREATE FULLTEXT CATALOG MyCatalog AS DEFAULT;
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #62 (permalink)  
Old 01-10-2008, 08:56 PM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: SQL Server 2005

ALTER FULLTEXT CATALOG

Create a full-text catalog for the database.

Syntax
ALTER FULLTEXT CATALOG catalog
{REBUILD [ WITH ACCENT_SENSITIVITY = {ON | OFF} ]
| REORGANIZE
| AS DEFAULT
}
Key:
catalog Name of the catalog to create
AS DEFAULT Specify that this is the default catalog.

Example

ALTER FULLTEXT CATALOG MyCatalog AS DEFAULT;
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #63 (permalink)  
Old 01-10-2008, 08:57 PM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: SQL Server 2005

DROP FULLTEXT CATALOG

Remove a full-text catalog from a database.

Syntax
DROP FULLTEXT CATALOG catalog

Key:
catalog Name of the catalog to remove

Drop all full-text indexes associated with the catalog before dropping the catalog.

Example

DROP FULLTEXT CATALOG cata
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #64 (permalink)  
Old 01-10-2008, 08:57 PM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: SQL Server 2005

CREATE FULLTEXT INDEX

Create a full-text index on a table. One full-text index with one or more columns is allowed per table.

Syntax
CREATE FULLTEXT INDEX ON table
[(column [TYPE COLUMN type_column_name] [LANGUAGE language_term]
[,...n])]
KEY INDEX index
[ON fulltext_catalog]
[WITH CHANGE_TRACKING tracking_option]

tracking_option:
MANUAL
AUTO
OFF [, NO POPULATION]

Key:
type_column_name The column in table that holds the document type of column.
language_term The locale identifier (LCID)
index The unique key index on table
fulltext_catalog The full-text catalog, must already exist.
CHANGE_TRACKING Maintain a list of changes to the indexed data.

Example

CREATE FULLTEXT INDEX ON Shemaname.test(Column1) KEY INDEX ui_identity_column;
GO
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #65 (permalink)  
Old 03-12-2008, 12:53 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: SQL Server 2005

ALTER FULLTEXT INDEX

Change properties of a full-text index.

Syntax
ALTER FULLTEXT INDEX ON table option

Options:
ENABLE
DISABLE
SET CHANGE_TRACKING { MANUAL | AUTO | OFF }
ADD ( column [TYPE COLUMN type_column ]
[LANGUAGE language_term ] [,...n] )
[WITH NO POPULATION ]
DROP ( column [,...n] )
[WITH NO POPULATION ]
START { FULL | INCREMENTAL | UPDATE } POPULATION
STOP POPULATION
Key:
ENABLE Activate the full-text index
DISABLE Stop gathering full-text index data.
CHANGE_TRACKING Maintain a list of changes to the indexed data.
ADD/DROP Add or remove columns from the index
language_term The locale identifier (LCID)

Example

ALTER FULLTEXT INDEX ON MySchema.MyTable ENABLE;
GO
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #66 (permalink)  
Old 03-12-2008, 12:54 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: SQL Server 2005

DROP FULLTEXT INDEX

Remove a full-text catalog from a database.

Syntax
DROP FULLTEXT INDEX ON table_name

Key:
table_name Table containing the Full Table Index

Example

DROP FULLTEXT INDEX ON TestSchema.SalesTable;
GO
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #67 (permalink)  
Old 03-12-2008, 12:54 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: SQL Server 2005

CREATE FUNCTION

Create a user-defined function.

Syntax
CREATE FUNCTION [schema.] function
( [@parameter [ AS ][type_schema.] parameter_data_type [= default ]
[ ,...n ]
])
RETURNS
return_clause...
[;]


Key:
function Name of the function(s) to add.
schema The schema to which the user-defined function belongs.
parameter_data_type The data type of the function (not timestamp)
CLR functions, accept a limited range of data types.

The details of the return clause will vary for Scalar, Inline/Multistatement Table-valued, or CLR functions.
See SQL Server books online or the resources on the SQL Links page
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #68 (permalink)  
Old 03-12-2008, 12:55 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: SQL Server 2005

ALTER FUNCTION

Alter a user-defined function.

Syntax
ALTER FUNCTION [schema.] function
( [@parameter [ AS ][type_schema.] parameter_data_type [= default ]
[ ,...n ]
])
RETURNS
return_clause...
[;]

Key:
function Name of the function(s) to add.
schema The schema to which the user-defined function belongs.
parameter_data_type The data type of the function (not timestamp)
CLR functions, accept a limited range of data types.
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #69 (permalink)  
Old 03-12-2008, 12:56 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: SQL Server 2005

DROP FUNCTION

Remove a full-text catalog from a database.

Syntax
DROP FUNCTION [schema.]function [,...n ]

Key:
schema The schema to which the user-defined function belongs.

function Name of the function(s) to remove.

To run this command first remove any CHECK constraints, or DEFAULT constraints that reference the function.

Also an indexed computed column that references the function will prevent dropping the function.

Example

DROP FUNCTION MySchema.fn_myfunction;
GO
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #70 (permalink)  
Old 03-12-2008, 12:57 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: SQL Server 2005

Create an index on a table or view. Also XML indexes.

Syntax
-- Relational Index
CREATE [UNIQUE] [CLUSTERED | NONCLUSTERED] INDEX index
ON object (column [ASC | DESC] [,...n ] )
[INCLUDE (column [ ,...n] ) ]
[WITH (option [ ,...n] ) ]
[ON { partition_scheme ( column )
| filegroup
| default
}
]
[;]

-- XML Index
CREATE [ PRIMARY ] XML INDEX index
ON object ( xml_column )
[USING XML INDEX xml_index
[FOR { VALUE | PATH | PROPERTY } ] ]
[WITH ( option [ ,...n ] ) ]
[;]
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #71 (permalink)  
Old 03-12-2008, 01:27 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: SQL Server 2005

ALTER INDEX

Modify an existing index on a table or view.

Syntax
ALTER INDEX {index | ALL} ON object DISABLE [;]

ALTER INDEX {index | ALL} ON object REORGANIZE
[PARTITION = partition_number ]
[WITH ( LOB_COMPACTION = {ON | OFF} ) ] [;]

ALTER INDEX {index | ALL} ON object REBUILD
[ [WITH ( rebuild_index_option [ ,...n ] ) ]
| [PARTITION = partition_number
[ WITH ( single_ptn_rebuild_index_option
[ ,...n ] )
]
]
] [;]

ALTER INDEX {index | ALL} ON object SET ( set_index_option [ ,...n ] )
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #72 (permalink)  
Old 03-12-2008, 01:28 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: SQL Server 2005

DROP INDEX

Remove one or more relational or XML indexes from the current database.

Syntax
DROP INDEX index ON object [WITH ( options [ ,...n ] ) ]

DROP INDEX [owner.] table_or_view.index
This syntax for backwards compatibility only (pre 2005)

Options:
MAXDOP = max_degree_of_parallelism
ONLINE = { ON | OFF }
MOVE TO { partition_scheme_name (column)
filegroup_name
"default"
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #73 (permalink)  
Old 03-12-2008, 01:28 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: SQL Server 2005

CREATE ASYMMETRIC KEY

Create an asymmetric key in the database.

Syntax:
CREATE ASYMMETRIC KEY Asym_Key_Name
[AUTHORIZATION database_principal_name]
FROM <Asym_Key_Source>
[ENCRYPTION BY PASSWORD = 'password']

CREATE ASYMMETRIC KEY Asym_Key_Name
[AUTHORIZATION database_principal_name]
WITH ALGORITHM = { RSA_512 | RSA_1024 | RSA_2048 }
[ENCRYPTION BY PASSWORD = 'password']
Key:

Asym_Key_Source: The source from which to load the asymmetric key pair:
FILE = 'path_to_strong-name_file'
EXECUTABLE FILE = 'path_to_executable_file'
ASSEMBLY Assembly_Name

database_principal_name
The owner of the asymmetric key. The owner cannot be a role or a group.
default = current user.

'path_to_strong-name_file'
Path of a strong-name file from which to load the key pair.

'path_to_executable_file'
An assembly file from which to load the public key.

Assembly_Name
Name of an assembly from which to load the public key.

'password'
Password with which to encrypt the private key.
default = encrypt using the database master key.
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #74 (permalink)  
Old 03-12-2008, 01:29 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: SQL Server 2005

ALTER ASYMMETRIC KEY

Change properties of an asymmetric key.

Syntax:
ALTER ASYMMETRIC KEY Asym_Key option

options
WITH PRIVATE KEY ( password_option [, password_option])
REMOVE PRIVATE KEY
ATTESTED BY = 'path_to_dll'
REMOVE ATTESTED OPTION

password_options
ENCRYPTION BY PASSWORD = 'password'
DECRYPTION BY PASSWORD = 'old_password'
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #75 (permalink)  
Old 03-12-2008, 01:30 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: SQL Server 2005

CREATE SYMMETRIC KEY

Create a symmetric key in the database.

Syntax:
CREATE SYMMETRIC KEY Sym_key
[AUTHORIZATION owner]
WITH key_options [, ... n]
ENCRYPTION BY crypt [ , ... n ]

Options
crypt:
CERTIFICATE certificate
PASSWORD = 'password'
SYMMETRIC KEY symmetric_key_name
ASYMMETRIC KEY asym_key_name

key_options:
KEY_SOURCE = 'pass_phrase'
ALGORITHM = algorithm
IDENTITY_VALUE = 'identity_phrase'

algorithm:
DES | TRIPLE_DES | RC2 | RC4 | RC4_128 |
DESX | AES_128 | AES_192 | AES_256
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #76 (permalink)  
Old 03-12-2008, 01:30 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: SQL Server 2005

OPEN SYMMETRIC KEY

Decrypt a symmetric key and makes it available for use.

Syntax:
OPEN SYMMETRIC KEY Key DECRYPTION BY decrypt_option

decrypt_options:
CERTIFICATE certificate [WITH PASSWORD = 'password']
ASYMMETRIC KEY asym_key [WITH PASSWORD = 'password']
SYMMETRIC KEY decrypting_Key
PASSWORD = 'decryption_password'
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #77 (permalink)  
Old 03-12-2008, 01:31 AM
Anandavinayagam Anandavinayagam is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 131
Anandavinayagam is on a distinguished road
Default Re: SQL Server 2005

CLOSE SYMMETRIC KEY

Close a symmetric key, or close all the symmetric keys open in the current session.

Syntax:
CLOSE {SYMMETRIC KEY key | ALL SYMMETRIC KEYS}

Open symmetric keys are bound to the session not to the security context.
__________________
The MOSS
Master of Solution Service
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #78 (permalink)  
Old 03-12-2008, 01:31 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: SQL Server 2005

ALTER SYMMETRIC KEY

Change the properties of a symmetric key.

Syntax:
ALTER SYMMETRIC KEY Sym_key key_options

key_options ::=
ADD ENCRYPTION BY crypt [, ... n]
DROP ENCRYPTION BY crypt [, ... n]

crypt:
CERTIFICATE certificate
PASSWORD = 'password'
SYMMETRIC KEY symmetric_key_name
ASYMMETRIC KEY asym_key_name
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #79 (permalink)  
Old 03-12-2008, 01:31 AM
Anandavinayagam Anandavinayagam is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 131
Anandavinayagam is on a distinguished road
Default Re: SQL Server 2005

DROP SYMMETRIC KEY

DROP a symmetric key from the database.

Syntax:
DROP SYMMETRIC KEY key_name

key_name
Name of the asymmetric key to be dropped

If the key is open in the current session the drop will fail.

Requires CONTROL permission on the symmetric key.

Examples
__________________
The MOSS
Master of Solution Service
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #80 (permalink)  
Old 03-12-2008, 01:32 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: SQL Server 2005

KILL

Terminate a user process

Syntax
KILL {session_ID | UOW} [WITH STATUSONLY]

Key
session_ID The session ID of the process to terminate.Int)
UOW The Unit of Work ID of a distributed transaction. (GUID)
STATUSONLY Generate a rollback progress report (for an earlier KILL statement)

The KILL statement may take some time to roll back a long transaction.

KILL WITH STATUSONLY will not terminate or roll back any transactions.
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks (?)
LinkBack to this Thread: http://www.discussweb.com/database-support/4049-sql-server-2005-a.html
Posted By For Type Date
rollback transactions: Blogs, Photos, Videos and more on Technorati This thread Refback 10-12-2007 01:20 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Server Assessment for Sql server 2005? arjkhanna Server Management 3 10-30-2007 11:09 AM