management-studio

Easily find one stored procedure in SQL Server Management Studio from 1000 in treeview?

Our database is about to reach 1000 stored procedures. Although we were wise and created a good scheme for naming the stored procedures, hunting for the stored procedure you need can be a bit frustrating as you scroll and scroll and scroll. If I know the exact name of the stored procedure I'm looking for, it would be great to identify ...

MSSS Management Studio Object Explorer changes from 2005 to 2008

I'm connecting to a database server (MSSS 2005, 9.0 SP2) which is almost totally without my control. If I connect to it using Management Studio 2005 I can browse the list of tables, views, other objects in some of the databases using object explorer. If I connect to it using Management Studio 2008, I cannot see the list. I can write ...

Remove the date/time in my sql script generated using EM?

When I generate scripts in sql server 2008 EM, it seems to insert the date/time in the script also. How can I remove that? ...

Nonsense Error in SQL Server Management Studio

I have this query that spawns the following error: SELECT * FROM Quota WHERE LEFT(QtLabel, LEN(QtLabel)-2) IN ( '1032', '3300', '9682' ) Msg 536, Level 16, State 5, Line 1 Invalid length parameter passed to the SUBSTRING function. Am I doing something wrong? It tends to show up when I use the LEN() function. Might it be a datat...

Sql server management server

Can I replace Sql Server Management Studio Express with the enterprise version without deleting the express version? If so can you tell me how? ...

Management Studio 2005: Will Cancelling a Statement trigger a Rollback?

A few minutes ago, while working out a new sproc, I executed the wrong delete statement. Something like this: Delete From SomeTable Where SomeStatusID=1 10 seconds into it, I realized that I typed in the wrong status and hit cancel. It said that the statement was canceled. I did a restore to a separate database to get back the table ...

Why is the database diagrams view still showing dropped tables

Using SQLServer 2005 I have dropped some tables (via a T-SQL query) and they are still showing as tables when creating a database diagram! Already tried refreshing, disconnecting and reconnecting. ...

Why does SQL Server Management Studio generate code using square brackets?

When generating code/scripts, why does SQL Server Management Studio generate code using square brackets and not double-quotes? SELECT [NAME] FROM [TABLE] and is there a way (setting/registry entry) to configure it to use double-quotes (the standard) instead? SELECT "NAME" FROM "TABLE" This is very MSFT-ty feature, given that all th...

How do I search for a ', ' and replace with ', '<CR><LF> in SQL Server Management Studio's editor

I have a long query that I'd like to replace the , with a carriage return to put all the fields on their own line but I can't figure out how to do it in the editor. It wont be fool proof, but better than doing it by hand. ...

SQL Server Management Studio Registerd Servers Network location

Is there a way to change the location of the SQL Management Studio 2005 Registered Servers? We want to use the same registered servers inside our team, so it would be great to point to a network location, so after changing a server it will automatically be visible to other team members. The export / import functionality still needs manua...

SQL Management Studio won't open scripts on double-click

I'm used to double-clicking *.sql script files to open them in SQL Server Management Studio. I recently upgraded to Win7, and now when I double-click a script file, SSMS opens with an empty environment. I can then use File/Open or File/Recent Files to open my script, but I would much prefer for it to just open whatever I double-clicked o...

SQL Server 2008 SSIS package compatability

I am trying to save an SSIS package on a sql server running 2005. The issue I have is that I am using SQL Server Management Studio 2008 on my local machine to do this and it won't let me save the package in on the server because its not compatible with 2008. Is their some kind of compatibility option in management studio that I don't kn...

When creating a new table how do I change the default column definition in SQL Server 2008?

Good day, When creating a new table in SSMS - right click on the "Tables" node, choose "New Table..." - the default definition for a new column is nchar(10). Can I change that? Let's say I would like the default column definition to be varchar(5) whenever someone creates a new table. I can't find any sort of option to change that, I'...

SQL Management Studio: Can i change the tray icon?

Hi there, I always have loads on windows open and i can very see the SQL Management Studio when it is minimised, the icon is too light a color Is there a way of changing the icon? ...

Any benefits to SQL Management Studio 2008 when only connecting to SQL Server 2005 databases?

We run SQL Server 2005 exclusively for databases that we use (I'm trying to push to get them upgraded, but alas!). On the client side with Management Studio, are there any benefits to upgrading to SSMS2008 when only connecting to SQL Server 2005 databases? I've seen that Intellisense won't work, so I'm curious if it's worth the hassle. ...

organize sql server enterprise manager DB Diagram view

As i get more and more tables, using the diagram view becomes harder and harder. is there anyway to have it auto order or sort to align joined tables, etc and avoid having to do it manually ...

Can I do a foreign key lookup while importing data into SQL Server 2005?

Background I have a spreadsheet of data that I'm importing into SQL Server 2005. I'm using the Import Wizard in Management Studio to do this. Problem I'm importing the data into Table A. Table A has a foreign key reference to Table B. My spreadsheet contains a value in Table B and I need the key for that value so I can put it into Ta...

Expanding active file tab names in SQL Management Studio?

Is there anyway I can expand the names of any query tabs I have open in SQL Server Management Studio? It's almost impossible to navigate them properly if I have more than five open. See below for an example: http://img697.yfrog.com/i/41684451.jpg/ ...

Structurally and visually organising DBs and tables in SSMS

Hi Within the next few weeks I plan to introduce SQL server to an office that is in dire need of a proper data server. Currently there is a heavy reliance on loose Excel and Access file (supplemented with frighteningly large amount of impenetrable VB code to do data manipulations) strewn all over the internal network. We need SQL serve...

Detect which dataset row violates the DB unique constraint during insertion

I'm inserting rows into a table from other tables in the SQL Server management Studio and some records violates a unique constraint because initial data is 'dirty' and is inconsistent. How can I find which records violate? ...