Microsoft SQL Server 2008 Management Studio - Connect/Server/Instance Issue - sql-server-2008

firstly i recently installed this program as I’m working on a project to create a database to use in Microsoft visual studio.
This is the first time I’m using the program, so I’m having a few problems setting it up. I can't connect to a server because presumably i don't have one. I typed in my machine name to create a default/localhost server using windows authentication but i received an error.
Error:
TITLE: Connect to Server
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)
Could someone guide me on how i can setup up a local host to connect and thus be able to create my database. Also I’d like to know afterwards how i can create a server (ftp) to connect into and create my database there allowing me to view this on my laptop or a different machine.
Btw i have looked on Google for this, but I’m getting a bit confused, because I’m unsure what I’m searching for. If anyone can shed some light on my problem i would be greatly appreciated.
Thanks.

Does Your server name looks like : "localhost ( or IP of Your server
)"\"server name", E.G : localhost\SQLEXPRESS
Open application on Start -> -> Configuration Tools -> SQL Server Configuration Manager
Check, if MSSQL Server Service was started in :Sql Server Configuration Manager -> SQL Server Services. If not, right click on service and choose Start
Check on Configuration Manager on "SQL Server Network Configuration" does "TCP\IP" protocol is enabled and has "Listen All" enabled
Check, do You have firewall on port 1433
If that doesn't help, write a message

I faced same problem and I have solve this problem by doing following 2 step:
1st Task:
Open application on Start -> -> Configuration Tools -> SQL Server Configuration Manager
Check, if MSSQL Server Service was started in :Sql Server Configuration Manager -> SQL Server Services. If not, right click on service and choose Start
Check on Configuration Manager on "SQL Server Network Configuration" does "TCP\IP" protocol is enabled and has "Listen All" enabled
2nd Task:
Provide Server Name : [hostname]\SQLEXPRESS
Authentication : SQL Server Authentication or Windows authentication
Note:
If Server you have installed with Mixex mode then only it will work for SA (SQL Server Authentication) or else we need to used Windows authentication
Now you should be able to connect if you follow this 2 task.

-> Go To SQL Server Configuration Manager
-> Click to SQL Server Services
-> Right click to SQL Server(MSSQLSERVER) and click start, then see the magic.

One the main SQL Server Studio screen, enter for Server name:
\.\pipe\MSSQL$"your instancename"\sql\query

After a number of trials of restarting services in configuration manager, allowing port 1433 in firewall, restarting computer etc. nothing was working, at last I tried .\SQLEXPRESS ('.' represents localhost) rather than MYMACHINENAME\SQLEXPRESS and it worked straight away. Hope it will help someone.

Open Startup Menu and type 'SQL Server Configuration Manager'. After staring the utility select 'SQL Server Services'. Run 'SQL Server' service, that's all.
Right-click on 'SQL Server' service and select properties. Under service pane, set the 'Startup Mode' to automatic, so it will automatically start in future.

I had same issue but i tried to resolve it .
Please follow these steps to connect to your SQL server Management studios
Run->services.msc->search for SQL Server(MSSQLServer)->Right click on it and try to "start" running it.
By doing this you can surely solve connection issue of SQL server.
Alekya

I had this problem, So I enabled Named pipes protocol and it works for me.

Hi every one.
I find out the solution.
To establish connection follow these stips.
1.Click on Start >> Sql Server Management Studio.
Management studio windows will open .and will ask to connect to the sever name etc. Just cancel it the connect window.
Now you go to the left panel of your Object explorer which is Registered servers.
Click on Database engine.
3.It has normally a folder Local server group. Open it by clicking the plus sign.
which will show you your server name with cross sign ON.
4.Right click on it and then click on service control. and then click Start.
Now it will start your database engine.
5.Now double click on you engine and it will work as normal.

Related

Connecting SQL Server through Network

I have developed an App using Delphi Xe3 and SQL Server 2008. Now the app is finished and compiled. I would like to run the app on another machine that is connected to the main Machine(running SQL Server) via Wifi. However when I run the app on another machine, I get the error " Server does not exist or access denied". I have enabled the SQL server for remote access enabled TCP/IP. Someone told me I would have to be running SQL server client on the other machine to access the server database. what am I missing to be able to run my app on machine B to share the database running on machine A.
I think sql server has remote connections off by default.
Run SQL Server management studio.
Right click on the server.
Properties
Connections
Under "Remote server connections", check on "Allow remote connections to this server"
For a default SQL instance don't add the name of the instance in the connection string Data Source. It somehow works when you test the connection from udl but does not work when you use the instance name in the Delphi app.

SQL can't log in

Hello my name is Ozan Bayrak
I have SQL on my pc and I have made a C# application.
I published the C# and installed another SQL server into this computer so I have 2 SQL
and now I can't Log in into my SQL cuz I get a error it says like this
"You can't run this Sql on 2005 and 2008"
who can help me please I really need to know this.
Everytime I want to log in it gives me a error.
when I go to services the SQLEXPRESS is offline too.
Thanks for the help
Ozan Bayrak
There's many possible issues here, including all or one of the below
Test Open Port The network on your LAN, can you ping SQL Server remotely on the default port 1433 on the specific IP Address (you can use PuTTY or Telnet to check this)
SQL Configuration Manager Check SQL Configuration Manager and see if the Network Protocol for SQL is enabled for TCP/IP, Named Pipes or Shared Memory
Firewall and Default Port Check the Windows Firewall make sure its allowing 1433. Since you are testing, best thing to do is to disable the Firewall in Windows Services to confirm whether its a firewall issue or not.
SQL Server Browser SQL Server Instances (instances have the form SERVER\SQLEXPRESS or SERVERNAME\SQL1 for example). Check in services and makes sure the "SQL Server Browser" is running. Also, you must allow a Firewall rule for port 1434, which is the default port of the "SQL Server Browser". This is necessary because the SQL Server maps and forwards the traffic based on the Instance Name, so this is the service that resolves the instance name.
SQL Server Instance Port Varies SQL Server Instances does not necessarily run on port 1433, in this case you will have to have the SQL Browser Running which maps the name to the port and directs traffic to the correct instance. In your firewall, instead of allowing port 1433, you will have to allow sqlservr.exe Executeable Program. The port also can be determined by looking at the SQL Server log File in the MSSQL\LOG folder in Program Files. There will be an entry for "Server is listening on port ..."
My recommendation for you is to install SQL Server Express Management Studio (SSMS) which is the GUI interface to manage the SQL Server Express instance. The link is below for both SQL Express and SQL Management Studio. And see if you can connect to the servers that way first. Another suggestion is for you to install both on a Local Computer and simply familarize yourself with SQL Server first before exposing it on the Network.
http://www.microsoft.com/en-us/download/details.aspx?id=29062
Since you have both, its possible that ports are conflicting thereby the SQLEXPRESS instance for MSSQL 2005 isnt starting up. Change the port number with the following steps
In SQL Configuration Manager, in the left side window under SQL Server Network Configuration select Protocols for SQLEXPRESS.
On the right side window, Right Click on TCP/IP and select Properties. In protocol tab, change Enabled to Yes
Under IP Address tab, search among IP1, IP2, IP3 and IP4 which has Enabled as Yes(if neither is enabled, just enabled one)
Which ever has Enabled as Yes, make sure TCP Dynamic Ports is blank and change the TCP port to anything other than 1433.
Also under IPAll, make TCP Dynamic Ports blank and for TCP port enter the same value that you entered above.
Click Apply and close the TCP/IP Properties window.
Now go back to SQL Configuration Manager, under SQL Server Services, right click on SQL Server(SQLEXPRESS) and click Start.
Try the following:
Turn on the SQLEXPRESS service and try to reconnect.
If the above fails, then read this article.
In a nutshell, you will do the following:
Enable remote connections on the instance of SQL Server that you
want to connect to from a remote computer.
Turn on the SQL Server
Browser service.
Configure the firewall to allow network traffic
that is related to SQL Server and to the SQL Server Browser service.

Getting 'Login timeout expired' error in Classic ASP, but not VB6 running from same process

When I run a Classic ASP app on my dev machine, I am getting a "Login timeout expired" error when trying to open a connection to the database (Sql Server 2008). It is returning almost immediately, so it doesn't seem to be a timeout error on the connection. The website and database are both running locally.
This seems to only happen from VBScript, a VB6 dll that is called from the same website (using COM from VBScript) is able to access the database just fine. Also, it worked this morning but I took my laptop home with me and now it doesn't work.
Any ideas what could be causing this?
I figured it out. I had to enable TCP/IP and Named Pipes for Sql Server. I'm not sure why it worked before and not now, but it does work!
To do that,
Open Sql Server Configuration Manager (from the Start menu)
Select Sql Server Network Configuration -> Protocols for MSSQLSERVER
Right-click TCP/IP and Named Pipes and select Enable from the menu
Restart the sql server service (same tool, Sql Server Services section)

SQL Server 2008 - The report manager URL shows a page without Properties tab

I have SQL Server 2008 Developer Edition and I'm facing the following issues with the Reporting Services.
When I open the Report Manager URL (I get it from the Reporting Services Configuration Manager) in a browser, it shows me a SQL Server Reporting Services page with a folder icon on top left and links with text 'Home', 'My subscriptions', 'Help' on top right. That's it, I don't get to see anything else.
I have a virtual directory with the same name as specified for Report Manager in Reporting Services Configuration Manager.
Opening the Report Server in the browser gives the following error message-
Reporting Services Error
The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing. (rsReportServerDatabaseUnavailable) Get Online Help
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: Shared Memory Provider, error: 40 - Could not open a connection to SQL Server)
I tried the following at the command prompt in order to resolve it-
rsconfig -c -s <SQLSERVERNAME> -d reportserver -a Windows -u <MYDOMAIN\MYACCOUNT> -p <PASSWORD>
but I got another error saying Report Server WMI Provider error: Invalid namespace
I would really appreciate any help on this.
cheers
I was finally able to get through both the problems by opening a port in Windows firewall for the Report Server.
For Windows 2003 and Vista the steps are mentioned here http://msdn.microsoft.com/en-us/library/bb934283.aspx
cheers
1) Open Start -> SQL Server (20xx) -> find "Reporting Services Configuration Manager" in subfolders -> go to Database tab -> check if "sql server name" and "Database Name" are selected correctly. It is the database which reporting services stores reports in it.
2) if it was OK, check if you have more the one sql instances. If you have more than one instances on your machine, decide which one you want to use. for example sql server 2008 or sql server 2012. Maybe you are using the URL of the reporting services 2008 that is not using a correct database in its "Reporting Services Configuration Manager"

Access denied error when trying to load a package on Intergration Services

I am getting an error when I try and upload a import an ssis project onto our server. The server only has integration and reporting services installed as the live sql server is on another server. I log onto the integration service fine but as soon as I try to right click the MSDB folder to import a package I get the error listed at the end of this question. I have added my local user account as an administrator on the server where the Integration Service is installed and I have added the administrators group to the security permissions for MsDtsServer in component services. Any help with this would be appreciated.
TITLE: Microsoft SQL Server Management Studio
Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum)
ADDITIONAL INFORMATION:
Login timeout expired
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.
Named Pipes Provider: Could not open a connection to SQL Server [2]. (Microsoft SQL Native Client)
BUTTONS:
OK
I had this problem recently. It was a little tricky to figure out.
Here is a nice link from MSDN on how to hack, err, I mean fix it.
Configuring the Integration Services Service
"To manage packages that are stored in a named instance or a remote instance of the Database Engine, or in multiple instances of the Database Engine, you have to modify the configuration file." - MSDN
Thanks Microsoft??
To be more specific, you need to edit this file on your server:
C:\Program Files\Microsoft SQL Server\90\DTS\Binn\ MsDtsSrvr.ini.xml
Change:
<ServerName>.</ServerName>
to
<ServerName>ServerName\InstanceName</ServerName>
Save. and reboot.
Is your server set up to accept remote sql connections? Maybe check your firewall on the server to check that all the SSIS ports are allowed through, and also check in the SQL Surface Area Configuration tool to make sure all the services are set up to allow remote connections.