sharepoint sql server connection in Windows Azure does not work - sql-server

I am stuck with a connection from a MS SharePoint Server 2013 to an MS SQL Server 2012 in Windows Azure. I built three VMs: An ADDC, An MSSQL Server and the SharePoint Server. All of them are in the same subnet.
When I am trying connect the SQL Server during the SharePoint setup I am getting following error:
Cannot connect to database master at SQL server at xxx.cloudapp.net. The database might not exist, or the current user does not have permission to connect to it.
The firewall on the SQL Server is deactivated (for testing), The Domain User is listed in database/security/logins and all rights are granted. Perhaps I am missing something.
Connectionstring:
Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=MyDB;Data Source=MyDB.cloudapp.net

Related

How to connect to Microsoft SQL Server on a local VM?

I have a Windows 10 VM with SQL Server installed on it. I made sure, that in the Sql Server Configuration Manager the SQL Server Browser is running and the TCP/IP protocol is enabled.
I'm trying to connect to the server with Entity Framework (although I'm not sure if it's relevant) and I'm getting this error:
Cannot connect to SQL Server Browser. Ensure SQL Server Browser has been started.
That's the connection string that I'm using:
Integrated Security=SSPI; Persist Security Info=False; Initial Catalog=<database name>; Data Source=<server name>

How to connect remotely to a SQL Server 2012 database that resides on a Godaddy Windows VPS, I am using ssms for connecting remotely

I am using SSMS to connect to a SQL Server 2012 database that resides on my Godaddy VPS. I'm unable to connect from SSMS, but I can connect normally from inside the domain.
I have opened port 1433 for TCP connections through RDP (IPAll). I have restarted SQL Server also. But am not sure whether my Windows Server machine allows inbound connection to 1433.
On SSMS login I am using
server name as ip-address:1433
authentication as SQL Server authentication
followed by username, password
But I'm unable to connect.

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.

Remote connection to SQL server 2008 sp2

I built a window application in visual studio 2010. It is working fine at my computer.
if i have a pc that works with windows server 2008 and i install a sql server on it , how to make my application connect to database in the sql server that instaled in the server pc .
my pc connected to the server domain .
thanks
Assuming your application is already configured to use a Sql connection string, you'll just need to configure it for the Sql Server instance you're connecting to.
For example, if your database is called MyDatabase, and your windows server on your domain is called myserver.local, and you've installed Sql Express with the default SQLEXPRESS instance name, you could create your connection string (assuming ADO.NET) something like this:
Integrated Security=true;Initial Catalog=MyDatabase;Data Source=myserver.local\SQLEXPRESS
This configuration would be for Windows Authentication (Integrated Security=true): so your domain user accounts would need to be granted LOGIN rights on the server, and those Logins associated with USERS and ROLES in your database. If you wanted to use Sql Logins instead (generally requires extra configuration when setting up your Sql Server), there are different connection strings settings for specifying username and passwords. There are many options available for the connection strings as documented here: https://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlconnection.connectionstring(v=vs.110).aspx. However, with Windows Authentication the only 3 you absolutely need are the ones shown above.
You can test connectivity to your Sql Server from your PC on the network using Sql Server Management Studio, which will enable you to verify the instance name and the authentication is working as expected if you can connect to the database.

Classic ASP, problem logging in to SQL Server using Windows Authentication

I failed to connect using this connection string
strConnString = "Provider=SQLOLEDB;Initial Catalog=fsw;SERVER=HARDIXP\hardi;Integrated Security=SSPI;"
Microsoft OLE DB Provider for ODBC
Drivers (0x80004005) [Microsoft][ODBC
SQL Server Driver][DBMSLPCN]SQL Server
does not exist or access denied.
I can connect fine using SQL Server Management Studio. On the "Connect to Server" dialog, I have
Server Name: HARDIXP
Authentication: Windows Authentication
After it is connected, the server looks like this
HARDIXP (SQL Server 10.0.2531 - HARDIXP\hardi)
If I don't specify the server name, the error will be
Microsoft OLE DB Provider for SQL
Server (0x80040E4D) Login failed for
user 'HARDIXP\IUSR_GEOFFREYXP'.
Note that it is trying a different user, probably because the database was first set up for Geoffrey, not Hardi.
How can I connect to my local SQL Server from this Classic ASP code?
EDIT: I am on Windows XP, IIS 5.1
Assuming this is running on windows.
The ASP process needs to be running as a windows authenticated user that has access to the
database. Just set the application pool on the website to have this identity's credentials.

Resources