How to access remote sql server via VPN? - sql

Well i am familiar with this kind of statement: "And i am gonna state the obvious here, but it is generally a bad idea to expose your sql server on the internet.. (unless you are using VPN)".
Ok then, if it's a bad idea, can anyone please show me how to do it via VPN? Please correct my question if i am wrong. Thank you!
PL: C#, SQL SERVER 2000

The first thing you will need is a VPN client. There are tons of them available, and few of them are even free. One such example of VPN client is LogmeIn (paid software for enterprise use). Please follow the steps mentioned in below link to setup LogmeIn VPN and share sql server database securely.
https://www.sixbitsoftware.com/docs/webhelp_prosb/Sharing_a_Database_Over_a_Virtual_Private_Network_(VPN).htm
Note: Assuming you want to know how to share a sql server database securely using VPN.

It depends on what you're running. Some/most server software applications have an option for it. Windows Server for example has RRAS (Routing and Remote Access Services)
Related question: Not connecting to SQL Server over VPN

Related

Internet access Server 2012 R2

I have a Server 2012 R2 that I connect through via RDC however we need to have this server be able to access the internet. When I try to access an internal site this seems to work fine. However when I try to access a simple webpage, I cannot get through to any outside site such as bing.com, yahoo.com or google.com.
I'm very new to server administration so any help would be greatly appreciated. I may not understand it (yet) completely though so please bear with me.
FWIW: The overall goal is to have this server run scripts that I write (or have already written) that pull data from various sites. This data is then transformed and uploaded to our databases for analysis.
Thanks in advance and again, please forgive my server administration ignorance.
I would check the settings on the firewall between your server machine and the internet. Can you reach external web sites from a browser running on the server machine?
Note: Exposing a server to the internet is a perilous thing to do.

Can't connect to Azure sql server or even ping

I can't connect to my Azure SQL Database that I have hosted on MS Azure.I have tried with Visual Studio and MSSM with no luck.
I can't seem to work out how I could possibly be going wrong. I allowed access to the server on all IPs.
I am using the correct login info.
I dont seem to be even able to ping the server, despite it showing no issues in the Azure interface.
The server is located at: kkbpeyaf0t.database.windows.net
I tried to connect to the URL you provided using SSMS and it gave me a login failed (which I expected), so that tells me that the database is running and that you did indeed open up the IP ranges to allow anything (which isn't a best practice, but I'm assuming you did this as part of your troubleshooting). IF the Azure SQL DB firewall was still in the way it would block immediately indicating so.
I would think that if you have the correct username and password combination it should connect. Make sure that your outbound port 1433 isn't being blocked by your own firewall (machine, work, ISP, etc.).
Azure SQL Database won't respond to pings.
Docs can be found on MSDN.

Sql server-client installment

i don't know where to ask this I hope sof is the right place.
I give t-sql classes to a professional school, and it's my first time. The school doesn't have any software installed but they want it to be microsoft sql server only. So the thing is, I know in oracle I can have a server installed at home and my students use a client to connect to it and each using their separete db-user, execute the tasks I ask, all is fine and dandy. With sql server from microsoft I don't even know/can't find a client version... I'm talking about 2012 version.
So... is there a client software to acess a sql server or any other similar way? Currently I enabled everything I could related to ssh and I'm trying to connect with other machine to my sql server via ssh but to no success. (I considered this another possible solution)
The thing is, I don't wan't to install 20 SQL servers on desktops... I think it doesn't make much sense since all their tasks are related to SQL sintaxe and basic rules and database normalization.
I'm sorry for my english, I'm not native.
You can use Sqlserver Manament Studio. Which is used to connect sqlserver from client or server means, in network or even though from live sqlserver too.
one thing you remember about 32-bit , 64 bit version.
http://en.wikipedia.org/wiki/SQL_Server_Management_Studio
http://msdn.microsoft.com/en-IN/library/bb934498.aspx
Follow the link that how to install SSMS.
http://blogs.msdn.com/b/bethmassi/archive/2011/02/18/step-by-step-installing-sql-server-management-studio-2008-express-after-visual-studio-2010.aspx

Creating a Database Server for home use in SQL Server 2005 Express

I am looking to create a database server that can be used to store data using a VB.net application. When I initially installed SQL Server 2005 Express edition, I believe I installed this using the LocalDB option.
As it stands my application is a simple tool which utilises the Process.Start command under certain situations, depending on user input, to launch Game Servers for use at a gaming LAN I assist in running.
I wish to progress the application by being able to update, delete and query a database created in SQL Server 2005 Express. I understand the use of connection strings etc, however I am wondering if the installation using LocalDB will mean that I cannot connect to the server to process the data I require.
Can I continue to use the LocalDB option and create a Database Server for specific use using my application or is a different installation option required?
Secondly, can someone point me in the right direction of how to create a new Server for this purpose? All of my searches so far have provided results for creating a database only, and not the server.
I have a couple questions about what you are trying to do.
First, why are you installing SQL Server 2005? It was released almost a decade ago.
I would go with 2012 express edition.
http://www.microsoft.com/en-us/download/details.aspx?id=29062
Second, install the management tools. SSMS is a nice GUI to do work in.
Third, If you are spinning up anything other than express, there are licensing costs which are quite high. 9K for standard and 25K for enterprise per socket or such.
Here are the versions and features list from microsoft.
http://technet.microsoft.com/en-us/library/ms144275.aspx
Last but not least, having the express edition on another computer is fine. However, you will have to use a network protocol such as TCP/IP instead of shared memory.
It will take longer to send Tabular Data Stream (TDS) to the other computer versus talking to memory on the same computer.
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/c4f06669-41fd-42e6-b4a9-564cf04ca9f7/how-to-choose-between-shared-memory-named-pipes-tcpip-via?forum=sqlgetstarted
Good luck with your project.
You can use a local instance of SQL Server just fine, if you want to set up a separate server for some reason then you'll need either a 2nd machine on which to install SQL Server, or to spin up a virtual machine. If running Windows 8 (and barring hardware limitations) you have Hyper-V at your fingertips.
This is not a complete answer for you but may give you some things to think about.
First you might want to think about your choice of database. If you don't have a compelling reason for using 2005 you will probably at least want to move to SQL Express 2008.
Second, to answer the part about creating a server... A server is something that serves data. In a general sense a computer configured to be contacted by external machines and respond with data is a server. A web server runs a program like IIS or Apache to respond with web pages. A database server contains a database and allows connections to that database. So as long as you install the database on a computer and configure it to allow external connections, you have your database server.
In MS SQL there are several things that need to be set up to allow a database to accept external connections. One is that the SQL Server Browser service will need to be active. Another is that the database itself will need to be configured to allow external connections (SQL Authentication type probably).
Hope this helps.
Addition:
SQL Remote Connection Configuration
Disclaimer, I don't have SQL Express 2005 installed but I think the settings are found in the same place in 2008. If the info here is not exact to SQL Express 2005, the general terminology used here should be enough to get you headed in the right direction to find the specifics.
While viewing the database in Server Management Studio or Enterprise Manager, right click the database server instance name (the root of the tree) and select properties. There should be a section title Connections and within this section there should be an option "Allow remote connections to this server". Make sure it is checked. The other setting you need in this properties menu is under the security area. There is a radio button for "Windows Authentication Mode" and "SQL Server and Windows Authentication Mode", you want the second that allows both.
The next step you have may be to create a new user, add a password, and connect the user to the database. That will give you the credentials you will use in your database connection string while programming. I usually add new users through the security section of the database then set the User Roles for each database that I need to connect to. It is good practice to limit the permissions to those needed by the application. Typically this is read and write, but sometimes you can get away with just read. The less the better.

Online SQL Server database accessed from my software

I have been working on the software using a SQL Server database. Now I am in the phase when I would like to provide this software for other people, but I don't know how to manage the database. The thing is that it is really inconvenient when installing my software to also install SQL Server at the users computer (many unexpected thing could happen).
Therefore I thought that I would pay for web hosting with SQL Server, but it is:
Expensive (just for database with few tables).
Most of the web hosting don't offer remote access to the SQL Server database (so I can't connect there from my software).
So there is my question, what would you do? My own virtual server? (even more expensive), or would you install SQL Server on users computer? Or do you know where to get only SQL Server hosting for low costs?
I don't advice using a remote SQL Server. SQL Connections strongly depend on network connection and the Internet is not "stable" enough for that. There are also performance issues that will make your application completely useless.
One important thing you didn't mention is whether different users will share the same data or will have their own. If each user will use their own data you can install a "local" SQL Server Edition (SQL Compact Edition, here is the reference)
http://msdn.microsoft.com/en-us/library/aa983341(v=vs.110).aspx
In case several users will share the same data, you shouldn't rely on the database solely. One possible approach is having an Application server that implements business logic whereas your desktop application stays actiong as a "dumb" client. This is a lot better for performance and reduce data transfer problems. You can implement webservices for you application server. This is a good solution as the data is transfered from he application server to the clients through HTTP/HTTPS and this relieves you from dealing with ports and other communication issues. An alternative is using Microsoft Communication Framework (WCF)
Good luck!