Existing SQL Server instance. Cannot log in - sql

I have a SQL Server 2008 instance installed on a windows XP host. Had a situation where my Windows 2008 server had a critical hardware failure and I reached a point where that OS had to be completely reinstalled.
Anyway, whenever I attempt to log into SSMS to the default instance through windows authentication it tells me that the log in failed, error 18456.
Attempted to run the program as administrator, no dice. I cannot log in with SQL Server authentication, either.
I would really hate to delete the instance and re-create it. Anyone have any better ideas?

there should be an entry after or prior to the error you provided in the SQL Error logs that gives you the details about why the login failed. If you can provide that entry of the error log we can provide you a little bit more assistance.

Related

The service on server started and stopped

I have been using the same SQL Server account for well over a year, and just yesterday, the process stopped working. I get different error messages, depending on where I am trying and failing to log into it.
FROM SQL Server Management Server: the system cannot find the file specified.
From services (local): windows could not start the server ... on local server.
From Registered server: the service started then stopped.
Can someone please tell me where the file that encompasses the failed database is? If this database is truly lost to me, I hope to recapture the stored procedures, functions, table types, etc. that the database defines, even if I can't install it again.
From the services, I am able to enable the Full-text filter daemon Launcher, but nothing else.
SQL Server: Windows could not start the SQL Server ... on local computer.
SQL Server Agent: the dependence group or service failed to start.
Analysis services: the process terminated unexpectedly
In every case, the desired server shows up, but these are the roadblocks thrown my way by the various means at my disposal to find out more. Your suggestions are greatly appreciated.
Please looked into the properties of the service, check whether the file path of SQL server service executable file is correct. It is better to share us more related information from error log or windows event log.

the rpc server is unavailable ssis

I recently installed my Microsoft SQL Server Management Studio(SSMS).
I havem my sql express installed.
Why am I getting this error when I try to login using integreated services method.Tried almost everything from google search(Turned Firewall off,edited policies).
On thing I didn't got was MsDtsSrv.exe which had to be added to firewall exeptions.
I have been trying this since last few days. Please help.
Error Message
Anything Wrong here?
Hopefully this is resolved by now, but here's for posterity.
This is very likely just a firewall issue (it was for me).
Remote to your server and open up Windows Firewall; you need to allow C:\Program Files\Microsoft SQL Server\xxx\DTS\Binn\MsDtsSrvr.exe through the firewall, and then you need to create a new rule to open up TCP port 135.

SQL server Login Fail for user 'ROMANCH9326/romanch'

I installed SQL server 2012 developer addition.
My windows is working on Parallel Access installed on MAC.
When I tried opening SQL server, It initiated a call to connect to server. And when I clicked on connect it gave me error.
I've never installed SQL server 2012 in my personal PC. WHen I was installing I chose Windows authentication mode and user ROMANCH9326 came out automatically.
Please help me, I'm clueless about this problem.
TITLE: Connect to Server
Cannot connect to ROMANCH9326.
ADDITIONAL INFORMATION:
Login failed for user 'ROMANCH9326\romanch'. (Microsoft SQL Server, Error: 18456)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=18456&LinkId=20476
On Start > Search type "sql configuration"
Open SQL Configuration Manager
SQL Server Network Configuration >Protocols for [SQLINSTANCENAME]
Check if Named Pipes is enabled, enable it if not.
Restart your SQL Server Instance.
Well This is a pretty silly solution but when I tried repair function on SQL server it said that my Database Engine libraries were not installed properly somehow.
So I reinstalled the software and now it worked just fine. I was able to log in.
Thanks :)

Unable to start T-SQL Debugging. Could not connect to computer ("*****")

When I try to debug an Stored Procedure using Microsoft SQL Server Management Studio, I encounter this error message: Unable to start T-SQL Debugging. Could not connect to computer ("*"). The dubugger cannot connect to the remote computer. This may be because the remote computer does not exist or a firewall may preventing communication to the remote computer. Please see help for assistance.
I really appreciate any help.
SSMS needs to be able to find your SQL Server by DNS. When you connect to the DB in SSMS, you can use (local), but (local) does not resolve on your network so the debug program can not find it. Try connecting to localhost or your computer's name on the "Connect to Server" screen.
You should not have to run as administrator.
I just wanted to pay this forward, as after searching for quite some time I've yet to see anyone mention the problem that I encountered here.
I ran into this issue while connected to SQL using a SQL Server Authenticated user. Once I tried using a Windows Authenticated user I was able to debug without issue. That user must also be assigned the sysadmin role.
Hope this helps someone.
There's still problem in MSSQL 2012 if you want to debug a query connected to server via some defined alias. You need to connect to that server with the full name of the server first and then the debugger finds the server - otherwise it doesn't.
Simple way to just go to the database-> security->login->right click on the login and add your name and check the service role as public and sysadmin. more reference Unable to start T-SQL Debugging
I had this issue, I was connected to the server through RDC, and when connected to the instance I simply used '.', which failed. Then I tried 'SQL12P1' with and without port number, which failed. I then used 'localhost' and this solved my issue.
For local debugging (and I think for remote debugging too?) the Windows account under which you are running SSMS also needs to be set up as a SQL Server login and be a member of the SQL Server sysadmin role, in addition to this being required for the account (Windows or SQL Server) which you are more apparently using to connect to SQL Server, where these are different!
If not, you still get the same error message asked about in this question.
https://learn.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2010/s0fk6z6e(v=vs.100)
Run Microsoft SQL Server Management Studio as User Administrator mode. You will not get this error while debugging. And You can debug stored procedure. This helps to solve my problem.

SQL Server 2008 - Reporting Services Failed Login for User '...'

Good Afternoon,
I'm having difficulty running a report with a data source saved on the Report Server using credentials for a user I created on SQL Server named 'ReportUser'. Attempting to resolve this I've mapped the user to the 'ReportServer' database with the db_owner role as well as setting the default database to the 'ReportServer'. However, each time I attempt to run the report I receive the error message:
Cannot create a connection to data source 'Test'. Login failed for user 'ReportUser'.
I'm running SQL Server 2008 from my local machine and am able to successfully run the reports when I setup the datasource using Windows Authentication. Any idea on what could be causing the issues when attempting to use the SQL Authentication with the 'ReportUser'
Thank you very much for your help!
Thank you for your reply.
I believe I found the cause of my issue. Since this was a local install for testing purposes I just set up the instance of SQL Server with Windows Authentication. However, I made the mistake of not setting up the server for both Windows and SQL Authentication. The following link helped me resolve this.
http://forums.asp.net/t/1784261.aspx/1?Could+not+connect+to+database+login+failed+for+user+sa
After changing this setting and restarting the SQL Server everything appears to be running properly now.