Get Internet Time instead of pc time in vb.net [duplicate] - vb.net

This question already has answers here:
How to get DateTime from the internet?
(6 answers)
Closed 8 years ago.
I have an application that runs on local machines (multiple users) most likely its like a DTR system. This application is based on client-server architecture, so in this I need the same time over all the PCs, so by any method when on any PC application starts it fetch the current time from internet or from any server which provide accurate and same time to all the users. I searched other solutions but its no luck.
Any ideas and alternatives is much appreciated!

You can query an NTP server. This is basically a server that offers information about the current time. There are servers like pool.ntp.org or google time servers under time1.google.com and so on.
In order to query these you can refer to previous answers with complete code like this on:
How to Query an NTP Server using C#?
It's in C# but you can easily convert it to VB.net with tools like http://codeconverter.sharpdevelop.net/SnippetConverter.aspx

Related

SQL Developer Status : Failure - I/O Test failed: The Network Adapter could not establish the connection

I am a newbie don't know how to use SQL developer. whether I need Oracle database for installing in windows 10 what are these hr and sys users and how to know their passwords. please help me I know this question is asked many times but really, believe me, I have searched a lot but can't find a working solution for it.
Screenshot of my pc:
So you installed Oracle SQL Developer, and you don't know what to do next?
Here's the answer in long-form, with lots of pictures and links.
The short answer: SQL Developer is JUST a client. You need a server to connect to, and that server IS the Oracle Database.
You can get your own running on the same machine as SQL Developer. Oracle XE is free and lightweight.
Or you can get our VirtualBox appliance that has everything already going - a database with test data, hands-on-learning labs, and much more - also FREE.
Of the two, I recommend VirtualBox, because it's more up to date, and it's juts an image - it won't 'pollute' your machine in case you decide to stop using the DB. You can just nuke the image.

How do I view an embedded RavenDB database? [duplicate]

This question already has an answer here:
Is it possible to connect to an embedded DB with Raven Management Studio
(1 answer)
Closed 5 years ago.
RavenDB server comes with a web UI Studio letting to look what's inside. But what's the way to take a look in an embedded RavenDB?
If you are running a test you can use the WaitForUserToContinueTheTest method. Otherwise I guess you'll need to start the http server yourself.

Deploying a Windows Form App in C# for multiple users with SQL Server. Alternatives for databases?

I'm working on a database driven program in Visual Studio 2015, in C#, Windows Form Application, and I'm using SQL Server 2014 for my databases, downloaded the most recent version from the MSDN site.
I've got it working well. But if I want other users on other computers and different versions of Windows, this would require them to have SQL Server installed, correct?
Basically the app is used for storing current medications, moods, a mood quiz, symptoms, etc.. and I store all the results in SQL Server databases. They can be edited, deleted, etc through the program's GUI. Do the users need SQL Server installed to use this app?
If so, is there an alternative to keeping databases without having to have the SQL Server connections, or is there a way to do this without the users having to have SQL Server installed? I don't want remote connections to me, I want it standalone.
Does this make any sense? If not, I can explain more. I know way back in the days of Visual Basic 4 I was making, reading and writing databases without SQL. But that was 16 years ago. So I'm wondering what the easiest solution to this is. Thanks!
In other words, you want a database that you can a) distribute to end users freely and b) that will 'connect' just to the copy of the database they have stored locally.
Here are a few options ---
SQLite over ODBC is as-easy-to-use as MSSQL, the driver can be found here:
SQLite ODBC
Use ConfigurationManager.OpenExeConfiguration to read / write your app config .xml file and use it as a key / value store. I can provide examples if needed.
Dynamically create an Access database, it should work as well as MSSQL for most things, with less overhead. Here's how:
Create an Access Database
Use SQLIte DLL. Details on SO
create-sqlite-database-and-table

Using an old laptop as a SQL server to store online game data [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have been working on various game projects for the last year and would like to now get into some basic multiplayer connectivity.
I figured web-based games would work best for me as I work as a junior web developer and have experience with SQL and how to grab data from a SQL server and use it in a web page.
My question is how I host the SQL data: I have an old laptop kicking around and thought I could leave it running in my room as a basic SQL server, but is there more to it than that?
I can happily just install SQL Express on my laptop but does that then set up a location on my laptop that stores data? Or do I need to be looking for a small dedicated server unit?
I feel like I'm asking a question I should know the answer to but I guess it is down to a hole in my knowledge as to how SQL databases are stored etc.
So in conclusion, can i host a SQL server on my laptop? And is it achieved by simply installing SQL Express 2014 and creating a database and table set?
Worth also noting that the game will be small scale so I'm not looking for a rock solid solution with potential to scale up, just something to start off with.
Regards, Josh
whilst it would work, you would be better served getting it hosted on windows Azure, there are a number of free hostings availible for databases, the logistics of hosting at home become a little too much after a short period of time.
http://azure.microsoft.com/en-us/develop/net/aspnet/
Install SQL Express
Create a database and table using SQL Management Studio (Logging on to your local SQL express instance)
Set up port forwarding on your router, to forward incoming SQL traffic to the laptop.
Set up Dynamic DNS on your router. If your router does not support his, get a dyamic DNS update client and run it on the laptop.
Use the dynamic DNS and port that your forwarded, in your connection string to access it from "internet" hosted web page.
I recommend changing the incmoing port your are forwarding, to "hide" the SQL instance from the obvious port. I.e. Port In - > 7546 forwarded to laptop ip, on port 1433
You may need to do a bit of research on each point.. but it will really benefit you in learning about the above... I consider it crucial knowledge for a good developer to know what is happening "behind" the scenes...

Disconnected Access DB to collect info then upload to sql database [duplicate]

This question already has an answer here:
Update SQL Server table with local data
(1 answer)
Closed 8 years ago.
I am creating an Access Database that will reside on a Windows Tablet.
The user will take the tablet to locations where network and internet access aren't available, create entries into the local database on the tablet.
The database was developed on Sql Server 2008, then copied to local table to insure correct structure.
I can collect the data fine, my question is this:
When the tablet is back on the network, I want to use a button to upload the data stored locally to our SQL Server, then remove the data from the local database.
How do I connect the SQL Database (connection string info in VBA I assume - just don't know the syntax) and perform the upload when back on the network?
Thank you,
Steve
If you are talking about synchronising a local sql database on a table (surface ?) to say web based sql server you might want to consider the sync framework - see this post for more information on its use in mobile
mobile and sync framework