views:

116

answers:

2

Is there a way to turn this 'feature' off?

+5  A: 

Awesome, I just found it:

Tools -> Options -> Sql Server Object Explorer -> General Scripting Options

Script USE <database> -> False

Shawn Simon
+2  A: 

Tools -> Options -> Sql Server Object Explorer -> Scripting -> Script USE <database> (under the General scripting options heading).

That's in SQL Server 2008 Management Studio, I'm told it's there in 2005, too.

bdukes
It is there in 2005 too.
Forgotten Semicolon