all groups > sql server programming > september 2006 >
You're in the

sql server programming

group:

SSMS


SSMS Bob Johnson
9/30/2006 11:04:24 AM
sql server programming:
Is there any way in SSMS to have the query editor automatically convert all
keywords to upper case?

For example I type in this:
create procedure MyProcedure

.... and the query editor automatically converts it to this:
CREATE PROCEDURE MyProcedure

I'm thinking that - if it can turn keywords blue, it might be able to
convert them to upper case.

Thanks!

Re: SSMS oj
9/30/2006 1:13:26 PM
No. There isn't a setting for this. Also, this could be a major nightmare if
you're dealing with case-sensitive data.

--
-oj



[quoted text, click to view]

Re: SSMS Dan Guzman
9/30/2006 7:50:15 PM
As oj mentioned, this is not currently a setting. If you would like this to
be considered as a feature in a future version, consider submitting it via
Connect:

http://connect.microsoft.com/sqlserver

--
Hope this helps.

Dan Guzman
SQL Server MVP

[quoted text, click to view]

Re: SSMS Tibor Karaszi
10/1/2006 12:00:00 AM
I use SQL Prompt for this. It plugs into SSMS, QA etc.
http://www.red-gate.com/products/sql_prompt/index.htm

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/


[quoted text, click to view]
Re: SSMS Richard S.
10/1/2006 9:06:12 AM
RE:
<< Also, this could be a major nightmare if you're dealing with
case-sensitive data>>

Maybe I'm missing something but are *keywords* case sensitive? Per the OP;
the desired feature would affect only keywords, not table or column names
etc.

Re: SSMS Dan Guzman
10/1/2006 11:37:56 AM
An anomaly is that system data type names are case-sensitive when specified
in an IDENTITY function. The following fails on an instance with a
case-sensitive collation. This is one reason I always specify data type
names in lower case.

SELECT
IDENTITY(INT, 1, 1) AS Col1,
'test' AS Col2
INTO #t2
FROM (SELECT 1 AS Col2) t2
GO

--
Hope this helps.

Dan Guzman
SQL Server MVP

"Tibor Karaszi" <tibor_please.no.email_karaszi@hotmail.nomail.com> wrote in
message news:uzyZlSX5GHA.2208@TK2MSFTNGP04.phx.gbl...
[quoted text, click to view]

Re: SSMS Tibor Karaszi
10/1/2006 6:14:21 PM
Keywords aren't case sensitive. Identifiers (object names) are, with the exception for system
datatypes (but sysname is case sensitive, that I've learned the hard way).

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/


[quoted text, click to view]
Re: SSMS Tibor Karaszi
10/1/2006 7:12:26 PM
[quoted text, click to view]

That was news to me. I also got into habit of specifying datatype names correctly cased, but that
was from the sysname episode. Now I have another reason to do so. :-)

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/


[quoted text, click to view]
AddThis Social Bookmark Button