January 2, 2009 at 11:58 pm
Is it possible to have case sensitive table naming policy in SQL Server 2008.
For example. In a datawarehouse I want all dimension tables to have a name starting with Dim(should be case sensitive, D in capital case)
I tried creating a table naming policy for this.But it allows table names starting with dim, DIM also which is not what I want.
I want the policy to prevent table creation if the table name does not start with Dim( even if it DIM or dim or dIM or any other combination)
Is there any work around for this OR is it the limitation of the feature?
January 4, 2009 at 7:30 am
Change condition to where Table Name = Upper(Name) and then evaluate the policy against your database.
MJ
January 4, 2009 at 8:34 pm
Hi Manu,
Thanks for your reply.
According to you if I use Upper(Name) then the policy will allow only if all the letters in 'dim' are DIM for a table name DIMCustomer.
But what I want is the table name should be start with Dim.
Be careful here. I want only D (in Dim) in capital case and im(in Dim) to be in smaller case.
To be more accurate the name should follow camelcase convention.
I sit possible to do it this way?:D
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply