Tag: programmatically


Search Google Programmatically with Java

import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL;   public class Google_Search { private final String _url; private URL _url_obj; private HttpURLConnection _connection; private final String _userAgent; private int _responseCode; private StringBuffer _totalResults; private final int _quantity; private final int _start; private final String _searchTerm;   public Google_Search(String SearchTerm){ _url = "http://www.google.com"; _userAgent …


Add new column to database table programmatically

Let’s see how we can add a new column to an existing table in database using c#. SqlConnection Connection = null;   try { Connection = new SqlConnection( "Data Source=" + sql_server_ip_or_hostname + ";" + "Initial Catalog=" + database_name + ";" + "User Id=" + username + ";" + "Password=" + password + ";" + …