ssms

Does the Poor Mans T-SQL formatting add-in for Management Studio 2012 work in Management Studio 2014?

 ̄綄美尐妖づ 提交于 2019-11-29 19:50:23
Does the Poor Mans T-SQL formatting add-in for Management Studio 2012 work in Management Studio 2014? In SSMS 2012, if I go to tools, it showed up in the list. In SSMS 2014, it doesn't. I tried to run the installer again, and it gave me options to repair or uninstall. I had the formatter installed prior to installing 2014. EDIT: The tool is available here. alialtansaka Create the folder %SystemDrive%\ProgramData\Microsoft\SQL Server Management Studio\12.0\Addins\ if it does not exist. Then just copy the file from: %SystemDrive%\ProgramData\Microsoft\SQL Server Management Studio\11.0\Addins

How to install SQL Server Management Studio 2012 (SSMS) Express?

邮差的信 提交于 2019-11-29 19:41:12
I just installed SQL Server 2012 Express , I can connect with database from VS2012RC . Database is working :) I use Win7 SP1 64bit . I download program from page I choose ENU\x64\SQLManagementStudio_x64_ENU.exe I want to install Management Studio 2012 , but after unpack installer has stopped. I see only for moment some console application. What could be cause? Where can I find any log file? Usman You need to install ENU\x64\SQLEXPRWT_x64_ENU.exe which is Express with Tools (RTM release. SP1 release can be found here ). As the page states Express with Tools (with LocalDB) Includes the database

How to alter SQL in “Edit Top 200 Rows” in SSMS 2008

对着背影说爱祢 提交于 2019-11-29 18:55:36
In SQL Server 2008 Management Studio, when I right click on a database table and choose " Select Top 100 Rows ", I can then e.g. easily add a "ORDER BY " statement to the SQL. That works fine . But when I do choose " Edit Top 200 Rows ", I don't have the ability to alter the SQL (which makes it hard to find and edit a record just added in the 10,000 that are there. I am quite sure I was able to do this in SQL Server 2000 . Is there any way in SMSS 2008 to alter the way the records are displayed when editing records? David Hall If you right click on any result of "Edit Top 200 Rows" query in

SQL Server. How to refresh the intellisense? [duplicate]

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-29 18:44:05
Possible Duplicate: Lost the IntelliSense SQL Server 2008 Intellisense problem I'm new to SQL Server, so this is probably an easy fix. In SQL Server 2008 R2, I've just imported a new data table and/or renamed fields in an existing table (it happens either way). When I start to write some SQL, the intellisense doesn't recognize the new field names and starts underlining everything. The only fix I've found is to close and reopen SQL Server, but I'm sure there's a simpler solution out there. Suggestions please? (This isn't a serious problem, just a pet peeve). Ctrl + Shift + R will refresh

Populating Drop down with the values from database in play frame work

不羁的心 提交于 2019-11-29 18:12:56
I am new to play frame work and i am finding it bit difficult. i am retrieving list of client names from data base and populating it to a dropdown ,here is my client.java code package models; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.*; import play.db.ebean.Model; public class Client extends Model { /** * */ private static final long serialVersionUID = -1932214701504374792L; public static String ClientName; public static ArrayList<String> Clientdetail= new ArrayList<>(); public

How to open a rpt file as a SQL Table?

故事扮演 提交于 2019-11-29 17:43:43
I have a rpt dump that one of my colleagues gave. I need to open this file as a SQL Table (I presume that this is possible since he generated the rpt dump from the SQL Table). How do I do that. I am using SQL Server Management Studio. I can also open the rpt file as a separate file in SSMS. Though this answer is late, I didn't see a canonical answer to the problem of opening the .rpt file format and writing it to a SQL table. In SQL Server Management Studio in Object Explorer, right click on the database you want to load the file into and choose Tasks... Import Data. Choose Flat File Source,

Convert unknown number of comma separated varchars within 1 column into multiple columns

蓝咒 提交于 2019-11-29 16:41:57
Let me say upfront that I'm a brand-spanking-new SQL Developer. I've researched this and haven't been able to find the answer. I'm working in SSMS 2012 and I have a one-column table (axis1) with values like this: axis1 296.90, 309.4 296.32, 309.81 296.90 300.11, 309.81, 311, 313.89, 314.00, 314.01, V61.8, V62.3 I need to convert this column into multiple columns like so: axis1 axis2 axis3 axis4 296.90 309.4 null null 296.32 309.81 null null 296.90 null null null 300.11 309.81 311 313.89... So far I've tried/considered: select case when charindex(',',Axis1,1)>0 then substring(Axis1,1,CHARINDEX(

SQL Server Management Studio: Increase number of characters displayed in result set

大憨熊 提交于 2019-11-29 16:14:38
I have the following scenario: We have stored procedures which compare our developement database to our customer databases and tell us, what the difference is (so, what we have to update on the customer machine). Now I wrote some additional code to automatically generate the CREATE/ALTER/DROP statements needed to bring the customer database to the same status as our developement database. My code works fine, but I have a problem with SQL Server Management Studio: I can't tell it to display more than 8192 characters per column in the result set while using text output. Is there a way to

xp_regread() returned error 5, 'Access is denied.'

感情迁移 提交于 2019-11-29 16:02:29
I'm running the SQL Server Copy Database Wizard. Of note is that the Operator is NT AUTHORITY\SYSTEM , which I thought should have the authority to run whatever it wants. How can we grant sufficient privileges to NT AUTHORITY\SYSTEM ? I have already tried: GRANT EXECUTE ON xp_regread TO public GRANT EXECUTE ON xp_regread TO [NT AUTHORITY\SYSTEM] And running the following shows that it worked. SELECT grantee_principal.name AS [Grantee] , prmssn.permission_name FROM sys.all_objects AS xproc INNER JOIN sys.database_permissions AS prmssn ON prmssn.major_id=xproc.object_id AND prmssn.minor_id=0 AND

SQL Server Management Studio Logins Dialog missing

旧时模样 提交于 2019-11-29 15:51:39
I am running SQL Server Management Studio v17.6. The online tutorials for creating a new Login show a dialog that comes up when your right-click on Logins and select New Login. I don't see this dialog; instead I get a script to CREATE LOGIN which is OK but I would prefer the dialog. I don't see an option to switch from getting a script to getting the dialog. I don't know if this version does not have the dialog or if I am just not finding the option. Currently this is an Azure SQL limitation. More information can be found here on azure.microsoft.com or here on Microsoft docs. When creating a