deployment facing - sql-server

hi i am not able to create ssis catalog in my management studio?
it is showing this error....
The catalog backup file 'C:\Program Files\Microsoft SQL Server\110\DTS\Binn\SSISDBBackup.bak' could not be accessed. Make sure the database file exists, and the SQL Server service account is able to access it. (Microsoft.SqlServer.IntegrationServices.Common.ObjectModel)

I have the same issue. Trying to google my way through it. Things I have noted in answers from other sites:
Integration Services has to be part of your SQL Server install
(update the product and add if missing, this will add the file)
Version of SQL Server Management Studio and SQL Server engine need to match
File may be in the wrong location, find it and copy it into where SQL Server is looking for it.
Run SQL Server Management Studio as Administrator to avoid permissions issues
My solution was that I was attempting to create the SSIS DB on a remote server and not the server I was logged into. Once I attempted on the local server it worked fine.

Related

How do I create a new server in SQL Server Management Studio?

The questions is basically the title because I could not find any articles to help as they only help on how to create a new database however I cant seem to create/join my own server.
The first picture attached is what I've seen other people do in order to get in however, I get an error when i try to connect
SQL Server and SSMS are two seperate softwares. SQL Server creates a database engine on your machine and SSMS is used to visualize or perform operations on these Database Servers. You Need to install both SQL Server and SSMS. While you seem to have install only SSMS.
You Can Install SQL Server from this link
SQL Server Download
You can follow this link to SQL Server Installation Tutorial

How to connect to a local database in SQL Server Management Studio?

I have downloaded the SQL Server Management Studio (SSMS) 2016 to recover a huge .bak file which is an old backup of a database. But first of all I need to connect to a DB Server.
After install, I execute SSMS and it asks me to connect to a DB Server. I don't have any and I saw that it is possible to create a "local" db by typing only a dot '.' for Server Name and use Windows authentication.
It is not working; how to do it?
Open SSMS -> Connect
Server name: (LocalDb)\MSSQLLocalDB,
Choose Windows Authentication.
For a reference:
You need to download and install SQL LocalDB. It is a special edition of SQL Server that does not allow remote connection and supports windows integrated authentication only. It is a simple one click MSI install so it is easy to deploy.
To download and install SQL Server 2016 Express, go to SQL Server
downloads. LocalDB is a feature you select during installation, and is
available when you download the media. If you download the media,
either choose Express Advanced or the LocalDB package.
The above means that now you have to download and run a small downloader (cca 5 MB), select LocalDB (44 MB) and the Microsoft downloader will download MSI package to the folder you select. Then just run MSI package and LocalDB gets installed.
To recover your Dump, you need one server where your dump will get uploaded.
For this you need one MS server. you can connect to server using username and password. After connection to server you can create a DB in which you want the dump to get imported.
If your SQL dump contains create Database statement, then you don't need to create one.
If its possible to open SQL dump in text file, you can see Database name required to create or its already have statement to create DB.
In my case, solution was using my notebook name and SQLEXPRESS like DESKTOPXPTO\SQLEXPRESS
I was able to connect to local host in ssms ,after downloading SQL server developer.
As mentioned in - https://learn.microsoft.com/en-us/sql/ssms/quickstarts/ssms-connect-query-sql-server?view=sql-server-ver16
Prerequisites
To complete this quickstart, you need the following prerequisites:
Install SQL Server Management Studio.
Install and configure a SQL Server instance
https://www.microsoft.com/en-in/sql-server/sql-server-downloads?rtc=1

Creating Database in Visual Studio 2015

I am trying to create a database in Visual Studio 2015 MVC setup. When I create a new file in the "App_Data" folder and select SQL Server Database, a popup comes up that says the following:
"Connections to SQL Server database files (.mdf) require LocalDB or
SQL Server Express to be installed and running on the local computer.
You may need to modify the setup and ensure Microsoft SQL Server Data
Tools is selected."
I have already installed SQL Express in my computer. But Visual Studio still shows the same popup. Can anyone please give me a step by step instruction on how to create a DB through Visual Studio 2015?
(My thought was if I clicked on new file->SQL server Database, then a popup would launch allowing me to input my data and name it. But I obviously am unable to do that).
Make sure that SQL Server is up and running. Open up SQL Server Management Studios (installed with SQL Server) and try and connect to the instance that you created (should be the same as your machine name). If it fails to connect, SQL Server might not be running.
To turn it on, open SQL Server Configuration Manager (just do a search and it'll show up), go to SQL Server Services, and turn on the database engine. You should then be able to connect to the database.

Importing a MDF file into SQL Server 2008?

I have inherited a VB.net web app that I'm making some changes on. I'm perfectly capable with the programming side (VB and MSSQL) but I'm getting lost with the tools. I was given a zip file of the code and everything. I opened the sln file in Visual Studio 2005 and it worked fairly easily with little modification.
Running the app works perfectly. Problem is, I need to write some new SPs so need the database admin. SQL Server 2008 Express is installed but it doesn't see any database and I have no idea how to import it.
I have a folder App_Data in the project with the file ASPNETDB.MDF. Opening this in VS gived the error:
This server version is not supported. You must have Microsoft SQL Server 2005 Beta 2 or later.
Any ideas where to go from here?
You need to get Sql Server Management Studio. From there you should be able to connect to the instance of Sql Server Express running on your system and tell it to attach to the .mdf file. This will allow you to use that database from withing sql server and management studio, and you will be able to add your stored procedure. Just remember to detach again when you're done, or you won't be able to use the mdf file as you expect from your app.
Visual Studio uses SMO 2005 to connec to to SQL. The SMO 2005 will not connect to SQL 2008 by design. You need to either upgrade VS to VS 2008, or downgrade Express to Express 2005.
You can't attach mdf file made in SQL Server 2005 to a SQL Server 2008 instance. What you need is to install SQL Server 2005 Express, attach this file, backup database, then restore it on 2008 Server instance and detach the database. You will get properly created for 2008 Server mdf.

How do I open a local SQL server database file outside of Visual Studio?

Is it possible to open a .mdf database file created in Visual Studio with some external SQL server IDE like Quest Toad for SQL server? Databases created in Visual Studio are rather similar to simple Access databases in that they're a single file.
It appears external IDE's like Toad can't see the .mdf being served by my localhost's SQL server instance under MYMACHINE\SQLEXPRESS - I assume because these files are only served within Visual Studio with the .Net framework provider for SQL server, so my local sql server instance doesn't serve these files. Is that the case? Is there some way to access these databases locally outside of Visual Studio?
Thanks in advance!
What you are seeing are user instances. Sql Express only loads those upon request with a special connection string. It is possible to use Sql Management Studio Express in combination with the SSETool to load an instance so you can management more details
Download TOAD for SQL Server.
You don't point TOAD to an MDF file. You point it to the SQL Server application that is serving the MDF file. If you are using SQL Server Express (2005), the server would default to ./SQLEXPRESS and you would use Windows authentication.
a problem you may be having with sql express is it might not be on the standard port, look at my answer here to see if it helps: https://stackoverflow.com/questions/449607#449656

Resources