DBI - connect to MSSQL - unexpected login incorrect - sql-server

I'm using DBI 1.624... and trying to connect SQL Server 2012. I wrote perl script to get data from db, and tested it on test server. It works fine. I repeated everything for other server and now I can not connect to db with error: Login Incorrect.
I created new login with SQL Authentication and I can login with it via SQL Server Management Studio, but when I try to connect via DBI:
DBI->connect('dbi:Sybase:server=SERVERNAME.domain.com:3180;database=master', 'user', 'pass')
I always get error:
DBI connect('server=SERVERNAME.domain.com:3180;database=master','user',...) failed: OpenCilent message:
LAYER = (0) ORIGIN = (0) SEVERITY = (78) NUMBER = (36)
Server SERVERNAME.domain.com:3180, database
Message String: Login incorrect.
User settings:
SQL Server authentication
Server Roles: public, sysadmin
Securables: Connect SQL
Status: Permission to connect to database engine: Grant / Login: Enabled
Server settings:
Connections: Allow remote connections to this server

My second server has all databases encrypted... So I use ODBC driver.

Related

SQL Server 2016 Remote Connection Error 18456

I have recently installed SQL Server 2016 on Amazon EC2 instance so I can start developing various SSIS / SSRS applications.
I have enabled Remote connections, opened port 1433 in the security group and windows firewall, and created a user 'myuser123' who is enabled and and allowed SQL Server and Windows Authentication within the server properties.
I am trying to login using this connection
ec2-1-2-3-4.eu-west-1.compute.amazonaws.com\MSSQLSERVER,1433
SQL Server Authentication
username: myuser123
password: #########
The error message I am getting looks to be a user authentication error.
Cannot connect to ec2-1-2-3-4.eu-west-1.compute.amazonaws.com\MSSQLSERVER,1433
Additional Information
Login failed for user 'myuser123'. (Microsoft SQL Server, Error 18456)
However when I Remote Desktop to the EC2 Instance and try to log in locally using the same username / password I don't have any problem.
Do you have any idea why this may be?
Thanks
M

Login failed for user domain\MachineName$ error in Session Task

I have Informatica PowerCenter installed on my local machine and am able to successfully connect to the local SQL Server Database instance. However when I try to connect to a remote server I am getting 'Login failed for user domain\MachineName$'.
Here is the full Error -
Error connecting to database [
Windows authentication is used to access the Microsoft SQL Server database
Microsoft SQL Server Native Client 11.0: Login failed for user '<>\<>$'.
SQL State: 28000 Native Error: 18456
State: 1 Severity: 14
SQL Server Message: Login failed for user '<>\<>$'.
Database driver error...
Function Name : Connect
Database Error: Failed to connect to database using user [] and connection string [<>].].
Can someone throw light on how to get over this?

Cannot connect to Database Engine

I started an SQL Server instance(it is in running state), now I would like to connect to it in MS SQL Server Management Studio. I got following error.
TITLE: Connect to Database Engine
------------------------------
Cannot connect to KOVACSA.
Login failed for user 'myemail#outlook.hu'. (Microsoft SQL Server, Error: 18456)
I am using SQL Server authentication method, because I choosed Log on as This user option.

Error 18456 while connecting error while trying to connect to SQL Server

I am completely new to databases.. I am doing a small application which needs to connect to a SQL Server database.
My SQL Server is installed on the company server
I am trying to login to SQL Server from my local system
Steps I have tried so far:
Since I have admin credentials to the company server I have logged in and included myself (SQL Server authentication) under security -> logins
So now when I try to connect from my local computer it is giving me "Login failed for user (Microsoft SQL Server error 18456)".
Can any one please help me with this?
Goal: I want to connect to companies server from my local machine.

SQL server 2008 login issue

Hi I created a new login SQL server authentication in SQL server 2008, however I am unable to login with that user.
Getting an error like ,
TITLE: Connect to Server
Cannot connect to (local).
ADDITIONAL INFORMATION:
Login failed for user 'sa'. (Microsoft SQL Server, Error: 18456)
The error Login failed for user 'sa' means that connection to server was established, but server refused it under certain circumstances, such as:
Wrong password
Sql server uses only Windows Authentication (needs server restart)
In your Connection String you ask to connect to specified DB, which is not exists
sa login is Disabled or Denied to access sql engine
User Action
If you are trying to connect using SQL Server Authentication, verify
that SQL Server is configured in Mixed Authentication Mode.
If you are trying to connect using SQL Server Authentication, verify
that SQL Server login exists and that you have spelled it properly.
If you are trying to connect using Windows Authentication, verify
that you are properly logged into the correct domain.
If your error indicates state 1, contact your SQL Server
administrator.
From this article
Should this not help try troubleshooting this issue following these steps.

Resources