Re: SQL Server 2005 Opening Script File Problem
- From: Erland Sommarskog <esquel@xxxxxxxxxxxxx>
- Date: Thu, 17 Aug 2006 22:13:18 +0000 (UTC)
(mollyf@xxxxxxxxxxx) writes:
I just installed SQL Server 2005 on my PC (the developer's edition)
yesterday. I have some scripts written by one of my coworkers to
create some tables and stored procedures in a database that I've
already created on my computer. Whenever I go to open the script file
(whose icon shows that it's a SQL Server Query File and I've got the
file type set to open with SQLWB - SQL Server Management Studio), the
file opens in Notepad instead of appearing in the query window. My
coworker told me that he just dragged and dropped the file in the query
window and I tried that and got the same results (opening in Notepad).
I can copy and paste the cotents of the file into the query window and
run it but of course this gets cumbersome for long scripts.
Is there a setting or something that I need to change? I have SQL
Server 2000 installed on my computer too.
First thing is to go the Windows Explorer, and in the menu pick
Tools->Folder Options, and there to go the View tab. Make sure that
"Hide file extentions for known file types" is unchecked. (Overall, any
good programmer who gets a new box should always go this dialog and
change this setting and a few more which have stupid defaults.)
Now you can see which extensions, you coworker's file has. In the next
tab in Folder Options, you can check the association for that file type.
You can also change associations from Tools->Customise->Text Editor in
Mgmt Studio.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- Follow-Ups:
- Re: SQL Server 2005 Opening Script File Problem
- From: mollyf
- Re: SQL Server 2005 Opening Script File Problem
- References:
- SQL Server 2005 Opening Script File Problem
- From: mollyf
- SQL Server 2005 Opening Script File Problem
- Prev by Date: Re: Best way to move datafile from C drive to D
- Next by Date: Re: how to add primary key in existing table
- Previous by thread: Re: SQL Server 2005 Opening Script File Problem
- Next by thread: Re: SQL Server 2005 Opening Script File Problem
- Index(es):
Relevant Pages
|
Loading