Solved

COLLATE, Compatibility_50_409_0, and CLUSTERED

Posted on 2009-04-13
2
250 Views
Last Modified: 2012-05-06
Hi,

I have an MS-SQL create table script and I need to decipher it a bit, and I need help in figuring out the meaning of 3 things....

1-COLLATE     (150 points)
2-Compatibility_50_409_0     (150 points)
3-CLUSTERED     (150 points)

If possible, please try to explain in laymans terms. (see below the sp)
CREATE TABLE [WorkDone] 
(
	[BatchName] [char] (15) COLLATE Compatibility_50_409_0 NOT NULL ,
	[ScannedDate] [datetime] NOT NULL ,
	CONSTRAINT [PK_ScannedBatch] PRIMARY KEY CLUSTERED 
	(
		[BatchName]
	)  ON [PRIMARY] 
) ON [PRIMARY]
GO

Open in new window

0
Comment
Question by:silentthread2k
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 22

Accepted Solution

by:
dportas earned 300 total points
ID: 24132992
The COLLATE keyword followed by the collation name ("Compatibility_50_409_0") defines the sort order and case-sensitivity of a character column. I haven't come across Compatibility_50_409_0 before but going by the name it looks like it is used for backwards compatibility purposes.

CLUSTERED defines the type of index created for the primary key constraint of this table. Indexes can be either clustered or non-clustered. The difference is in the internal structures used to store index and data pages. You can read details here:
http://msdn.microsoft.com/en-us/library/ms177443.aspx
0
 
LVL 143

Assisted Solution

by:Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3] earned 150 total points
ID: 24133220
I found that a sql 6.5 with great plains installed and then upgraded to sql 7 etc could result in that compatibility value: Compatibility_50_409_0
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question