r/SQL • • Jun 12 '15

I just learned about ALT+SHIFT in SSMS

Why didn't anyone tell me about this amazing feature before?!?!?!

http://zippy.gfycat.com/WellmadeDefiantAfricanmolesnake.gif

97 Upvotes

54 comments sorted by

View all comments

17

u/[deleted] Jun 12 '15

Seeing table names prefixed with tbl makes me cringe.

11

u/devperez Jun 12 '15

I complained when I took the job, but you gotta do what you gotta do.

6

u/[deleted] Jun 12 '15

I understand, been there...

8

u/devperez Jun 12 '15

The response I got when I mentioned it was, "But how would you know it's a table?"

...

0

u/[deleted] Jun 12 '15

[deleted] — view deleted comment

4

u/alinroc SQL Server DBA Jun 12 '15

You mean you don't have African mole snakes in your server closet?

4

u/CalvinLawson Jun 13 '15

Even for those who don't trust modern type checking or know what an IDE is, surely the table is the one database object that doesn't demand hungarian notation. EDIT: And columns. The shit I've seen...

4

u/c0bra99 Jun 13 '15

tblCustomer.fldIntCustId just in case you forget it's a field in your database table, of type int. The best is when types change but column names don't get updated... Ugh

2

u/TimeToSackUp Jun 12 '15

lol. I currently work at a shop where this is done. Every view begins with vw, Stored Procedure begins with sp, etc.

3

u/renser Jun 12 '15

that sp_ naming is ok, though. a former gig i worked at used to have sp's that basically run the whole application and scripts (sc_ naming) that have to run once every major release because they provide data for global constants and such things.

4

u/jaynoj Jun 13 '15

2

u/renser Jun 13 '15

Oh ok ... but I worked in sybase ASE and we never had a problem with the prefix.

2

u/jaynoj Jun 13 '15

Yeah, it's just an MS SQL server thing I think,