ssms-2012

How to enter 'NULL' into SSMS cell?

狂风中的少年 提交于 2020-02-20 06:26:12
问题 In SQL Server Management Studio 2012, I was typing/pasting data into a table (via Edit Top 200 Rows). Whenever I typed/pasted NULL in a cell, a NULL value was inserted. Apparently it thought I meant the NULL value instead of the 'NULL' text. Which didn't work, as my column wasn't nullable... Now how do I enter the 'NULL' text into a cell? If I wanted to insert the NULL value, I would have pressed Ctrl + 0 ... 回答1: Just enter 'NULL' (with single quote mark) into cell, SSMS will trim leading

How to enter 'NULL' into SSMS cell?

心已入冬 提交于 2020-02-20 06:25:18
问题 In SQL Server Management Studio 2012, I was typing/pasting data into a table (via Edit Top 200 Rows). Whenever I typed/pasted NULL in a cell, a NULL value was inserted. Apparently it thought I meant the NULL value instead of the 'NULL' text. Which didn't work, as my column wasn't nullable... Now how do I enter the 'NULL' text into a cell? If I wanted to insert the NULL value, I would have pressed Ctrl + 0 ... 回答1: Just enter 'NULL' (with single quote mark) into cell, SSMS will trim leading

Design in Query Editor disabled for Azure databases

大城市里の小女人 提交于 2019-12-31 01:43:08
问题 When I try to manage an Azure Database query in SQL Managements Studio 2012 I see that the "Design in Query Editor" option is disabled. It is enabled for other databases but not for Azure. Is there a way to enable it? Thanks 回答1: Unfortunately, this is a by design issue. Not all SSMS functionality from on-premise SQL Server is supported when connected to Azure SQL database, "Design Query in Edit" greys out because it's not supported for azure sql database. For more information, please refer

Source Type 200 in SQL Server Import and Export Wizard?

吃可爱长大的小学妹 提交于 2019-12-30 07:54:19
问题 I am trying to import data from one database in a server to a new table in a different server, using SQL Server import and Export Wizard. (SQL Server Management Studio 2012) In the wizard, I checked "Write a query to specify the data to transfer", and the SQL statement returns data containing the following four columns: +-----------------------------------------------------------------------------+ | ID(varchar(100)) | Title(text) | Description(text) | IsActive(tinyint)| +--------------------

How to search for a string/substring in SSMS results?

白昼怎懂夜的黑 提交于 2019-12-23 20:11:55
问题 This seems pretty straightforward, but for some reason I'm not finding anything about how to do it. I'm using SQL Server Management Studio 2012, and I have a set of results returned from a SELECT query, say, select a,b from x . How can I search in column b for a substring? In Access I would click on the column and type Ctrl+F, but in SSMS that seems to only be used for searching the SQL itself, not the results. How can I search in my results? I know I can modify my query to only return that

Where is the SQL Query Analyzer in SQL Server Management Studio 2012

♀尐吖头ヾ 提交于 2019-12-20 17:31:48
问题 I have some SQL thats getting run and it is taking to long to return the results / parse / display, etc. application. I have SQL Server Management Studio 2012 installed.but i am not able to find SQL Query Analyser. Any Input will be appreciable. 回答1: Take a look at this link http://consultingblogs.emc.com/jamiethomson/archive/2008/07/10/query-analyzer-or-management-studio.aspx The Query Analyzer (QA) was the query tool provided with SQL Server up until SQL Server 2000. In SQL Server 2005 and

SSMS not releasing system memory

Deadly 提交于 2019-12-14 04:22:59
问题 I just started at a new office as a Data Analyst. The job entails upgrading client systems from our dbase platform to our new RDBMS. The actual conversion is handled by some in-house software that is a black box to me but at the end of the conversion my system memory usage is maxed out ~15.3 of 16GB. I was told to just restart my computer but it seems like there must be a better way (hopefully that doesn't involve fixing the software since that is out of scope for me). I found the question at

SQL IF block code causing error even though it shouldn't execute

跟風遠走 提交于 2019-12-14 03:52:59
问题 I have a case in which I have SQL code with an IF-ELSE block. The code in the IF portion should not be reached, but I still get an error when the SQL executes. In the code I first test for the linked server, and when that fails, @reval is set to 1 and the ELSE block should execute and avoid the code in the IF block that needs to query the linked server, but I get this error: Msg -1, Level 16, State 1, Line 0 SQL Server Network Interfaces: Error Locating Server/Instance Specified [xFFFFFFFF].

DACPAC not including composite objects

*爱你&永不变心* 提交于 2019-12-12 08:59:54
问题 I have a VS2012 database project which includes tables, stored procs, views etc. I then have a second database project which contains a database reference to the first project. I have ensured that the "Include composite objects" options is selected from the "Project Properties -> Debug -> Advanced" menu. When I build the second project and take the resulting DACPAC file and deploy it through SSMS2012 it doesn't create the firsts project's objects. Am I missing something? Why don't the

More-efficient way to modify a CSV file's content

自闭症网瘾萝莉.ら 提交于 2019-12-11 04:58:13
问题 I'm attempting to remove some of the detritus that SSMS 2012 generates when a query's results are exported as CSV. For example, it includes the word 'NULL' for null values and adds milliseconds to datetime values: DATE_COLUMN,DATETIME_COLUMN,TEXT_COLUMN,NUMBER_COLUMN 2015-05-01,2015-05-01 23:00:00.000,LOREM IPSUM,10.3456 NULL,NULL,NULL,0 Unfortunately, Excel doesn't automatically format datetime values with fractional seconds correctly, which lead to confusion amongst the customers ('What