ssms

SQL Server Management Studio - Tabbed Documents

假如想象 提交于 2019-12-30 12:23:00
问题 I am working in SQL Server Management Studio. I can no longer see more than one tab at a time. If I have a script open and start a new query, SSMS closes my open script. If I open from file and select multiple scripts; it opens the first, closes it and opens the next, repeatedly until only the final file selected is open. This began yesterday after I played with the dock settings of my query screen. 回答1: You've probably (somehow) ended up with "Reuse current document window, if saved" ticked,

SQL Server Management Objects

大兔子大兔子 提交于 2019-12-30 08:47:08
问题 Am getting the same error on the code below using either trusted or SQL logins: VS2010, Console app .NET4, Win XP. SQL2005 Full. Bombs on the transfer.TransferData ERROR : errorCode=-1073548784 description=Executing the query "" failed with the following error: "Retrieving the COM class factory for component with CLSID {19E353EF-DAF4-45D8-9A04-FB7F7798DCA7} failed due to the following error: 80040154.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly,

What do the different colored bars in the query editor menu mean in SSMS?

天大地大妈咪最大 提交于 2019-12-30 08:34:50
问题 What's the significance of the color change in this picture? EDIT: I was referring to the yellow and green areas of the scroll bar. 回答1: Blue - SQL keywords - query specification components Pink - Functions Grey - SQL predicates Black - table/column names/aliases The colored bars on the left, next to the line numbers, appear next to lines that have been changed since opening the file: Yellow - Changed lines that have not been saved Green - Changed lines have already been saved 来源: https:/

Manually rename tabs in SSMS

删除回忆录丶 提交于 2019-12-30 08:29:16
问题 I'm always getting confused as to which tab is which in SQL Server Management Studio 2008 R2. I don't find the default naming scheme of tabs very intuitive. Is there a way I can manually rename them? 回答1: then don't use tabs, switch to window view: from the menu: tools - options in the dialog box, environment - general: click on the "MDI" environment radio button I fought with the tabs and gave up, this works better for me. the tabs just show the first few characters, which ends up being the

Manually rename tabs in SSMS

限于喜欢 提交于 2019-12-30 08:29:09
问题 I'm always getting confused as to which tab is which in SQL Server Management Studio 2008 R2. I don't find the default naming scheme of tabs very intuitive. Is there a way I can manually rename them? 回答1: then don't use tabs, switch to window view: from the menu: tools - options in the dialog box, environment - general: click on the "MDI" environment radio button I fought with the tabs and gave up, this works better for me. the tabs just show the first few characters, which ends up being the

Incorrect syntax near 'go' in SQL Server Management Studio

元气小坏坏 提交于 2019-12-30 08:01:52
问题 Executing the following SQL: drop function f go in MS Sql Server Management Studio give me this parse error: Msg 102, Level 15, State 1, Line 1 Incorrect syntax near 'go'. Why? If I open a new tab and copy/paste the SQL into it, it also fails. But If I open a new tab and retype the SQL entirely, it works fine. 回答1: SQL Server Management Studio can't handle some non printable characters. Check the newline characters, probably you have Linux (LF) or Mac style (CR) instead of Windows style (CR

Incorrect syntax near 'go' in SQL Server Management Studio

ぃ、小莉子 提交于 2019-12-30 08:01:44
问题 Executing the following SQL: drop function f go in MS Sql Server Management Studio give me this parse error: Msg 102, Level 15, State 1, Line 1 Incorrect syntax near 'go'. Why? If I open a new tab and copy/paste the SQL into it, it also fails. But If I open a new tab and retype the SQL entirely, it works fine. 回答1: SQL Server Management Studio can't handle some non printable characters. Check the newline characters, probably you have Linux (LF) or Mac style (CR) instead of Windows style (CR

SQL Server: enable remote connections without SSMS

狂风中的少年 提交于 2019-12-30 03:48:06
问题 I've got a SQL Server Express 2008 install on my web server, which by default does not allow remote connections (probably a good thing.) I opted not to install SQL Server Management Studio Express along with it for disk space and other reasons. I need to enable remote connections but any instructions I can find involve using SSMS to change that setting. Surely there's a transact-sql statement of some kind i can from from sqlcmd.exe to change the setting?! Thanks! 回答1: I went into my SMS and

Are there any way to programmatically execute a query with Include Actual Execution Plan and see whether any index suggestion or not

房东的猫 提交于 2019-12-28 18:23:10
问题 I have a quite good number of queries and i want to test each of them with Include Actual Execution Plan feature on sql server management studio However it is not possible for me to do this manually for 1m + queries So i wonder can i execute them programmatically (from c#) with Include Actual Execution Plan feature and see whether SQL server suggests any index or not 回答1: First, before I go in to how to get the Actual Execution Plan in code and find the ones that report needing indexes I

Are there any way to programmatically execute a query with Include Actual Execution Plan and see whether any index suggestion or not

回眸只為那壹抹淺笑 提交于 2019-12-28 18:23:09
问题 I have a quite good number of queries and i want to test each of them with Include Actual Execution Plan feature on sql server management studio However it is not possible for me to do this manually for 1m + queries So i wonder can i execute them programmatically (from c#) with Include Actual Execution Plan feature and see whether SQL server suggests any index or not 回答1: First, before I go in to how to get the Actual Execution Plan in code and find the ones that report needing indexes I