SQL Server Profiler Error while login - sql-server

It's an fresh install of SQL Server 2008 R2 trial on my local development machine and I'm able to connect the server through SQL Server Management Studio. But when I tried to connect the server through SQL Server Profiler I got the following error:
TITLE: Connect to Server
Cannot connect to myserver.
ADDITIONAL INFORMATION:
The initialization string specified does not conform to specificiation
(pfutil)
BUTTONS:
OK
Edit
Results of SELECT SERVERPROPERTY('edition') is as following:
Enterprise Evaluation Edition
I had tried with both Authentications (Windows Authentication and SQL Authentication) and got the same error for both modes.
When I had changed the server type to Analysis Services it got connected, but the requirement is to connect the Database Engine.
Edit after Format:
Finally I decide to re-format the computer and to install a fresh copy of SQL Server 2008 R2 and now the problem is gone. Now I'm able to connect the profiler with no time. :)
But I really wanna know what was the cause of that error?

it might have something to do with the connection string you're using to connect to the profiler.
Could you post the connection string you're using to connect to the profiler?

Related

No instance created by SQL Server 2008 R2

I have a problem with SQL Server 2008 R2, when I try to connect to server it gives me the following message:
TITLE: Connect to Server
Cannot connect to (local).
ADDITIONAL INFORMATION:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
(Microsoft SQL Server, Error: 2)
I found a couple of solutions for this, one of which told me to go the configuration manager and check the instance created by SQL Server. There was none. I found only this:
I need to learn SQL Server for a job, and I don't know what to do.
-- UPDATE --
I reinstalled SQL Server 2008 and some errors might have something to do with my issue..
errors in reinstalling
note: the first time I installed I was basically clueless, I might had the same errors before and I simply didn't notice..
This seems you only install SQL Server Management studio not whole SQL Server DBMS so you need to install SQL Server and then try again.To check that SQL Server is installed on my PC or not You can follow these Steps
1.In Window Run Type `services.msc`
2.Check that SQL Server Service is present or not
3.If Present Then Check in Running Mode or not.
4.if not here still SQL Server is not installed
Hope this helps you
You need to install SQL server and SQL Server studio management tool. Seems you are trying to install SQL Server 2008.
Go to this link and download the version of SQL Server 2008 you are after
32 or 64 bit
https://www.microsoft.com/en-au/download/details.aspx?id=1695
Then install a Microsoft SQL Server 2008 Management Studio.
https://www.microsoft.com/en-au/download/details.aspx?id=7593
If you have windows 8.1 and upwards you can install the newer version of MSSQL which comes with Management studio. https://www.microsoft.com/en-us/sql-server/sql-server-downloads.

Connect to your sql server without credentials

I created a project in visual studio and I want to use SQL Server Management Studio to see database. What should be the server name?
On connecting to sql server, it gives error:
I tried finding server name using cmd so the result was:
Note:
My sql server configuration manager doesn't contain any sql server services. I was using sql server 2012 so now I downloaded sql server 2017 but same, so services are shown.
How can I connect to sql server?
You will not be able to connect to the SQL server if the SQL Server service is not running. Once you have verified your service is running, you can use the option in the Server name to select your SQL Server Name.
Irfan.
You can connect to SQLServer with two ways:
Usually you run SQLServer instance as service and connect using server credentionals
Sqlexpress "embedded" style - connect to mdf/mdb-file. Behind the scenes it will start localdb service and attach db-file.
First way is recommended in most cases.
Run services.msc and look for sqlserver instances. If they are down - start one. If they are notexistent - rerun installation and check options.

I can't connect to SQL Server 2014 Analysis Services

I'm trying to connect to Analysis Services in SQL Server 2014 on server (local), but appears this error:
Cannot connect to (local). Additional Information: A Connection cannot
be made. Ensure that the server is running.
(Microsoft.AnalysisServices.AdomdClient) A connection cannot be made
because the destination computer had refused.
Please help me solving this.
I am using Developer edition.
In my case, MS Analysis Services was not installed and that's why it was giving error. I ran the setup.exe to launch the installation wizard to add Analysis Services feature in my MS Sql Server and then it got resolved.
Since, I am using everything on one machine which is Windows Server 2012, I didn't require to make any change in firewall setting.

Unable to connect to SQL Server in Hydro GeoAnalyst

I have installed Hydro GeoAnalyst 2014.2 and i have started trial and wanted to install demo project. Firstly, i must select data source type, available server and database name. I select data soruce type, then i write sql server instance name and then related combobox filled my databases. Finally, i select my database.
I use Microsoft SQL Server 2012 Express but Hydro GeoAnalyst return an error when i want to connect my database on MS SQL. Then i have installed Microsoft SQL Server 2014 Express and Hydro GeoAnalyst returned the same error:
Unable to Connect 'AYSE/SWS'. Ensure that the SQL Server exists and is running.
I have controlled my MS SQL Server 2012 and 2014 on SQL Server Management Studio and they works with no problems. I have controlled SQL Server Configuration Manager but no solution. Why do i take this error ? Is this because of express edition of SQL Server ?
Please help. Thanks in advance.
I send error picture:
If you are using SQL Server Express installed on another machine (not your local machine) make sure you have it configured for remote connections (http://blog.citrix24.com/configure-sql-express-to-accept-remote-connections/).
Also Please be aware that the vendor support email for Hydro GeoAnalyst has changed to support#waterloohydrogeologic.com. If you continue to experience difficulties contact them and they will be happy to look into the issue further.

Unable to login to sql server

I dont know much about sql server.
I have just re-installed windows 7 on my laptop. After that I installed Visual Studio 2012 Express Edition. I also Installed SQL Server Management Studio 2008 R2.
Now when I try to log in to sql server management studio by using server name as . or (local) or .\SQLEXPRESS or PC-Name\SQLEXPRESS and using Windows Authentication I get the error as below.
Please dont mark this question as negative as I have searched on google for last 4 hours but did not understand the problem.
Update:
There are many reasons that may cautioning the problem:
SQL Server is not running
SQL Server is not properly configured
You try to connect with a worng instance Name
You can try the following:
Go to Mycomputer->Rigt Click->Manage->Application and Services
And from there check that SQL Server Express is running
2.From there also, gCheck the Instance name of your SQL Express and be sure when you log on to Management Studio you Provide the same Instance name
Confirm that the service is installed and running. Under Computer Management, drill-down into Services and Applications -> Services.
There should be a service named "SQL Server (SQLEXPRESS)". Try a restart or start of the service.
If any other instance of SQL Server is installed it will be listed - try connecting to LOCALHOST(whatever the instance is listed as) to verify the installation is functional.
UPDATED following further information from comments:
You may have only installed the client tools (management studio), and have not installed the database service. Ensure you have the correct installer which includes the database services engine.
First check that the SQL Server parameters are set accordingly.
Go to Start -
All Programs — Microsoft SQL Server 2008 R2 — Configuration tools —
SQL Server Configuration Manager
Under SQL Server Services, make sure that the instance is running :
SQL Server ()
SQL Server Browser
Under SQL Server Network Configuration - Protocols for (), these are enabled:
TCP/IP
Named Pipes
Do the same under SQL Native Client 10.0 under Client Protocols

Resources