Showing posts with the label ssms

[FIXED] SQL count using column of date before and after

Issue ID type center;">date Odertime 1 A 2022-03-02 2021-06-23 2 A 2022…

[FIXED] Can't understand why SQL table won't update on statement

Issue In a survey, a row with the question name 3a should equal the sum of the responses from the …

[FIXED] How can I execute a single query in SQL Server Management Studio?

Issue Background: I'm using SQL Server Management Studio 2008 and I have a query window open th…

[FIXED] Hide items from autocomplete menu in SQL Server Management Studio

Issue Does anybody know how to hide specific things from this menu? I want my columns be at number…

[FIXED] Is there a way in SQL Server to force use of a particular server?

Issue This is not to be confused with "USE Database" I work in a company that has many …

[FIXED] How to remove outliers in SQL using Standard Deviation?

Issue I currently have a dataset that contains transactional information, including dates, an amoun…

[FIXED] Missing components for Microsoft Visual Studio 2017 Shell (isolated)

Issue Today I wanted to open Sql Server Management Studio 18 like every day. But this time an error…

[FIXED] Migrate MS Access back-end to SQL Server

Issue I am incredibly frustrated! I have been trying for months to migrate a MS Access database to…

[FIXED] I cannot find my CREATE VIEW table after refreshing even after "Commands completed successfully." message. (SQL)

Issue --Creating View to store data for later visualizations CREATE VIEW PeopleVaccinatedpercent A…

[FIXED] How to query the name of the current SQL Server database instance?

Issue It is a bit of a "chicken or egg" kind of query, but can someone dreamup a query th…

[FIXED] Logging ALL Queries on a SQL Server 2008 Express Database?

Issue Is there a way to tell SQL Server 2008 Express to log every query (including each and every S…

[FIXED] Is it possible to execute code in SQL Server when a user aborts a procedure?

Issue I currently have an audit process that is part of all procedures and it is very basic at a hi…

[FIXED] SQL query to return percentage of rows where binary variable equals a value, by month

Issue I need to run a query that returns the % of rows where the Type column is equal to "Yes&…

[FIXED] How to create table in another schema SSMS

Issue I have created a table in Person schema in AdventureWorks2012 with sql query. But I don'…

[FIXED] How do I view the full content of a text or varchar(MAX) column in SQL Server 2008 Management Studio?

Issue In this live SQL Server 2008 (build 10.0.1600) database, there's an Events table, which …

[FIXED] Why actual execution plan time and elapsed time differs in SSMS?

Issue The actual execution plan of a query shows a total of 2.040s time(taking the sum of time tak…

[FIXED] Problem with mdf database after attached to SSMS

Issue I have a problem with a .mdf database for ETAP 19.01. I tried to attach its .mdf database o…

[FIXED] Inserting data from excel sheet into sql temp table

Issue I have created the following temp table in SQL Server Management Studio: CREATE TABLE ##Logi…

[FIXED] SQL Server 2008 Management Studio Basic and Express

Issue what are the differences between the SQL Server 2008 Management Studio BASIC and SQL Server 2…

[FIXED] How do I grant myself admin access to a local SQL Server instance?

Issue I installed SQL Server 2008 R2 to my local machine. But, I can't create a new database be…