Quantcast
Channel: SQL Server Setup & Upgrade forum
Viewing all 8133 articles
Browse latest View live

SQL Server 2016 Express Basic installation error

$
0
0

I.m trying to install Sql Server 2016 Express basic on my laptop (windows 10). At the end of installation I got an error : trying to perform a not-authorized process.

The detail file from the log has the following error :

The configuration failure category of current exception is ConfigurationFailure
Configuration action failed for feature SQL_Engine_Core_Inst during timing ConfigNonRC and scenario ConfigNonRC.

I started the installation as an administrator and I disabled the firewall, but the installation still  fails.  I suppose I have to change something in my configuration, but I don't know what to do.

Best regards,

Thijs


Add files to tempDB: what to watch for

$
0
0

I've read that adding multiple data (ndf) files to tempdb, all of the same size, should reduce contention in this much-used DB. How can I tell (e.g. performance counters, DMV) if, in fact, adding the extra files has improved things or not?

TIA,

edm2

SQL 2016 not showing Mapped Raw Drive

$
0
0

Hello,

I have SQL 2008 Management studio and when open i can see the mapped raw drive but on SQL Management studio of 2016 it does not show.

Can someone guide me on this one.

Set up two computers on LAN to use the same SQL Server database

$
0
0

Hi,

Let's start with the simple requirement, so that you know where I'm trying to go: I need to access one database from two computers. I would prefer the database be a local one in the home network. Re-creating the current database is not a problem. The solution has to work with SQL Server 2016.

So what do I have now:

A database on local computer, that I can access from that very same computer.

I also have another computer, that I can use to access the computer in Windows network, that is, to see for example the shared printers.

I have configured to the server properties that "Allow remote connections to this server" are enabled.

I have checked that my Windows firewall allows connections using this given, 49172 TCP port.

I have enabled TCP/IP from Sql Server Configuration Manager / Protocols for MSSQLSERVER

I have created an SQL Server login account "a" with password "b" on the server.

I have tried with Windows Authentication too.

I have tried to connect using address servercomputername\databasename,49172. Error 258 comes out (not found or not accessible). I have tried also with servercomputername,49172. Same error.

I have rebooted the server computer.

Obviously I'm missing something important here, but what?

And yes, going with some "why don't you"-answer is fine too.


Missing MSI files error during SQL Server Patching

$
0
0

I added a new node to a SQL Server failover cluster. When i was trying to update the SQL server 2008  r2 with SP2 on the New node I got an error . All the existing nodes already have  SQL Server service SP2, so the new node also needs to be SP2. I am getting the missing msi file error when applying SP2 to the new node.

SQL Server Setup has encountered the following error:

The cached MSI file 'C:\Windows\Installer\df540d0.msi' is missing.
Its original file is 'sql_engine_core_inst_loc.msi' and it was installed for product 'SQL Server 2008 R2 Database Engine Services'
from 'E:\en_sqlserver2008r2ent_x86_x64\1033_ENU_LP\x64\setup\sql_engine_core_inst_loc_msi\',
 version '10.50.1600.1', language 'ENU'.
To resolve this problem, recover the missing file from the installation media and start setup again.
For more information about how to resolve this problem, see 'Steps to restore the missing Windows Installer cache files' (http://go.microsoft.com/fwlink/?LinkId=144387)  in the Microsoft Knowledge Base.

Error code 0x84B20002.

My questions are:

1) how do the msi files become missing? Are they deleted automatically or do they get deleted manually?

2) I have read articles online about how to resolve the problem. But what i need to know is how and why do the files get missing?


access to management studio

$
0
0

Hi,

I would like to know what will be the right way to provide optimized from security point of view access to DB_owner of it's particular DB....

The scenario:

I need to provide access to particular DB of one DB_owner.

1. I think that I can add Standard AD user account of DB_owner to SQL server remote access group. So he can open remote session as a Standard user and than open Management Studio being a DB_owner.

2. or even more secure (if possible) to provide remote access to one of Windows VM with only ManStudio installed from which he can connect to DB. I am just guessing that Management studio should work from any network computer that is able to connect to SQL server.

Would in this Server_name and DB_name will be sufficient for proper connection of DB_owner user?

Thanks.


--- When you hit a wrong note its the next note that makes it good or bad. --- Miles Davis

silent install sql 2016 - 'NT Service\SQLPBENGINE' error

$
0
0

Running a silent install of SQL Server 2016, getting error:

The credentials you provided for the 'NT Service\SQLPBENGINE' service is invalid.

Error result: -2068578304
Result facility code: 1204
Result error code: 0

Please review the summary.txt log for further details
Microsoft (R) SQL Server 2016 13.00.4001.00

----

So when I look in summary.txt I can see that the PBENGSVCPASSWORD is set to <empty> even though I specify it like all the other svc accounts in my install.exe command.

SQL Server 2014 installation-failed-error-1723-problem with windows installer package

$
0
0

Hi All,

I am trying to install SQL Server 2014 express edition on my Windows 7 64 Bit system, but unfortunately, everything I have tried so far has resulted in the same error.

Error: 1723 There is a problem with this Windows Installer package. A DLL required for this installation to complete could not be run. Contact your support personnel or package vendor.

I have tried all the possible solutions that I found online. So please refrain from posting a link to another blog or forum because chances are that I have already tried that.

Things that I have tried:

  • Giving myself/Everyone "Full Control" over the folder C:\Users\username\AppData\Local\Temp
  • Disabling .Net Framework 3.5 SP1 and then re-enabling.
  • Installing sqlncli.msi manually from cmd with Administrative Privileges (Note that this too fails with the same error).
  • Removing all instances and traces (registry values, folders, uninstalling) of SQL Server 2008 R2 installed previously on my machine. 
  • Downloading SQL Server from Microsoft's website again (in case the previous installer was corrupted), performed checksum and validated the installer.
  • Making sure that I have Service Pack 1 installed for my operating system.
  • Resetting windows installer.


I am aware that there are multiple threads with the same issue, but none have been able to resolve this for me. 

It is really urgent for me to resolve this and install the package over the weekend. Any help would be really appreciated.

Note: I am unable to add the links to the log files as of now, but would do so ASAP.


Migration from SqlServer 2008 R2 to SqlServer 2016

$
0
0

    There are some features that are deprecated in sql server and are mentioned in Microsoft site but when i use it in both versions it parses in both , i have a question that if i have to change them  or not ??? bellow are the features that is used in sqlserver 2008r2.

sysobjects : what should i use , is it right to use sys.objects instead

sysoindexes : what should i use, is it right to use sys.indexes instead

Avoiding changing Connection Strings after SQL Upgrade/Migration

$
0
0
I'm a DBA with a question. I am upgrading from sql2008R2 to SQL 2014. I'd like to do a side-by-side upgrade. When I am finished, I'd like to change the name of the upgraded server to the old server's name so that all connections from applications still work. Is this possible? I don't need lot's of detail just is it possible.

adding core to sql server 2014 enterprise edition with core-based licensing

$
0
0

hi, experts, 

I dont know whether here is the correct place to ask. please tell me where to get assistance if I am wrong.

there is one sql server  2014 enterprise edition (12.0.4100.1)  NT x64 with core-based licensing installed inside one windows server 2012 R2 in one VM.

the processor listed in property on the database is 4.

as now hitting performance issue, after investigation, the team decided to add processor(s) to the sql server.

I have questions:

1) core based licensing is countering on no. of core or no. of (virtual) processors? the windows server is on VM.

by the way, how about the windows server licensing?

2) as the colleagues who set up the windows server and sql server quit the company, is it possible for me to check the actual current license detail from the server?

thank you very much!

delaynomore


delaynomore.

Installation Question: Polybase Feature in SQL Server 2016

$
0
0

HI,

We are running Microsoft Sql Server 2016 Enterprise edition and would like to explore PolyBase Feature. For managing licensing costs (core based) we need to install Polybase in a clustered instance (2 node HA) as opposed to stand alone instance.

Question: Can polybase be installed alongside an FCI SQL instance? I have not been able to find any documentation that supports this. I am only seeing guidance on stand alone installation, thanks!


where is the SQLServer2005SQLAgentUser$ComputerName$MSSQLSERVER group ?

$
0
0

Hi guys,

i am trying to resolve the below issue where i cannot start my sql agent.

suspect:

1. could not be started after changing to run with a domain account. Sql server was able to run. Both are using the same accounts

2. apply sp3, after that no longer can run the agent services.

3. just inherited the system and really lost as to what was done to cause this to happen.

Queestion:

Q1 why can't i find the group in the local servers where sql server was installed? I should be able to locate.

- where is the SQLServer2005SQLAgentUser$ComputerName$MSSQLSERVER group ????

Q2, how to check this permission was granted on the AD for the domain account that was use to run the services?

SQL Server Agent must be configured to use the credentials of an account that is a member of the sysadmin fixed server role in SQL Server. The account must have the following Windows permissions:

  • Log on as a service (SeServiceLogonRight)ß Not related to proxies, at least grant.
  • Replace a process-level token (SeAssignPrimaryTokenPrivilege)
  • Bypass traverse checking (SeChangeNotifyPrivilege)
  • Adjust memory quotas for a process (SeIncreaseQuotaPrivilege)
  • Permission to log on using the batch logon type (SeBatchLogonRight)

Error encounter :

2016-06-06 11:53:58 - ? [100] Microsoft SQLServerAgent version 13.0.1601.5 (X64 unicode retail build) : Process ID 10884
2016-06-06 11:53:58 - ? [495] The SQL Server Agent startup service account is DOMAIN\USERNAME.
2016-06-06 11:54:28 - ! [150] SQL Server does not accept the connection (error: 65535). Waiting for Sql Server to allow connections. Operation attempted was: Verify Connection On Start.
2016-06-06 11:54:28 - ! [000] Unable to connect to server 'SERVERNAME\INSTANCENAME'; SQLServerAgent cannot start
2016-06-06 11:54:33 - ! [298] SQLServer Error: 65535, SQL Server Network Interfaces: Error Locating Server/Instance Specified [xFFFFFFFF]. [SQLSTATE 08001] 
2016-06-06 11:54:33 - ! [165] ODBC Error: 0, Login timeout expired [SQLSTATE HYT00] 
2016-06-06 11:54:33 - ! [298] SQLServer Error: 65535, A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online. [SQLSTATE 08001] 
2016-06-06 11:54:33 - ! [382] Logon to server 'SERVERNAME\INSTANCENAME' failed (DisableAgentXPs)
2016-06-06 11:54:33 - ? [098] SQLServerAgent terminated (normally)

windows event logs:
SQLServerAgent could not be started (reason: Unable to connect to server 'A08SQL-EDI\EDI'; SQLServerAgent cannot start).


SQL Server 2016 installation fails: Microsoft.SqlServer.Configuration.Sco.ScoException Arithmetic operation resulted in an overflow

$
0
0

I've been trying repeatedly to install the SQL Server 2016 Developer Edition on Windows 10. Every time the database engine fails to install and pops up a message "Object reference not set to an instance of an object". Then the installer crashes. The database services seem to be running but you can't connect to them.

I've attempted uninstalling and reinstalling every Microsoft program related to SQL Server, .NET or Visual C++ on the PC. I've run setup.exe as an Administrator. I've tried changing all the services to use the System account. Don't know what else to try.

Looking in the logs reveals the following exception:


Exception type: Microsoft.SqlServer.Configuration.Sco.ScoException
Message:
Arithmetic operation resulted in an overflow.
HResult : 0x84bb0001
FacilityCode : 1211 (4bb)
ErrorCode : 1 (0001)
Data:
DisableRetry = true
Inner exception type: System.OverflowException
Message:
Arithmetic operation resulted in an overflow.
HResult : 0x80131516
Stack:
at SNIOpenSyncExWrapper(SNI_CLIENT_CONSUMER_INFO* , SNI_ConnWrapper** )
at SNINativeMethodWrapper.SNIOpenSyncEx(ConsumerInfo consumerInfo, String constring, IntPtr& pConn, Byte[] spnBuffer, Byte[] instanceName, Boolean fOverrideCache, Boolean fSync, Int32 timeout, Boolean fParallel, Int32 transparentNetworkResolutionStateNo, Int32 totalTimeout)
at System.Data.SqlClient.SNIHandle..ctor(ConsumerInfo myInfo, String serverName, Byte[] spnBuffer, Boolean ignoreSniOpenTimeout, Int32 timeout, Byte[]& instanceName, Boolean flushCache, Boolean fSync, Boolean fParallel, TransparentNetworkResolutionState transparentNetworkResolutionState, Int32 totalTimeout)
at System.Data.SqlClient.TdsParserStateObject.CreatePhysicalSNIHandle(String serverName, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Byte[]& instanceName, Byte[] spnBuffer, Boolean flushCache, Boolean async, Boolean fParallel, TransparentNetworkResolutionState transparentNetworkResolutionState, Int32 totalTimeout)
at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean withFailover, Boolean isFirstTransparentAttempt, SqlAuthenticationMethod authType)
at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover, Boolean isFirstTransparentAttempt)
at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout)
at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Microsoft.SqlServer.Configuration.Sco.SqlScriptExecution.GetConnection()
at Microsoft.SqlServer.Configuration.Sco.SqlScriptExecution.Connect()

Followed soon by this exception:

Exception type: System.NullReferenceException
Message:
Object reference not set to an instance of an object.
HResult : 0x80004003
Data:
SQL.Setup.FailureCategory = ConfigurationFailure
WatsonConfigActionData = INSTALL@CONFIGRC@SQL_ENGINE_CORE_INST
WatsonExceptionFeatureIdsActionData = System.String[]
Stack:
at Microsoft.SqlServer.Chainer.Infrastructure.WatsonExceptionBucket.FormatStackFrame(StackFrame stackFrame)
at Microsoft.SqlServer.Chainer.Infrastructure.WatsonExceptionBucket.DetermineBucketParams()
at Microsoft.SqlServer.Configuration.UIExtension.RegisterRetryHandlerAction.RetryPromptHandler(AcceptedEventResults acceptedResults, Object notification, Object[] objectArray)
at Microsoft.SqlServer.Chainer.Infrastructure.ChainerRetryResponse.InvokeRetry(ServiceContainer context, Exception e)
at Microsoft.SqlServer.Configuration.Sco.SqlScriptExecution.Connect()
at Microsoft.SqlServer.Configuration.SqlEngine.SqlDatabaseServiceConfig.Install(SqlServiceInstallScriptParameters scriptParameters, Boolean fTemplateDB)
at Microsoft.SqlServer.Configuration.SqlEngine.SqlEngineDBStartConfig.ConfigSQLServerSystemDatabases(EffectiveProperties properties, Boolean isConfiguringTemplateDBs, Boolean useInstallInputs)
at Microsoft.SqlServer.Configuration.SqlEngine.SqlEngineDBStartConfig.DoCommonDBStartConfig(ConfigActionTiming timing)
at Microsoft.SqlServer.Configuration.SqlEngine.SqlEngineDBStartConfig.Install(ConfigActionTiming timing, Dictionary`2 actionData, PublicConfigurationBase spcb)
at Microsoft.SqlServer.Configuration.SqlConfigBase.PrivateConfigurationBase.Execute(ConfigActionScenario scenario, ConfigActionTiming timing, ConfigBaseAction action, Dictionary`2 actionData, PublicConfigurationBase spcbCurrent)
at Microsoft.SqlServer.Configuration.SqlConfigBase.SqlFeatureConfigBase.Execute(ConfigActionScenario scenario, ConfigActionTiming timing, ConfigBaseAction action, Dictionary`2 actionData, PublicConfigurationBase spcbCurrent)
at Microsoft.SqlServer.Configuration.SqlConfigBase.SlpConfigAction.ExecuteAction(String actionId)
at Microsoft.SqlServer.Configuration.SqlConfigBase.SlpConfigAction.Execute(String actionId, TextWriter errorStream)
Watson Bucket 2
Original Parameter Values

There are also some messages like this:

Slp: Sco: Attempting to get account sid for user account NT Service\SQLSERVERAGENT
Slp: Sco: Attempting to get sid for user account NT Service\SQLSERVERAGENT
Slp: Sco: Failed when querying buffer size

Trouble installing KB3194714 over SQL Server 2014 SP2

$
0
0

Hello,

I am having trouble installing a required patch my Cyber Security team wants installed.  It is KB3194714.  When I attempt to install it manually (downloaded here...https://www.microsoft.com/en-us/download/details.aspx?id=54190) the option to patch the engine is greyed out and cannot be checked.  I attempted the installation using windows update.  The KB shows up as an important update.  I install the update and windows update lets me know a reboot is required.  I reboot the server, but SQL Server version number is still 12.0.5000.  The patch shows up as installed in programs and features and it still shows up as an important update .  I've checked the forums, and there seems to be incompatibility issues with some other patches, but I don't have those patches installed.  I'm not sure where to go from here.  Any help would be appreciated.

Thanks.


Error

$
0
0
TITLE: Microsoft SQL Server 2014 Setup
------------------------------

The following error has occurred:

Attempted to perform an unauthorized operation.

Click 'Retry' to retry the failed action, or click 'Cancel' to cancel this action and continue setup.

For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft%20SQL%20Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.5000.0&EvtType=0x476BF04A%25400xBB814387

------------------------------
BUTTONS:

&Retry
Cancel
------------------------------

Creating Login using SQL Server PowerShell

$
0
0

Hello,

I want to create a user and assign the user permissions to a VIEW in SQL Server 2008. I opened the Power Shell Script Editor. I see the following prompt when I first open the Power Shell Editor,

PS SQLServer:\SQL\machinename\Default\Logins>

How do I configure SQL Server. What do I type before creating a login or granting user access to the VIEW.

Thanks a bunch!

Mayank

Cannot install SQL Server 2012 - installation window disappears

$
0
0

Hello,

I am trying to install SQL Server 2012 on Windows 10, but as soon as installation updates are downloaded and installed, the installation window disappears. I've tried admin rights with no success. Log: http://pastebin.pl/view/731fa798

Granting access to a VIEW in SQL Server

$
0
0

I am new to SQL Server administration. I created a VIEW in SQL Server 2008. I have a AD Group that has a few users. Need to assign this AD Group access to the VIEW. What steps do I need to follow.

Thanks in advance.

Mayank

when installing sqk server2014 in windows serevr2012 getting below error

$
0
0
a coonection was successfully established with the server but then an error occured during the log in process(provider:ssl provider error:0-no process is on the other end of the pipe) microsoft sql server, error:233
Viewing all 8133 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>