Microsoft SQL Server 2014 too many services [closed] - sql

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I have a problem. I can't start SQL Server 2014.
It's ok when I connect to a server as a Windows authentication, but when I try to connect as SQL Server authentication with username sa and my password, O get a SQL Server error 18456.
Why? When installing Management Studio with youtube video, there were few differences:
When installing new instance SQLExpress, there was error because the instance with this name already existed so I changed the name of instance to MSSQLServer...
Also in SQL Server Configuration Manager in SQL Server Services,there are 5 services and I think there shouldn't be so many:

Each SQL Server instance has their own services for different usages. Here you've 2 instances {"SQLEXPRESS", "MSSQLSERVER"}, each has its own SQL Agent. This is normal.
... but when I try to connect as SQL Server authentication with username sa and my password, O get a SQL Server error 18456. Why?
If you want to connect with system administrator account sa, you need to enable the mixed running mode of the target SQL Server instance, e.g. SQLEXPRESS. Because sa is not windows authentication. You've 2 options:
Enable this mixed running mode during the installation. Choose Windows Authentication and SQL Server Authentication.
Connect to your SQL Server instance with an adminstrator account using Windows Authentication and then change the server running mode.
If the server is already running on mixed mode, but you're still getting the same error. Then you're probably using a wrong password for sa. Did you use your windows password by mistake?

Related

How to fix this login failed for user? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 months ago.
Improve this question
User,privilege and role
This is my first time using MS studio I am learning by myself
I tried going to the login properties and tweaking the properties nothing happen. My teacher didn't teach how to use this btw. I follow the instructions, but I'm stuck here.
This is what I am aiming for result
New user login
What you want to do is change the server authentication mode to "SQL Server and Windows Authentication mode". Currently your server is only set to "Windows Authentication mode" which does not allow logins from SQL Server "Login" accounts.
To do so, you'll need to login to your server as an account that has access (either an authenticated Windows account or the SA account) and then follow these instructions:
Change authentication mode with SSMS
In SQL Server Management Studio Object Explorer, right-click the server, and then click Properties.
On the Security page, under Server authentication, select the new server authentication mode, and then click OK.
In the SQL Server Management Studio dialog box, click OK to acknowledge the requirement to restart SQL Server.
In Object Explorer, right-click your server, and then click Restart. If SQL Server Agent is running, it must also be restarted.

IIS and SQL on separate servers - how do you setup a user account for .net app? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
Is there a site with details on how to setup a web .net app hosted on IIS requiring access to a db on a remote server? I can do this when both IIS and SQL Server are on the same box, using AppPool user...but don't know how to do this when the SQL server is remote. Our setup:
AD, both SQL Server and IIS servers are in same domain,IIS 7.8 and 8,SQL 2008 and 2012,Databases to be accessed by >1 IIS server. IIS is anonymous access
Is the most secure method to contune to use an app pool user on IIS, and to create a user on SQL with domainname\machinename$
Would I be right in thinking that this would work as the app pool user uses machinename$ Thus both IIS and SQL are using machinename$?
There are really 2 methods to do this:
1) Use SQL server authentication. Create a SQL user and use a connection string in the following format for SQL 2012:
Server=myServerAddress;Database=myDataBase;User Id=myUsername;
Password=myPassword;
2) Use mixed mode authentication and authenticate as a Windows user. Your connection string would look like this:
Server=myServerAddress;Database=myDataBase;Trusted_Connection=True;
You'd first go onto the web servers and create a Windows user. Remove it from the domain users group.
Then you'd go into SQL, add the user you're trying to connect with to the list of users, then grant read/write to the database you're trying to access.
If you go with this method, you'd set your app pool to run as the user you created and then add that user to the IIS_WPG group if you're running Windows 2003 or to the IIS_IUSRS group if you're running Windows 2008 or later.
Either one of these methods are perfectly acceptable. If you're running the webservers in the DMZ (not in your Windows domain), you'll want to go with option 1. If the webservers are in the domain, some would argue that option 2 is marginally safer because you're not storing the password in plain text, but you could still do option 1 if you felt like it.
Also, here's a pretty good site with a list of formats of connection strings for various versions of Windows/.NET/SQL:
https://www.connectionstrings.com/sql-server-2012/

How to set up SQL server Agent? not showing in Sql Server Management [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I am trying to set up the SQL Server Agent on our test server running with windows Small Business Server 2011 Standard and SQL Server 2008 R2 RTM. The Sql Server Agent node is not displayed in Sql management studio.
Here is what I know according to forums I read:
in services.msc, I have two Sql Server Agent (Sharepoint and SBSMonitoring) set as automatic. If I try to start the service, the following warning comes up: The SQL Server Agent service on Local Computer started and then stopped. Some services stop automically if they are not in use by other services or programs
in SQL Server Configuration Manager, under SQL Server Services, I have an error "The remote procedure call failed [0x800706be]". Under SQL Server Network Configuration (32bit), nothing is listed.
in Local Security Policy, Security Settings -> Local Policies -> User Rights Assignement: their is no Sql Server Agent Listed
in Sql Server Management Studio I created a new user with all the rights possible and after I logged with this user, Sql Server Agent was not showing
I did the following command mofcomp c:\program files (x86) \Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof" but it did not change the error "The remote procedure call failed" in SQL Server Services
Does anyone have a solution according to these facts?
Thank you
select serverproperty('edition') returns Express edition.
As confirmed you are using an Express edition.
There is no way to get SQL Server Agent on this.

Cannot connect remotely to SQL Server instance [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 9 years ago.
Improve this question
I have an instance of SQL Server 2012 and when I try to connect with it from other PC through SQL Server Management Studio it's not even visible. I can see all other instances which are placed on other PCs.
I tried everything to fix it:
disabled firewall
turned off Anti-Virus
enabled remote connections to this server
enabled TCP/IP protocol in SQL Server Manager
checked if SQL Server and SQL Server Browser is running
restarted SQL Server and SQL Server Browser a lot of times
also tried this: https://stackoverflow.com/a/11278115/2717303
and finally I have reinstalled SQL Server and every component of it
And still I can't see my instance. Does somebody have any other ideas how to fix it?
Here are some screenshots of SQL Server Configuration Manager:
What server name you are using ?
You have to open port for it. After opening port your server name looks like follow.
server name : IP\SqlExpress, 5012
Where 5012 is random port.

Can't login to SQL Server with Windows Authentication [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I've just installed SQL Server 2012 and open the SQL Server Management Studio and when I try to login this problem occurs:
Can't connect to .....
My question is how can I know what is the server name?
And when I go to the SQL Server Configuration Manager I can't find the SQL Server services which should exist !!
Any answer ?
Thanks.
If you installed SQL Express, the correct server name is:
127.0.0.1\SQLEXPRESS
or
YOURMACHINENAME\SQLEXPRESS
If that does not work there are some steps you can take:
Check if the "SQL Server Browser" windows service is activated and running:
Go to Control Panel -> Administrative Tools -> Services
Open "SQL Server Browser" service and enable it (make it manual or automatic, depending on your needs)
Start it.
If that too does not work, you can also check if the TCP/IP protocol is enabled in your SQL Server instance. Follow these steps (tested for SS2012) to make sure:
Open "Sql Server Configuration Manager" in "Start Menu\Programs\Microsoft SQL Server 2012\Configuration Tools\"
Expand "SQL Server Network Configuration"
Go in "Protocols for <YourInstance>"
Enable TCP/IP
If you have any problem, check this blog post for details, as it contains screenshots and much more info.
That's it.