I have an existing instance of ColdFusion 11 server and SQL Server 2012 on a Windows 7 Ultimate platform.
I have several SQL Server datasources already connected successfully connected using: localhost\SQLEXPRESS, username "sa" and my password. When I try to add a new database in the CF Administrator I get this error:
Connection verification failed for data source: ocm5
java.sql.SQLInvalidAuthorizationSpecException: [Macromedia][SQLServer
JDBC Driver][SQLServer]Login failed for user 'sa'. The root cause
was that: java.sql.SQLInvalidAuthorizationSpecException:
[Macromedia][SQLServer JDBC Driver][SQLServer]Login failed for user
'sa'.
It appears to be a login issue, not a connection issue so I don't think it has to do with source limits on Developer platforms.
In 2012 or beyond you will not be able to us "sa" - and you should never use it anyway to set up a datasource. Doing so opens up a huge attack vector directly to your data and your server itself.
You will need to set up a separate username and password and give it DBO permissions to your DB. This will expose only your specific database to your CF connection. If you can you should narrow permissions further - do you really need "create" permissions for example?
Related
I keep getting the same error: Connection verification failed for data source: estimates
java.sql.SQLNonTransientConnectionException: [Macromedia][SQLServer JDBC Driver][SQLServer]Cannot open database "estimates" requested by the login. The login failed.
I have checked in Sql Server Configuration Manager and TCP/IP is enabled in all of the SQL Server settings, and I'm using Windows Authentication only to access the SQL Server DB on my local server.
Can someone help fix this so I can set up a DSN, please? Thank you!
Likely a SQL configuration issue. Once you add the Login to the server, go back to the database and add the user to it. You'll need to add a role, as well, usually dbo for simplicity, but not necessarily security.
If you've restored the database from another source, you might need to run this command:
USE [yourdb]
EXEC sp_change_users_login 'Auto_Fix', 'theLoginName'
Im installing the MDM of Informatica.
MDM 10.2 - Jboss 6.4 EAP - SQL Server 11 - Windows Server 2008 R2.
During the creation of the schema 'sip_ant.bat create_bpm' i got this error
Microsoft ODBC Driver 13 for SQL Server : Login failed for user 'sa'.
(Same eeror with another user)
I already tried to use the Auth Mixed Mode and restarted the instance of the DB.
Error received is
D:\informatica\database\bin\common.xml:248: The following error occurred while executing this line:
D:\informatica\database\bin\mssql\database.xml:1214: Launched command return error code 1.
And that's the line of database.xml:1214 that refers:
collation_name="${activevos.collation}" param2=""${dbpath_short}"" param1="${activevos.password}">
Im able to login via SQLCMD on CMD with user 'sa' and other users.
MDM and SQL Server are on different Machine.
Any suggestion?
By default SQL Server will track failed logins and register it in the server log along with the reason. So check out your errorlog and look for errors 18456.
You can read the log by using SQL Server Management Studio by going to server, Management, SQL Server Logs, Current. Or any other way you prefer.
You'll find something like this:
2018-02-27 13:51:26.120 Logon Error: 18456, Severity: 14, State: 5.
2018-02-27 13:51:26.120 Logon Login failed for user 'fasd'. Reason: Could not find a login matching the name provided. [CLIENT: 10.80.62.89]
server=Yourservername,portnumber
You can put the above in your connection string
Problem was due to Customer configured another Default SQL port to use on SQL Management.
I get the following error when trying to log in to a named SQL Server 2016 instance:
2017-03-31 09:25:19.12 Logon
Error: 18456, Severity: 14, State: 5.
2017-03-31 09:25:19.12 Logon
Login failed for user 'domain\user'. Reason: Could not find a login matching the name provided. [CLIENT: some-ip-address
SQL Server 2016 is a named instance on this box as it also has SQL Server 2012 instance and was installed using virtual accounts as outlined here
https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/configure-windows-service-accounts-and-permissions
This named instance is running under port 1500.
Any ideas on how to connect to this server using SQL Server Management Studio ?
A virtual account is used to run the SQL Server Service but you wouldn't be able to login using that account as there is no way to know the password. In addition it's a local account only so domain\user is not going to work.
You should have had to grant SOME user access to the server, I think by default it grants the user who is installing the SQL Server so if you know that account you could try logging in with that. Also if you know the sa password that should work too.
Past that you are probably looking at putting the server in single user mode and adding a login just to get in. See here
I am attempting to connect my Bamboo instance to SQL Server, but I am unable to do so because of the error Login failed for user 'Bamboo'. Investigation into the log files shown in the location
C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Log\ERRORLOG
throws an error that I should not be getting at this stage of my attempted login. Server is configured for Windows authentication only. Currently able to login using same SQL Server credentials to access the database, just not via Bamboo.
The reason why this should not happen is because my server is already set up to do so, and I will list all of the steps that I have taken to prevent this error. In my localhost SQLEXPRESS server I have checked SQL Server and Windows Authentication mode. Once I restarted SQL Server, this worked as I was able to log in with the credentials that I added to a user called Bamboo.
The user I added is mapped to the database called BambooDatabase as a db_owner. The number of concurrent users is unlimited and I have tried disconnecting from SQL Server just to check if that was a problem, but still no difference. I added 2 more users with connect access and mapped to BambooDatabase.
I have went to the SQL Sever Configuration Manager and enabled TCP/IP and made sure that the IP addresses was pointing to 1433. And then configured my firewall to all access to 1433 as well. The fact that my error logs for SQL Server are appearing makes this seem that everything should be fine here. So with tested 3 users on SQL credentials everyone logged in successfully and all have the relevant permissions needed. All three gave the same error when trying to connect from Bamboo.
I am trying to connect to Bamboo like this:
Direct JDBC connection.
Driver class name: net.source.jtds.jdbc.Driver
Database URL: jdbc:jtds:sqlserver://localhost:1433;DatabaseName=BambooDatabase
User name: Bamboo
Password: SQL Server password
Checked overwrite existing data
Then once I click continue the log in error throws. Have I missed something here, I cannot see what I could do differently, I have tried to connect to SQL Server from Bamboo several different ways but have had no success. I am using SQL Server Express and the Bamboo version 5.11.3, I am testing upgrading from 5.11.3 to 5.15 with larges amounts of data which is why I am using that version.
Error from Bamboo is:
Error accessing database: java.sql.SQLException: Login failed for user 'Bamboo'.
Error from SQL logs is:
Login failed for user 'Bamboo' Reason: An attempt to login using SQL authentication failed. Server is configured for Windows authentication only. [CLIENT: 127.0.0.1]
Are you running Bamboo en SQLExpress on the same machine? If not, you should look into the remote access configuration.
In the SQL Sever Configuration Manager, make sure that you entered 1433 for the IPAll entry as well. And start the SQL Browser service for good measure, this is especially important when using a names instance, but going after the errorlog folder you copy/pasted, that's not the case.
For testing purposes, you might want to disable the firewall all together and reactivate is after you get the connection up.
Another thing to try if you're connecting on the same machine, is use the loopback address 127.0.0.1 instead of the localhost alias.
I unknowingly deleted SA user from the SQL Server 2012. Now i cannot be able to connect to the sever. It shows an error :
Cannot open user database. Login failed. Login failed for the user 'username'.(Microsoft SQL Server, Error: 4064)
Now i don't know what to do?
Help me please
Thanks
When ever get this error,we have to create a new user with server authentication to connect the data base
We can create login for data base under security tab-->create new login under it
If you have Windows administator permissions, you can restart SQL Server in single-user mode. Any administrator can then log in locally and fix things.
Give this a shot as a place to start:
Connect to SQL Server When System Administrators Are Locked Out (MSDN)