Access SQL Server 2012 Online [closed] - sql

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I have a database on my home PC. It is on Microsoft SQL Server 2012. I would like to access this data at work. There are 2 options that I am considering and would like to know how to achieve either.
Connect to the DB (home) via Visual Studio (work) online. How to do this?
Turn my home computer into a server. How to do this?
My PC is new and it is on the house wifi network. It is running Windows Server 2012.
If there are better suggestions I am willing to consider. This is for personal use- one user with roughly 50-100 mb data transfer daily to server.

As far as I know, you can connect to Your database from anywhere you want. But for achieving this You need to perform the following actions:
You need to check that Your SQL Server is configured to use both SQL
and Windows authentication (check link
http://technet.microsoft.com/en-us/library/ms188670.aspx).
You need to add a SQL login with needed permissions to Your database(s). Script can be achieved from here. But this operation can also be performed in UI on Your home computer.
You need to check that the port which Your SQL server listening on
is opened in your firewall (list of ports per protocols and Firewall
configuration described here:
http://technet.microsoft.com/en-us/library/ms144228.aspx)
You must have a static IP address on Your home computer. Otherwise the connection can be problematic. The "static" IP can be achieved using dynamic DNS. One of the possible solutions is described here
If all of the above were successfully configured, then you simply can connect to your SQL server by IP address with supplying needed credentials (user name created in the (2), password, target database).
Hope that this was helpful.

Related

Cannot Connect from Hyper-V Manager on Windows 10 to Hyper-V Server 2012 R2 [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 months ago.
Improve this question
Just as the title says, I'm having a bit of a problem connecting from a Hyper-V Manager instance on a Windows 10 machine to a Hyper-V Server 2012 which is found on the same network. Neither of them, however, is joined to AD/DNS/etc... they are both running in WORKGROUP and I'm trying to access the server with the \server\user path and with a user on the server with admin rights and privileges to all of the connected services.
I keep getting the following:
"An error occurred while attempting to connect to server. Check that
the Virtual Machine Management service is running and that you are
authorized to connect to the server." "You do not have the required
permission to complete this task. Contact the administrator of the
authorization policy for the computer."
I have pretty much depleted all of Google's natural resources on this topic and this particular error and I can confirm that nothing from different workarounds/tutorials worked and that all of the relevant services are in fact started/working etc.
Any ideas please? :)
Add the target account credentials to the Windows Credential Manager from the command line and try reconnecting
cmdkey /add:TARGET /user:TARGET\USER /pass
If you are not signed in as administrator, when you open hyper-v manager "run as administrator"
Make sure you run the PowerShell terminal as administrator ("run as administrator")

IIS and SQL on separate servers - how do you setup a user account for .net app? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
Is there a site with details on how to setup a web .net app hosted on IIS requiring access to a db on a remote server? I can do this when both IIS and SQL Server are on the same box, using AppPool user...but don't know how to do this when the SQL server is remote. Our setup:
AD, both SQL Server and IIS servers are in same domain,IIS 7.8 and 8,SQL 2008 and 2012,Databases to be accessed by >1 IIS server. IIS is anonymous access
Is the most secure method to contune to use an app pool user on IIS, and to create a user on SQL with domainname\machinename$
Would I be right in thinking that this would work as the app pool user uses machinename$ Thus both IIS and SQL are using machinename$?
There are really 2 methods to do this:
1) Use SQL server authentication. Create a SQL user and use a connection string in the following format for SQL 2012:
Server=myServerAddress;Database=myDataBase;User Id=myUsername;
Password=myPassword;
2) Use mixed mode authentication and authenticate as a Windows user. Your connection string would look like this:
Server=myServerAddress;Database=myDataBase;Trusted_Connection=True;
You'd first go onto the web servers and create a Windows user. Remove it from the domain users group.
Then you'd go into SQL, add the user you're trying to connect with to the list of users, then grant read/write to the database you're trying to access.
If you go with this method, you'd set your app pool to run as the user you created and then add that user to the IIS_WPG group if you're running Windows 2003 or to the IIS_IUSRS group if you're running Windows 2008 or later.
Either one of these methods are perfectly acceptable. If you're running the webservers in the DMZ (not in your Windows domain), you'll want to go with option 1. If the webservers are in the domain, some would argue that option 2 is marginally safer because you're not storing the password in plain text, but you could still do option 1 if you felt like it.
Also, here's a pretty good site with a list of formats of connection strings for various versions of Windows/.NET/SQL:
https://www.connectionstrings.com/sql-server-2012/

Cannot connect remotely to SQL Server instance [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 9 years ago.
Improve this question
I have an instance of SQL Server 2012 and when I try to connect with it from other PC through SQL Server Management Studio it's not even visible. I can see all other instances which are placed on other PCs.
I tried everything to fix it:
disabled firewall
turned off Anti-Virus
enabled remote connections to this server
enabled TCP/IP protocol in SQL Server Manager
checked if SQL Server and SQL Server Browser is running
restarted SQL Server and SQL Server Browser a lot of times
also tried this: https://stackoverflow.com/a/11278115/2717303
and finally I have reinstalled SQL Server and every component of it
And still I can't see my instance. Does somebody have any other ideas how to fix it?
Here are some screenshots of SQL Server Configuration Manager:
What server name you are using ?
You have to open port for it. After opening port your server name looks like follow.
server name : IP\SqlExpress, 5012
Where 5012 is random port.

connect to sql via windows authentication over vpn [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
The community reviewed whether to reopen this question 1 year ago and left it closed:
Original close reason(s) were not resolved
Improve this question
Is there any way I can connect to a remote SQL server with Windows Authentication over VPN?
I can connect to the VPN server in Windows 7 using Domain Credentials like \DOMAIN\user but I want to be able to connect to the SQL server with the Domain Credentials because I don't have the sa account .
Try creating a shortcut with:
runas /noprofile /netonly /user:domain\username ssms.exe
You may have to hard-code the path to ssms.exe. On modern versions, that's:
"C:\Program Files (x86)\Microsoft SQL Server Management Studio 18\Common7\IDE\Ssms.exe"
In a few locations it will look in SSMS like you are using your local credentials, but you should be able to verify on the remote server that your credentials are being passed, e.g.
SELECT SUSER_SNAME();
This of course depends on your requests being correctly routed to the destination SQL Server.

Web-based, hosted admin tool for SQL Server database access [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I work extensively with MySQL and have no experience with SQL Server. But I have an upcoming project where the existing site's database is on SQL Server. I will be needing to make periodic glances at the existing database, to make SQL dumps most likely so I can write a migration script to the new site database in MySQL. The client will be regularly updating this existing database so just asking for a one-time dump will not help.
Ideally I am looking for a web-based (or desktop based) tool which will allow me to log in to the SQL Server database (I have remote access) and allow me to make a dump or perhaps browse the database structure. Something similar to phpMyAdmin would be nice.
Update: I should clarify that web-based tools which are ASP based are not ideal. As much as I'd like to learn more about ASP, I do not have the time to set up another environment just to run the tool. Something hosted by a 3rd party would do the trick.
Several options are available (probably quite a few more, too):
SQL Web Data Administrator
SQL Server Web Tools
Article on web based admin tools
CiberSQL Web Admin
myLittleAdmin (commercial)
SqlWebArchitect
MSSQL Web Admin (broken link)
DBHawk (commercial)
You can also connect via ODBC to your remote MSSQL server then use MSAccess or OpenOffice to connect, browse or backup.