dbTalk Databases Forums  

Getting Automatic Case Changing When Editing

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss Getting Automatic Case Changing When Editing in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gene Wirchenko
 
Posts: n/a

Default Getting Automatic Case Changing When Editing - 12-23-2010 , 09:18 PM






Hello:

Suppose I have a statement like:
select
CustomerFirstName+' '+CustomerLastName as 'Name',
ClearedBalance Balance
from CustomerDetails.Customers

I wish to edit this to add an RTRIM() around the name. Had I
entered this command from the start, I would have:
select
RTRIM(CustomerFirstName+' '+CustomerLastName) as 'Name',
ClearedBalance Balance
from CustomerDetails.Customers

However, unless I am careful with exactly where I position to
start typing "rtrim(", I may well end up with:
select
rtrim(CustomerFirstName+' '+CustomerLastName) as 'Name',
ClearedBalance Balance
from CustomerDetails.Customers

If I am going to have to put up with my code being forced in
capitalisation, I want it to be consistently so. How can I force this
so that no matter how I enter changes, I get the capitalisation as if
I entered the command in one go? It is fine if it does not happen
until I move off the statement.

Sincerely,

Gene Wirchenko

Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Getting Automatic Case Changing When Editing - 12-24-2010 , 04:46 AM






Gene Wirchenko (genew (AT) ocis (DOT) net) writes:
Quote:
If I am going to have to put up with my code being forced in
capitalisation,
You don't have to. Tools->Options->Text Editor->Transact-SQL->IntelliSense.
There is an option for how to handle casing for built-in functions.

--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx

Reply With Quote
  #3  
Old   
Gene Wirchenko
 
Posts: n/a

Default Re: Getting Automatic Case Changing When Editing - 12-27-2010 , 06:30 PM



On Fri, 24 Dec 2010 11:46:32 +0100, Erland Sommarskog
<esquel (AT) sommarskog (DOT) se> wrote:

Quote:
Gene Wirchenko (genew (AT) ocis (DOT) net) writes:
If I am going to have to put up with my code being forced in
capitalisation,

You don't have to. Tools->Options->Text Editor->Transact-SQL->IntelliSense.
There is an option for how to handle casing for built-in functions.
Fine. Suppose I do not mind the capitalisation as long as it is
consistently applied: how do I assure that this happens? (The real
question.)

Sincerely,

Gene Wirchenko

Reply With Quote
  #4  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Getting Automatic Case Changing When Editing - 12-28-2010 , 02:46 PM



Gene Wirchenko (genew (AT) ocis (DOT) net) writes:
Quote:
Fine. Suppose I do not mind the capitalisation as long as it is
consistently applied: how do I assure that this happens? (The real
question.)
Submit a suggestion on http://connect.microsoft.com/SQLServer/feedback/?

Sorry, I just can't stand intellisense, so I have it turned off.

--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx

Reply With Quote
  #5  
Old   
Gene Wirchenko
 
Posts: n/a

Default Re: Getting Automatic Case Changing When Editing - 12-29-2010 , 12:23 AM



On Tue, 28 Dec 2010 21:46:01 +0100, Erland Sommarskog
<esquel (AT) sommarskog (DOT) se> wrote:

Quote:
Gene Wirchenko (genew (AT) ocis (DOT) net) writes:
Fine. Suppose I do not mind the capitalisation as long as it is
consistently applied: how do I assure that this happens? (The real
question.)

Submit a suggestion on http://connect.microsoft.com/SQLServer/feedback/?
Bug report would be more like it.

Quote:
Sorry, I just can't stand intellisense, so I have it turned off.
I generally have it turned off in products that I use, but since
I am learning SQL Server, I have left the settings alone for now.

Sincerely,

Gene Wirchenko

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.