ssms

Cannot connect to SQL Server express from SSMS

戏子无情 提交于 2019-12-21 03:42:31
问题 I have installed SQL Server Management Studio 2005. I can't find my server name when I click browse for more but i know that my server name will be the same as the user name as in the picture below. 回答1: Use . or (local) or localhost for server name if you installed the server as default instance. Use .\sqlexpress or localhost\sqlexpress if you have SQL Express. The server name syntax is Servername\InstanceName If the instance is default you use just Servername. For SQL Express, instance name

Cannot connect to SQL Server express from SSMS

拈花ヽ惹草 提交于 2019-12-21 03:42:09
问题 I have installed SQL Server Management Studio 2005. I can't find my server name when I click browse for more but i know that my server name will be the same as the user name as in the picture below. 回答1: Use . or (local) or localhost for server name if you installed the server as default instance. Use .\sqlexpress or localhost\sqlexpress if you have SQL Express. The server name syntax is Servername\InstanceName If the instance is default you use just Servername. For SQL Express, instance name

Grid control in SSMS

梦想与她 提交于 2019-12-21 03:37:04
问题 I notice in SSMS (SQL Server Management Studio 2016), the query results return within a blink of a second (above 10k+ rows). The result table/grid scroll perfectly smooth, and have an extremely low memory footprint (~80MB) on SSMS. This grid/view-like control way out perform either ListView (~200MB, 2-3 seconds) and DataGrid (~600MB, 8-10 seconds). Even if I turn off all visualization or tweak cancententscroll or fix its height to optimize the speed, they still perform far behind the grid in

How to write a parametrized query in management studio?

北战南征 提交于 2019-12-21 03:25:13
问题 From a client application I tyipically do: select * from table where Name = :Parameter and then before executing the query I do :Parameter = 'John' These parameters are not a Search&Replace but real parameters passed to the server. Since I need to test some of those queries in detail, how can I write the query in management studio? I want to write the query with parameters and give a value to the parameter. How can this be done? Update: To remove confusion here I add info to better express

SSMS Change Connection for Query Editor Window

五迷三道 提交于 2019-12-21 03:21:36
问题 Normally when I want to change the connection for a Query Editor Window in SQL Server Management Studio, I can select a new connection from the menus at the top - Query > Connection > Change Connection . However, when I am working on cubes with an analysis services connection - and then open a saved SQL script (such as the underlying SQL view) the Available Databases combobox is blank, and the "Change Connection" and other 3 options in that menu (Connect, Disconnect, Disconnect all queries)

problem with trying to create ssms add-in

江枫思渺然 提交于 2019-12-21 02:50:12
问题 I'm trying to create an add-in for SSMS 2008 and/or 2008 R2 but I've run into a problem straight away. I can get my add-in to work and on SSMS start-up get it to simply show a message box. However, after downloading various code-samples, when trying to reference Microsoft.SqlServer.Management.UI.VSIntegration.ServiceCache I get a null reference exception: Commands2 commands = (Commands2)ServiceCache.ExtensibilityModel.Commands; I get this problem when using SSMS 2008 or SSMS 2008 R2. I'm

A valid destination folder for the install could not be determined when installing SQL Server Management Studio 2016

为君一笑 提交于 2019-12-20 18:33:45
问题 Whilst installing SSMS 2016, I get the following error and setup terminates: SQL Server 2016 Common Files: A valid destination folder for the install could not be determined. I've tried the following solutions: Delete all files in %TEMP% folder Check that BootstrapDir exists in HKLM The above 2 options where suggested on the MS sites. I have administrator privileges and I must also add that I have already installed SSMS 2016 on this machine but I removed it to clean up some space. Any ideas

SSMS Object Explorer - Select Top N Rows missing when connected to Azure DB

ぃ、小莉子 提交于 2019-12-20 17:47:12
问题 I just upgraded my SSMS to 2008 R2. I'm missing the option to select the top 1000 rows from a table, like this: Mine looks like this: I know how to change the number of rows that are displayed, but the options aren't there at all. I saw that someone submitted a bug for this a few years ago, but there was no workaround, and I'm not sure what to do. Any ideas? EDIT - Azure Problem? I just used SSMS to open my local SQL Server, and I get the option to select the top 100 rows. But in my other

How can I generate a script of my database as it is?

二次信任 提交于 2019-12-20 10:04:46
问题 My primary reason for this is to keep track of database schema changes for my application. In SQL Server Management Studio I am able to generate a create script which creates the database but it doesn't contain any test data. Ideally when the script is run it should DROP the existing database (assuming it already exists) and then recreating it using this new script containing schema changes and test data from my development machine. So how can I generate a script that will create a database

SQL Server: Importing database from .mdf?

▼魔方 西西 提交于 2019-12-20 09:57:20
问题 I have an .mdf file on my local box. I have SQL Server 2008 Express and SQL Management Studio 2008 Express installed on my local box. How in the world do I import this .mdf file as a new database into my SQL Server? This seems like a ridiculously common task that must be performed thousands of times a day across the globe, and I cannot figure out how to do it in Management Studio Express. What am I missing? 回答1: See: How to: Attach a Database File to SQL Server Express Login to the database