SQL Server Limit Allowed Hosts - mysql

In MySQL, I can set which hosts are allowed to connect to the server in the config file. Is there a way to do this in SQL Server?

Yes you can do all this via
SQL Server Management Studio
directly over SQL ( see http://msdn.microsoft.com/de-de/library/ms173463.aspx )
You can give access for domain users, groups or just create an independent user. There's lots information in the web so feel free to google some howtos.

Related

How to know where my MySQL database is being hosted and how can I access it?

I have the following information to a SQL database
Server : MyUserName.mysql.db
User : MyUserName
Password : MyPassWord
I am a little noob in this context, so I have some questions:
How to know where is hosted my database? Is it in mysql domain? (Isn't that the type of database?)
How can I access it and visualize it?
To begin with, you need a CLIENT to be able to access your database. For MySQL, you can use either Workbench or MySQL CLIENT (the last giving you command-line level access).
Second, and according to your information, the server is MyUserName.mysql.db so if you try to PING that server you should get some response.
Third, MySQL has a default port number so you need to configure your client to access that server though that port (if I'm not mistaking, 3306).
You will also need access credentials to your database.
Your DB administrator should be able to provide all the information you need.
Contact your database administrator.
If you're trying to acess/visualize sql server database on your local computer install ssms to connect to your local database , similarly you can access any other database through ssms.

Setup a linked server connection from Microsoft SQL Server Management Studio to a MySQL Amazon Web Services MySQL RDS?

I want to add a MySQL instances that is running as a RDS service through Amazon Web Services as a Linked Server in Microsoft SQL Server Management Studio.
Does anyone know of any information on how I can set this up?
What I want to be able to do is query data from my MySQL server from the local Micorsoft SQL server and then combine the data into other queries.
SELECT *
FROM OPENQUERY(MySQL_Link, 'SELECT *
FROM users
WHERE name = 'test')
Do you already have the ODBC connection set up to connect to the instance?
Unable to connect to remote mysql server using unixodbc, libmyodbc
I would think that once you have that working, you would be able to use the same process for creating a linked server to MySQL
I hope this is helpful.

SQL Server 2008 Express server information

I installed a company specific program which can connect to a SQL Server. I installed SQL Server 2008 Express with mixed authentication. I called the instance SQLExpress.
What I want to do is to create a new database via the program. (see image). In point 5 I tried many logins like sa-login, MyComputerName\User-Password, User-Pass, but nothing works. In point 6 I used for the server name SQLExpress or MyComputerName\SQLExpress and for the (new) database name I used MyDB, but same thing here. Can't connect.
It keeps saying:
cannot create database master.MyDB. SQL Server doesn't exist or access denied.
Can anyone help me please?
Image: http://imageshack.us/photo/my-images/248/sqlserverinfo.png/
Thx
I figured it out.
I've created a user in SQL Server and added him to the "sysadmin"
role and gave him access to the "master" database.
After that I added an inbound rule (allow port 1433) to my Windows Firewall to allow remote connections to the SQL Server.
See http://msdn.microsoft.com/en-us/library/ms175043.aspx

How do I use mssql server service name during accessing database object from sql?

when accessing database objects from other server I use [server].[database name].[schema name].object_name
but if the service name of the mssql database server is different than the default service name (i.e. MSSQLServer2008R2) then how do I access the database object? what would be the syntax?
It looks like you're confusing several different things here.
The instance name is the name you provided when you installed SQL Server. If you didn't give an instance name, then you installed a default instance that has no name. See the documentation on instances here. You can access a default instance using ServerName but to access a named instance you need to use ServerName\InstanceName.
Each instance of SQL Server has a Windows service that runs it; the name of that service is formed from the instance name by default. These are the services that you see in the Windows Services list or SQL Server Configuration Manager.
Finally, when you use four-part naming to access a database on another server, you define a linked server name when you create the linked server. The server name you give does not necessarily have to be the same as the remote server's instance name; it can be anything you like. See the documentation for sp_addlinkedserver here.
Your question seems to be asking, "what is the correct linked server name for a named instance on another server?". Example A in the documentation I linked to for sp_addlinkedserver shows how to create a linked server to a SQL Server named instance, I think that may be your real question.

TFS 2010 Data Tier Configuration Error

I am installing TFS2010. There is a separate Application Tier server and Database Tier server. I am using an already existing database, called Tfs_Configuration. When entering the database name/instance name I am able to test it and obtain the green check-mark so TFS can find the database. The version of SQL server I am connecting to is - SQL Server 2008 SP3. But when I run the readiness tests I get the following messages-
First are those two warning causing the error?
Also, I have db_owner rights to the existing database (Tfs_Configuration) that I am connecting to. What other rights do I need? And what can I do to resolve these issues?
The first error suggests you need the sysadmin role which is in fact a SQL Server role which can be enabled by doing the following:http://blog.sqlauthority.com/2008/12/27/sql-server-add-any-user-to-sysadmin-role-add-users-to-system-roles/
Hope that moves you past at least one error.
You need to be Sysadmin of the SQL instance or a role that is able to create new databases, because the installer wants to create an additional database for the DefaultCollection (and the TFS_Warehouse, TFS_Analysis). Therefore it is not enough to be the owner of TFS_Configuration.