Questions tagged [ssms]

Microsoft SQL Server Management Studio is a graphical tool for configuring, managing, and administering all components within Microsoft SQL Server. Use this tag for questions about SSMS features that are relevant for programming. Don't use it if you're only using SSMS.

Filter by
Sorted by
Tagged with
0 votes
0 answers
8 views

Generate log file with dynamic name with sqlcmd within SSMS

How do I generate the log file with dynamic name using sqlcmd within SSMS? The following is the script I am using, I would like to generate the logs file that has name linked to the runtime time %...
mike's user avatar
  • 31
-1 votes
0 answers
24 views

Convert an .sql file from a SQLBase server in to SSMS

I am attempting to convert a .sql file from a SQLBase server in to SSMS but am having trouble doing so. The file contains queries that will create a database with 600+ tables and their data. The ...
jeremiahgarrett's user avatar
-2 votes
0 answers
17 views

RDS SQL server (Does not connect)

You are trying to connect to SQL server without Amazon RDS or other SSMS sending all of your information to be correct and not diverging if it appears erroneous when trying to connect: TITLE: Connect ...
Breno Ribeiro's user avatar
0 votes
0 answers
31 views

How to solve "Internal connection fatal error. Error state: 15, Token : 23 (System.Data)" when connecting to SQL Server [closed]

I'm running in to an issue where I can no longer connect to my SQL Server on my local machine. Whenever I connect to my SQL Server through Microsoft SQL Server Management Studio, I get this error: ...
EricR's user avatar
  • 9
0 votes
0 answers
15 views

Metadata and normalization

I'm a beginner with SQL. I want to do some data exploration in SSMS for my portfolio. I decided to use a database from Kaggle for it. The database contains a .csv file called metadata: There's also a ...
Rei Daemondheart's user avatar
-1 votes
0 answers
8 views

I am taking online dataset from git hub of covid-19 for analyzing it, while importing it from MS EXCEL TO SSMS, we have loose much of it values

while importing data from MS EXCEL to SSMS, we have lost much of it, please guide me why we lost too much columns and replace their values with NULL. I am expecting that the data that we import to ...
Talha Tayyab's user avatar
0 votes
1 answer
28 views

Open multiple tables in MSSQL at once with editing mode (EDIT TOP 200 ROWS)

Sometimes to solve a certain issue I need to open (by open I mean right click => EDIT TOP 200 ROWS) about 5 different tables and do the necessary changes in them. Is it possible to automate the ...
whatever61's user avatar
1 vote
1 answer
38 views

Uneven performances between EF Core and SSMS

I'm running a parametrized 'SELECT' query using EF Core over a large SQL Server database. When running the exact same query (with the same parameter values) from SQL Server Management Studio (SSMS), I ...
Olivier Leneveu's user avatar
-1 votes
0 answers
11 views

remove lines with 1 day difference

I have the scenario below: 12/31/9999 - This is a dummy term date and means the line is active Name Active date Term Date Product JOE JJ 1/1/2024 1/2/2024 985 JOE JJ 1/3/2024 12/31/9999 985 Angie ...
Christina Wuerz's user avatar
0 votes
0 answers
20 views

Connect to SQL Server 2022 DB Engine [duplicate]

I have installed SQL Server 2022 developer edition and SQL Server 2022 management studio successfully on my new Windows 11 laptop. When I open management studio and attempt to connect to SQL Server DB ...
DavidR's user avatar
  • 1
0 votes
1 answer
49 views

What script does SSMS run when asking for the 'Effective' items on the 'Permissions' screen for a table?

Suppose that I want to see who has permissions on a table in my database. In my ignorance, I trust the GUI to give me all of the answers. I therefore open up the database in SSMS and navigate to the ...
J. Mini's user avatar
  • 1,954
0 votes
0 answers
40 views

View Dependencies misses calls to some three-part names in a stored procedure. Is this normal?

I've inherited a stored procedure. It begins like this. USE [DBFOO] GO CREATE PROCEDURE [dbo].[sp_Bar] AS BEGIN DECLARE @TODAY DATETIME = GETDATE() BEGIN TRUNCATE TABLE [DBFOO].[dbo].[MyTable1] ...
J. Mini's user avatar
  • 1,954
0 votes
0 answers
38 views

How do you leave comments in Azure Synapse Analytics views and what are the best practices for comments?

I'm seeking out best methods for adding coding comments to views in Azure Synapse Analytics. Synapse has been a bit tricky to use since some of what I expect to be basic T-SQL are not available in ...
OrphanedRecordAnnie's user avatar
-2 votes
0 answers
16 views

How to fix error connecting Management Studio to SQL Server? [duplicate]

I have installed SQL Server 2022 developer edition and SQL Server 2022 management studio successfully. When I open management studio and attempt to connect to SQL Server I get this error message. When ...
DavidR's user avatar
  • 1
0 votes
2 answers
39 views

SSMS Login Password getting DELETED when the SSIS package is run using that login

I have created a SQL Login on a server (given SysAdmin permission to a single database on that server). And I am using this SQL Login in the SSIS package which will be basically truncating all the ...
PrettyCode's user avatar
-3 votes
0 answers
27 views

The certificate chain is issued by a non-trusted certificate authority [duplicate]

When trying to connect to SQL Server, I get this error: A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: ...
Chārry's user avatar
0 votes
0 answers
31 views

I want to create a user in SSMS 18 with permission to select, create view, and drop view

I'm using the following code, but it's also allowing the use of create table and drop table. CREATE LOGIN usuario WITH PASSWORD = 'Dd123.456'; USE banco; CREATE USER usuario FOR LOGIN usuario ; USE ...
Joel Duarte's user avatar
0 votes
0 answers
37 views

Openrowset doesn't execute in SQL Server

I am trying to take data from an Excel sheet and store it into SQL Server 2019 through the Openrowset statement. First I asked to enable 'ad hoc distributed queries' and 'show Advanced Options', which ...
Sebastián Soto's user avatar
-2 votes
0 answers
11 views

MS SQL Server Management Studio, how to change keyboard short cut to F5 for both 'Select Top 1000' and 'Edit top 200'?

In the tables list, 2 of your choices are 'Select Top 1000' and 'Edit top 200'. I want both of the queries to execute with an F5 shortcut. I've tried all kinds of ways, and one of the hard parts is ...
Doug Cassidy's user avatar
  • 1,816
0 votes
0 answers
46 views

SSMS SSIS Execution Reports Not Loading

I recently lost the ability to run execution reports on all SSIS packages in SSMS. In addition to this I am no longer able to run SSIS packages in Visual Studio. I have reinstalled SSMS to a more ...
GandalfTheFoolish's user avatar
0 votes
1 answer
34 views

Connect Local SQL Database to Budibase

I have a SQL Server database on my machine that I use with Microsoft SQL Server Management Studio (using Windows auth). I want to connect this database to BudiBase. It asks for Host, Port, User, and ...
Abhiram Patil's user avatar
-1 votes
1 answer
48 views

Combination of SQL Select statements

I am trying to take a "snapshot" of a state of some tables of our database. I have finished a few of them and I am currently working on the last, however for the last one I need to query two ...
wildercameron25's user avatar
1 vote
1 answer
92 views

Connection to Azure SQL Server

While trying to connect to my server on Azure using SSMS I get the following error: Reason: An instance-specific error occurred while establishing a connection to SQL Server. Connection was denied ...
Nomfundo Florence's user avatar
-4 votes
1 answer
142 views

Is there a way to duplicate and sort a table in SSMS?

I have an inventory table on a Microsoft SQL Server with around 550 rows of data in columns like AssetID, AssignedName, WarrantyExpires, etc. However, this data is not in any order. From what I've ...
Geekmeist's user avatar
-1 votes
1 answer
34 views

TSQL Using 2 tables, one with historic dates only and one with future dates

I'm struggling to create a view to pull data from 2 tables. One is historic shelf balance data (2 years worth) and the other is the projected shelf balances. The data is weekly in both (Mondays) and ...
jt721's user avatar
  • 1
0 votes
0 answers
19 views

Pivot Query is not converting all rows into columns

I wrote pivot query to convert rows of 'Service_Center' [column name] into columns, 'Service_Center' [column name] has three rows , two rows are namely ' Faisalabad ' and one is ' Gujranwala ' [...
M Umer's user avatar
  • 1
0 votes
0 answers
18 views

I continue to get a truncation error when trying to import a pipe delimited CSV into ssms

I am having some trouble loading a flat file into a database as a table using the wizard. I keep getting a truncation error no matter if I change the type to varchar to max, change the type to a ...
Colton Malich's user avatar
0 votes
2 answers
57 views

Same ID multiple states

I am pulling in ID #s. For each ID# there is a state 'Approved', 'Exists', 'Draft', 'Active', 'Review', 'Preliminary', 'Development', or NULL OR obsolete. I **don't** want to include any rows where ID ...
user22441973's user avatar
0 votes
0 answers
24 views

Source Control for SQL Server Management Studio 2019

Any idea how to add the source control option under tools to Sql server management studio 2019. SSMS Source control option I came across a post that advises to edit the ssms.pkgundef file but this is ...
Amy's user avatar
  • 1
0 votes
0 answers
26 views

How to pass inputs to call specific parameters when running different SQL Server Agent job that runs the same SSIS package

There is one package that all it does is move files from one location to another. Now there are parameters which is stored in a SQL Server table which identifies different locations. The goal is that ...
Junsh's user avatar
  • 35
0 votes
0 answers
28 views

Adding a Button/Command to Context Menu in SSMS SQL Query Editor Extension

I'm attempting to create a Visual Studio/SSMS extension that adds a command/button to the context menu in the SQL Query Editor window. Initially, I tried using IDM_VS_CTXT_CODEWIN. Although it works ...
Revircs's user avatar
  • 1,312
0 votes
1 answer
16 views

How to start SSMS and have 2 queries open and automatically connect to the right server/database?

I'd like to start SSMS and have 2 queries (SQL scripts) open and automatically connect to the right server/database (same server, different DBs): "QueryA.sql" | Server: myServer | Database: ...
Nick Petrie's user avatar
  • 5,374
-1 votes
0 answers
8 views

Can the tabs for query windows be configured to display vertically rather than horizontally?

I frequently have a dozen or so query windows open while working. I would like to see all of them in one place (instead of needing to click on a down arrow and select it.) If all the tabs were ...
donohealy's user avatar
-1 votes
0 answers
112 views

Select query throwing error OLE DB provider "MSOLEDBSQL" for linked server "xxx.xx" returned message "Communication link failure" for one table

We are connecting a client database using linked server created in SQL Server. SQL Server Management Studio version 15.0.184242.0 (v18.12.1) and OLDB version is v17. Using the linked server we are ...
ACT's user avatar
  • 147
0 votes
1 answer
61 views

How can I encrypt the password in a SQL Server table which is linked to Access Front-End to improve security?

I'm looking to encrypt the user's password in SQL Server table. Is there a way that when a user login's in Access Front-end with their username and password, the password matches with the encrypted ...
Harry 's user avatar
  • 23
-2 votes
1 answer
29 views

Count of all individual tables in a schema

I have a schema which has more than 100 tables. Is there a way in SQL server to find the count of all individual tables without entering the table names 100 times. The result set should display ...
Ashutosh Mahato's user avatar
0 votes
1 answer
43 views

Pyodbc not using default database when running from SSMS?

I created a python script that uses pyodbc to connect to SQL, runs a simple select query, and uses xlsxwriter to export the results to Excel. Everything works great when I run the script from VS Code. ...
awhitworth06's user avatar
0 votes
0 answers
10 views

Is it possible schedule a deployment from Visual Studio 2019 (SSIS) to Sql Server Management Studio 2018?

I have Visual Studio 2019 where I work on various SSIS packages and projects that I then deploy to SSMS 2018. I'm aware of how to deploy packages and projects in general using the deployment wizard, ...
user8675309's user avatar
0 votes
1 answer
53 views

SQL Between Function Isn't Getting All Data It Should Get

There is a standard query to pull information from a table. I am using the between function to pull data from a specific date range. But there is a problem. Let's say the date range is 2023-6-1 and ...
Junsh's user avatar
  • 35
0 votes
1 answer
86 views

False Error - Cannot find the object "TABLE" because it does not exist or you do not have permissions

I have been getting this error using the SSMS 2019 (19.0.1) table designer: Cannot find the object "xxxxx" because it does not exist or you do not have permissions. In the past, I have ...
NealWalters's user avatar
  • 17.2k
0 votes
0 answers
31 views

Passing Parameters From Excel Value in Cell to to SQL Server via SSMS v19.1

I recently installed SQL Server Management Studio (SSMS) v 19.1. The SQL Server Native Client (SNAC) 11 has been removed from this version. I have several Excel (365) workbooks and templates that use ...
Bonneroo's user avatar
-1 votes
1 answer
53 views

Resolving "String or binary data would be truncated" error when provided line is inaccurate

I am running SQL Server 2017 using SQL Server Management Studio. The details I can give about my error are that it reads as follows: Failed to load data into -- Database due to : String or binary ...
jatwork's user avatar
0 votes
0 answers
34 views

Connecting SQL Server with Power BI and Power Automate

I am trying to insert data into my SQL Server database in SSMS using Power BI Desktop and Power Automate. I have successfully imported a test table from my database into Power BI. Now, I want to ...
fiicooxx's user avatar
0 votes
0 answers
23 views

Importing large sql file

So, I have been searching related threads for a while but still couldn't import .sql file that is about 6gb. Following is a code I've been throwing to a cmd with elevated authority: sqlcmd -S ...
Lee Vincent's user avatar
-2 votes
2 answers
99 views

Having problems importing excel worksheet into SQL Server Management Studio

My laptop is windows and my system type is 64-bit. I have the newest version of SSMS (19.1) downloaded and when I try to import the data into my database I get the error The 'Microsoft.ACE.0LEDB.12.0'...
EricE's user avatar
  • 1
-1 votes
1 answer
86 views

Issues connecting to Azure SQL db with OLEDB 19 drivers for SQL Server

A vendor has a SQL azure database I need to connect to. They advised I will need the oledb 19 drivers, which I have installed. I can connect from Visual Studio, and from SSMS v17.9.1. I cannot however ...
wilson_smyth's user avatar
  • 1,228
1 vote
2 answers
33 views

SQL JOB with html report

This is the code that is supposed to return an html report by and ssms job. DECLARE @DataInicialMesAnterior DATE, @DataFinalMesAnterior DATE; SET @DataInicialMesAnterior = DATEADD(MONTH, DATEDIFF(...
David Sousa's user avatar
0 votes
1 answer
18 views

SQL server 2014 calculating hours in between

I am having trouble with calculating something in a query and need some help! Here is the sample data table: PERSONNUM PunchStart PunchEnd PayCodeName 100038 2023-05-06 07:30:00.000 REST VIOLATION ...
Carl Blunck's user avatar
0 votes
1 answer
23 views

Count number of times 2 values appear at the same time in two columns

Was able to use: Count number of times value appears in particular column in MySQL to write: select ScheduleId,count(*) as s, EmployeeId,count(*) as e from Schedules group by ScheduleId, ...
John's user avatar
  • 3,979
0 votes
1 answer
39 views

How To Distinct 'or' condition in a Query

WITH irelevant as ( SELECT [Entity_Number] from [HFA_M].[dbo].[IB_Entity_Events] where Event_Code in ('1552', '1567')) -- כל הבקשות שקיבלו קוד 1552,1567 לסינון בהמשך השאילתה SELECT ...
Tal's user avatar
  • 1

1
2 3 4 5
150