inno setup - SQL Server 2016 silent Installation prompts reboot - sql-server

I am trying to silent install SQL Server 2016 components using a configuration file from my installer using inno setup. The OS I am using is Windows Server 2012 R2.
SQL Server Management Studio (SSMS) is available as a separate installer from 2016 version on wards. So I am required to install the SQL Server first followed my SSMS executable through my installer in one shot.
The problem is, the SQL Server is installed correctly but requires a system reboot before installing the SSMS executable. I tried using /SkipRules=RebootRequiredCheck parameter when I execute the Setup.exe and deleting the PendingFileRenameOperations registry entry (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager) after the installation of SQL Server. But it still requires a system reboot.
Is there a way to skip the system reboot or any other work around possible for my requirement.
Thanks in Advance.

Related

SSIS Package gets corrupted after importing from local machine

I have upgraded from SQL Server 2016 to SQL Server 2019 recently. Before that, I have used Visual Studio 2015 & SSDT on my local machine to create SSIS Packages and deployed them with SSMS 2016 onto the SSIS Server (File System).
After the server upgrade to 2019 I am now using Visual Studio 2019 Community Edition with the extension "SQL Server Integration Services Projects (v3.15)". When I try to deploy the package with SSMS 18.10 from my local machine to the new SSIS Server the package can't be executed. When I manually copy the SSIS package onto the server and use the same SSMS 18.10 installed on the SQL server I can deploy them without any problems.
I have checked what happened to the package after the import from my local machine. It seems that some kind of server-side upgrade process kicks in and replaces all the SSAS processing tasks in the package with a strange task called "SSIS.ReplacementTask", which gives me the error:
The task with the name "Analysis Services Processing Task" and the creation name "SSIS.ReplacementTask" is not registered for use on this computer. Contact Information: ...
I can connect to my SSIS server with SSMS 18.10 without any error messages. However, when I check the DTEXEC version on my local machine, it still says that I am on version 13 (SSIS 2016). Could this be the cause of the problem?
Update
The TargetServerVersion is correctly set to 2019. Still either the SSIS Server or my local SSMS thinks it needs to change/upgrade the package.
I am slowly running out of ideas. Thanks for any help in advance!
Make sure that the package TargetServerVersion property is set to SQL Server 2019:
How to change TargetServerVersion of my SSIS Project

Connection Error for Accessing .mdf after setup

I am building a Desktop App with local .mdf database in VB.NET,I am successfully using the software after installing it from the installer in my main machine where I developed the software via Visual Studio(i.e, naturally SQL Server is installed on that machine).
But When I tried to run the same installer in other machine without Microsoft sql server installed -it was installed successfully-BUT it failed while trying to connect to the .mdf database- giving the message as-
What should I do ? Is it only the Microsoft SQL server not insstalled-which is causing problem?
IF THIS IS THE CASE HOW CAN I HANDLE THIS SITUATION WHERE i MAY FIND MY CLIENT MACHINE SQL SERVER NOT INSTALLED?i.e. Should I modify the pre-requisites?(But I don't have the pre-requisite option of MS SQL Server in Installshield LE).
I got it, It was the sqlLocalDB which was needed as I was working with .mdf database files.I installed it from Microsoft site-the SQL Server Express LocalDB addon

How to get GUI on SQL Server 2012

I have installed a Evaluation 180 days version of SQL Server 2012 from the official website of Microsoft, on a Windows Server 2012 R2 (with gui). At the end of the installation in the Installation center, everything passed and succedeed but when I quit the program, I don't have any way to execute SQL Server from a graphical interface. I can see MS instances created, services running but how can I get a GUI to work with SQL Server?
With the newer version of SQL Servers, the SQL Server Management Studio (the GUI) is a separate install and you will need to install it separately to the database engine installation (which is what you have done). You can download SSMS from here https://www.microsoft.com/en-us/download/details.aspx?id=29062. The page contains a lot of different download components, make sure you check the appropriate install and click download.
ENU\x64\SQLManagementStudio_x64_ENU.exe if you want the 64bit installation of SQL Management Studio
ENU\x86\SQLManagementStudio_x86_ENU.exe for the 32bit version.
you Need to Install SSMS
SQL Server Management Studio (SSMS) is a tool to manage and administer SQL Server and SQL Database.
SSMS is offered free of charge by Microsoft.

Why can I not install SQL Server Express 2016 on Windows 7 Professional 64 bit SP1?

When trying to install SQL Server 2016 Express in Windows 7 Professional x64 SP1 in VMware I get the following message.
What can I do to solve this?
Here is a workaround for users that need SQL 2016 on a Windows 7 development PC. This will allow the developer to develop and manage them by using using MDFs in LocalDB:
If you don't have Visual Studio 2015 then get it or the 2015 Community Edition
Download and install SQL Server Data Tools. SSDT
Note:
When I initially installed Visual Studio 2015 I chose custom install and selected all options. I was assisting someone else troubleshoot their installation so I installed Visual Studio 2015 Community Edition on another Win 7 Computer. I chose custom Install and under Windows and Web Development options I chose Microsoft SQL Server Data Tools. It stated 2012 SQL Server, but after install and restarting I had both the 2014 and 2016 SqlLocalDB (under 120 and 130 folders respectively). SQL Server Data Tools install may not be needed unless you need SSIS, SSAS or SSRS which I do need.
After all of this you will need SQL Server Management Studio 2016 or higher to connect to the local db and access the 2016 functionality.
After you have installed this there should be a SQL Local DB command Line tool installed. My install location was D:\Programfiles\130\Tools\Binn\SqlLocalDB.exe
The default install location as pointed out by Discosultan may be:
D:\Program Files\Microsoft SQL Server\130\Tools\Binn\SqlLocalDB.exe
My install path was different, but that may be due to the several versions and related components of SQL server that I have installed on the PC and the manner of my installs. Once you have done the install you can search for SqlLocalDB.exe if you have multiple versions and navigate to the 2016 version, (product version 13 in the 130 subfolder).
You can find the install folder path in the registry for SQL 2016 by reviewing the following Registry Entry in HKEY_LOCAL_MACHINE (Abbreviated to HKLM below):
HKLM\SOFTWARE\Microsoft\Microsoft SQL Server Local DB\Installed Versions\13.0
You can run the command line from there or add the directory to the path statement. I have multiple versions so I just go to the directory. Then you create a localDB instance and start it:
SqlLocalDB create "LocalDBExample2016" -s
SqlLocalDB Utility Command Line Reference
From that point if you prefer the GUI you can open SQL server Management Studio 2016 or through Visual Studio and connect to server:
(localdb)\LocalDBExample2016
From there you can add databases, etc.
The mdf and log files will default to C:\Users\[UserName], but they can be moved when creating the databases or copied elsewhere and given to the DBAs, etc. Some of the features won't be available like in memory OLTP tables. Here are the edition comparisons: Editions and Supported Features for SQL Server 2016
As the error message states SQL Server 2016 is not supported in Windows 7. You will have to upgrade to Windows 8 or higher or switch to a Windows Server operating system. Here is a list of all the operating systems (and other hardware and software requirements) in which SQL Server 2016 can be installed.
Late to the party, but while you can't install SQL 2017 Express or 2016 Express on Windows 7, you can install SQL 2014 Express. This may not work for compatibility purposes if you're dealing with a newer version of SQL (although I've been able to install the non-express version of SQL 2016 and 2017 to Windows 7) but if you're supporting something that uses an older version of SQL Express (which, frankly, is likely if you don't have access to a newer OS) this should work well enough.

Installing SQL Server 2005 on Windows 8 [duplicate]

This question already has answers here:
How to install SQL Server 2005 Express in Windows 8
(6 answers)
Closed 9 years ago.
How to install SQL Server 2005 on Windows 8 64 bit?
Perform these steps:-
Extract sqlncli.msi / sqlncli_x64.msi from SP3 or SP4. I did it from SP4
Install sqlncli
Start SQL Server 2005 Setup
During setup I recieved an error The SQL Server service failed to start. For more information, see the SQL Server Books Online topics,
“How to: View SQL Server 2005 Setup Log Files” and “Starting SQL
Server Manually.”
Don’t click cancel yet. From an installation of SQL Server 2005 SP3 or SP4 copy SQLSERVR.EXE and SQLOS.DLL files and put them in your SQL
install folder.
Click RETRY
From the reference Thread:-
Microsoft says the SQL Server 2005 it's not compatible with Windows 8,
but I've run it without problems (only using SP3) except the
installation.
After you run the install file SQLExpr.exe look for a hidden folder
recently created in the C drive. Copy the contents to another folder
and cancel the installer (or use WinRar to open the file and extract
the contents to a temp folder)
After that, find the file sqlncli_x64.msi in the setup folder, and run
it.
Now you are ready the run the setup.exe file and install SQL server
2005 without errors
See
SQL Server 2005 is NOT supported in Windows 8. You need to change the server version or the operating system.

Resources