While you can use a GUI such as MySqlWorkbench that works with MySQL to create a database, you can also use the command line to create a database.
The MySQL used in the present case is the version that came with a recent XAMPP download. XAMPP is an easy to install Apache distribution that brings with it MySQL, PHP and many others. The one I used is a Windows distribution which contains many other programs. Presently I am using only the Apache and MySQL. Here is a XAMPP Control Panel that I use often. As I also have a IIS5.1 running on the same machine (at default port 80), I have to use one (Apache) or the other (IIS) at any given time. It is very easy to stop and start as you can see in the control panel.
In my previous post I described how you may connect to the database from your DOS window.
Here is the login command and the 'Show Databases' command to review the databases on this server:
----------
C:\xampp\mysql>cd bin
C:\xampp\mysql\bin>mysql -h localhost -u root -p
Enter password: *********
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 12
Server version: 5.1.30-community MySQL Community Server (GPL)
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| cdcol |
| expacc |
| mengerie |
| mydb |
| mysql |
| phpmyadmin |
| test |
| webauth |
+--------------------+
9 rows in set (0.00 sec)
mysql>
-----------------------------
To create a new database (TestDemo) is easy as you see in this command:
mysql> create database TestDemo
-> ;
Query OK, 1 row affected (0.05 sec)
mysql>
--------------------------
If you run the Show Databases again, you will see the new database (of course it will be empty) as in the following:
mysql> Show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| cdcol |
| expacc |
| mengerie |
| mydb |
| mysql |
| phpmyadmin |
| test |
| testdemo |
| webauth |
+--------------------+
10 rows in set (0.08 sec)
mysql>
--------
You do a quit when you want to get out as in:
mysql> quit
Bye
C:\xampp\mysql\bin>
Monday, June 29, 2009
Sunday, June 28, 2009
Creating a database in EnterpriseDB
You want to learn working with Postgres and your computer is working off Windows OS like mine (Windows XP Pro). The first thing you my want to do is to download the Advanced Server from EnterpriseDB's web site as detailed in this article. Once you have the server you may want to create a database with which you can practice. This post shows you step by step how you may take this important step. Do not worry, this will not be a production server and this database is just for practice and give yourself maximum privileges. Do not worry about security even, that will have to be taken care of before you face the public.
Right click the Databases node to invoke a drop-down pick list
Click New Database... to open the new window as shown. You have to provide a name to the database. I have given MoveTable as the database name. When you installed you provided a owner name. You should be able to find this in this drop-down list. You may provide a comment to remind why you created this in the first place. For now you can accept other defaults in the Properties tab.
Also accept the defaults in the next tabbed page Variables.
In the Privileges page give Public (you will be the only 'Public') the maximum privilege as shown.
In the SQL tab you will see the script that will create the database.
When you click OK you will have created a database as you see in the databases node (Refresh if you have to)
Presently there is no table in this database as shown.
In the next step you will have to create a table, or import a table from another database, or even from another server. That will be in a future post.
Right click the Databases node to invoke a drop-down pick list
Click New Database... to open the new window as shown. You have to provide a name to the database. I have given MoveTable as the database name. When you installed you provided a owner name. You should be able to find this in this drop-down list. You may provide a comment to remind why you created this in the first place. For now you can accept other defaults in the Properties tab.
Also accept the defaults in the next tabbed page Variables.
In the Privileges page give Public (you will be the only 'Public') the maximum privilege as shown.
In the SQL tab you will see the script that will create the database.
When you click OK you will have created a database as you see in the databases node (Refresh if you have to)
Presently there is no table in this database as shown.
In the next step you will have to create a table, or import a table from another database, or even from another server. That will be in a future post.
Wednesday, June 24, 2009
MS Chart then and now
MSChart20.ocx was an ActiveX control that you used then (before 2007) in your Visual Basic Programs. Now with ASP.NET 3.5 you will be using the MS Chart control, a totally different control in your Visual Studio applications. Of course you referenced Microsoft Chart Control 6.0(SP4)(OLEDB) then, but now you will need to install MSChart.exe and do few other things. Read Part 1 of a comprehensive tutorial in two parts at the DotNetSlackers.net site
No mango trees, No coconut trees in San Diego
I see a lot of palms and lots of flowering trees and shrubs, alas no coconut trees, no mango trees.
The soil is probably too cold for these trees to thrive.
It's end of June and lots of Jacarandas everywhere. A city blessed with flowers. Here is a street side Jacaranda past its prime time.
Palms in front of San Diego's Civic Center
The soil is probably too cold for these trees to thrive.
It's end of June and lots of Jacarandas everywhere. A city blessed with flowers. Here is a street side Jacaranda past its prime time.
Palms in front of San Diego's Civic Center
Tuesday, June 23, 2009
Get started with Oracle SQL Developer 1.5.4
Oracle SQL Developer 1.5.4 is a stand alone GUI developer tool that connects to Oracle as well as few other thrid-party databases. You can run queries as well as migrate data with this tool.Get started with this tool but review the article at SSWUG.ORG site before you do so.
Using the Oracle SQL Developer 1.5.4
It is subscription based site but you can sign up for free as a guest to read the article. Make sure you rate it.
Using the Oracle SQL Developer 1.5.4
It is subscription based site but you can sign up for free as a guest to read the article. Make sure you rate it.
Wednesday, June 17, 2009
Data from MS Excel to SQL Server 2008
Microsoft Excel is a number cruncher par excellence loved by the bean counters (not by Managers though, they love Power point). At times, you may need to take the data on an Excel Spreadsheet to a SQL Server database. This new article I wrote does this for you. The example is trivial but the process is laid out in black and white with screen shots.
If you want to capture tabulated data on the internet and take it into SQL Server or another server, you can run a web query using Excel and transfer it to SQL Server. There are many ways you can play this game.
Check out this article on the DotNetSlacker's web site,
Monetizing your bing searches or Forget your money problems
There is a pilot Ads program that you can use to monetize searches on your web pages. Sign up at Bing Developer Center using Windows Live ID. Create one if you don't have. You will get an AppID when you sign up which is your passport to the Microsoft adCenter Publisher program. Of course your web site will be evaluated to see if it is worthwhile for Microsoft to help you monetize your site. I have tried three long years with Google and yet so see how a Google check looks like. May be I should give Microsoft a chance. Just check it out if you are interested. Another thing. This is only for US based publisher for now.
Read more about Bing API here.
Happy Binging!!!
Read more about Bing API here.
Happy Binging!!!
Tuesday, June 16, 2009
MS Access Linked Server, comparing providers
In this article on SSWUG.org web site, the MSDASQL OLE DB ODBC driver is compared with Microsoft Jet 4.0 as related to creating a linked server on SQL Server 2008. Details of creating a linked server as well as accessing data using queries are also discussed.
Microsoft Access 2003 Linked Server on SQL Server 2008 using the JET and MSDASQL Providers
This is a subscription site and you can join as a guest and read the article. If you like what you have read you can become a member.
Microsoft Access 2003 Linked Server on SQL Server 2008 using the JET and MSDASQL Providers
This is a subscription site and you can join as a guest and read the article. If you like what you have read you can become a member.
Saturday, June 13, 2009
Configure Data Source Wizard in Visual Studio 2008 and MS Access 2003 Data Source.
Recently I tried to connect to the Northwind database on MS Access 2003 using the Configure Data Source wizard and I found these problems.
No 1:
It is suggested to,"choose Browse button to locate a file on your computer". The browse button should therefore display the computer folders but what it does is to display the Project folders shown here.
No 2: Now I use the other option. I add a new item to the AppData folder - the Northwind.mdb file. I provide the relative path to the added file in the Configure Data Source wizard as shown in the next figure.
Now when I click next, this is what I get.
Well, the application is on line and more over the firewall is turned off. This leaves no choice but to go thorough code to get connected. Perhaps this is a quirk of this installation! or is it a bug.
No 1:
It is suggested to,"choose Browse button to locate a file on your computer". The browse button should therefore display the computer folders but what it does is to display the Project folders shown here.
No 2: Now I use the other option. I add a new item to the AppData folder - the Northwind.mdb file. I provide the relative path to the added file in the Configure Data Source wizard as shown in the next figure.
Now when I click next, this is what I get.
Well, the application is on line and more over the firewall is turned off. This leaves no choice but to go thorough code to get connected. Perhaps this is a quirk of this installation! or is it a bug.
Friday, June 12, 2009
Microsoft Products with other software
Enterprises use products from disparate vendors based on their business needs; chronological evolution of their business; plain necessity and for any number of other reasons. Hence there are always occasions that they will be looking beyond a single vendor or product. I have been looking at how Microsoft products mesh with other vendor products with the view of helping to provide some help by writing about my experiences which I list here. It is possible that the list is not complete.
Thursday, June 11, 2009
SQL Server Report based on an ad hoc query
In my previous article on DotNetSlackers site I described creating an EnterpriseDB Linked server on SQL Server 2008. In this article the idea is carried forward to create a SQL Server 2008 report based on a distributed Ad hoc query using data on the SQL Server 2008 and a linked MS Access 2003 database. The article describes step by step the procedure to create such a report using Report Builder 2.0. The idea is generic and can be adopted for other scenarios as well.
Review the following article for more details,
Authoring a SQL Server Report Using an Ad hoc query
Do more by learning to work efficiently with SQL Server Reporting services.
* Get two free chapters of my book 'Learn SQL Server Reporting Services 2008' from the pubisher's web site.
Review the following article for more details,
Authoring a SQL Server Report Using an Ad hoc query
Do more by learning to work efficiently with SQL Server Reporting services.
* Get two free chapters of my book 'Learn SQL Server Reporting Services 2008' from the pubisher's web site.
Tuesday, June 09, 2009
Authoring a SQL Server report using the twitter API
Twitter is the 'What are you doing (now)?' social messaging, fastest growing phenomena on the Internet. Members who register with 'Twitter' publish brief messages in text which other members who have agreed to follow can read these messages. Media has jumped on this idea to send out brief messages which will probably appear in extended form later. They (twitter) are trying to monetize the service.
My new article captures the information from one of its API and formats that captured information and turns it into a SQL Server Report using the Report Builder. In this article it is a two step process but it can be bundled into a single applicaiton. You may access the following article on SSWUG.org website.
Tweets with Reporting Services
Become a member of twitter and follow me to get news of my latest articles.
http://twitter.com/subbagiri
It is subscription based site but you can sign up for free as a guest to read the article. Make sure you rate it.
Thanks
* Get two free chapters of my book 'Learn SQL Server Reporting Services 2008' from the pubisher's web site.
My new article captures the information from one of its API and formats that captured information and turns it into a SQL Server Report using the Report Builder. In this article it is a two step process but it can be bundled into a single applicaiton. You may access the following article on SSWUG.org website.
Tweets with Reporting Services
Become a member of twitter and follow me to get news of my latest articles.
http://twitter.com/subbagiri
It is subscription based site but you can sign up for free as a guest to read the article. Make sure you rate it.
Thanks
* Get two free chapters of my book 'Learn SQL Server Reporting Services 2008' from the pubisher's web site.
Friday, June 05, 2009
Generating reports from an OLAP server
SQL Server Reporting Services 2008 is a great tool to create and manage reports from a variety of data sources besides MS SQL Servers such as Oracle,Sybase, DB2 etc. Reports can also be generated from Analysis Services, XML documents etc. In this article I describe the procedure to develop a report from a database on the Analysis Services 2008, yet another great data product from Microsoft.
I was originally planning to include this in my book, 'Learn SQL Server Reporting Services 2008 ', but the book had already reached the target page count and therefore it was left out.
Well here it is, presented in a somewhat abbreviated form. It will be best if you read the previous two articles before you read this one,
Creating a matrix report using the Analysis Services Cube
Previous Articles on SSAS 2008
Creating an Analysis Services Cube with Visual Studio 2008 - Part 1
Creating an Analysis Services Cube with Visual Studio 2008 - Part 2
Other OLAP related articles
I was originally planning to include this in my book, 'Learn SQL Server Reporting Services 2008 ', but the book had already reached the target page count and therefore it was left out.
Well here it is, presented in a somewhat abbreviated form. It will be best if you read the previous two articles before you read this one,
Creating a matrix report using the Analysis Services Cube
Previous Articles on SSAS 2008
Creating an Analysis Services Cube with Visual Studio 2008 - Part 1
Creating an Analysis Services Cube with Visual Studio 2008 - Part 2
Other OLAP related articles
Get Tata Motors stocks now don't postpone to 2012
If you are buying stocks Tata Motors (TTM ) is a non brainer. It has started sizzling and by 2012, it could be one of the hottest when Tata starts selling in USA. I hear people are standing in queue to buy the Nano.
I have vested interest because a long time ago I graduated from one of the institutions that the philantropic Tata's built in India which blossomed into one of the most prestigious educational institutions in India.
I have vested interest because a long time ago I graduated from one of the institutions that the philantropic Tata's built in India which blossomed into one of the most prestigious educational institutions in India.
Labels:
IISc,
Jamsetji Nasarvanji Tata,
Nano,
Tata Motors,
TM,
Toyota,
TTM
Thursday, June 04, 2009
Generating a report using data on an EnterpriseDB Server
This article with the link shows step-by-step how you may retrieve data from a database on a Postgres Plus server and display the results in a report generated using Report Builder 2.0. Report Builder 2.0 is a report building and maintaining tool provided with SQL Server 2008. The evaluation version of SQL Server 2008 Enterprise edition was used in this tutorial. Report data is obtained via an ODBC DSN. The connection uses an EnterpriseDB ODBC driver that gets installed on the computer when EnterpriseDB is installed.
Authoring an EnterpriseDB report with Report Builder 2.0
For 50 more articles of this nature read the book,
'Learn SQL Server Reporting Services 2008 ' by the author.
Authoring an EnterpriseDB report with Report Builder 2.0
For 50 more articles of this nature read the book,
'Learn SQL Server Reporting Services 2008 ' by the author.
Wednesday, June 03, 2009
Have you binged lately?
Microsoft's search engine'Bing' has been out for sometime. Look it up, or better review some of the videos at this site.
http://www.discoverbing.com/behindbing/videos.aspx
Here is a screen shot of the search page.
Wish you good luck, BING!
I just searched for the word 'hingu' which is used in cooking from Middle East to Souhteast Asia. I only present the first three items from Yahoo, Bing and Google. Google returned the most relevant and both Yahoo and Bing the irrelevant (Well it could not read my mind).
Yahoo
Google
Did you mean: Hindu
Bing
http://www.discoverbing.com/behindbing/videos.aspx
Here is a screen shot of the search page.
Wish you good luck, BING!
I just searched for the word 'hingu' which is used in cooking from Middle East to Souhteast Asia. I only present the first three items from Yahoo, Bing and Google. Google returned the most relevant and both Yahoo and Bing the irrelevant (Well it could not read my mind).
Yahoo
Also try:
Search results
Starting at $99.00. Earrings. Starting at $99.00 ... Contact Us: Accent Jewelry. 494 E. 1st Street, Tustin, CA 92780 ... Designed and Conceptualized by AGS ...hingu.com - Cached
Sanjay Hingu Is Known For Men's Stylish Collection And He Is Very Famous For His ... Mai Mumbai Digvijay Singh Rohit & Abhishek Sanju Hingu ...fibre2fashion.com/news/promotions/.../ sanjuhingu.asp - Cached
Fashion News India - Menswear Day by Digvijay, Rohit, Abhishek & S Hingu at LFW - Day 2 - Digvijay Singh for Bhusattva gave an organic fashion slant to men̢۪s ...www.fibre2fashion.com/news/fashion-news/ newsdetails.aspx?news_id=70715 - 62k- Cached4
Did you mean: Hindu
Search Results
Hingu - eMedicinal.com
Hingu, Friday, May 29, 2009 ... herbs A wei (Chinese name) herbs Devil's dung herbs Ferula herbs Food of the gods herbs Hingu (Sanskrit name). Back to Top ...
www.emedicinal.com/herbs/hingu.php - 33k - Cached - Similar pages -
Hingu, Liquorice and Castor Oil
Hingu/asafoetida (50g) Ref: 14003. A Strong flavoured resinous spice that is useful ... This is pure hingu, with no bulking agent (as most asafoetida has). ...
maharishi.co.uk/acatalog/Maharishi_Ayur_Veda__Hingu___Liquorice___Castor_Oil_53.html - 23k - Cached - Similar pages -
Hingu Map | Estonia Google Satellite Maps
Hingu google map. Satellite image of Hingu, Estonia and near destinations. Travel deals.
www.maplandia.com/estonia/harju/kernu/hingu/ - 35k - Cached - Similar pages -
The Ancient Indian Panchangam is now online! Look up good days, muhurtham and vratham days. Hear Sanskrit and Tamil shlokas online. And a lot more.
- www.panchangam.com
- · cached page
2009 CBS Interactive Inc. All rights reserved. Privacy policy; Terms of use
- www.cnet.com/profile/chandresh.hingu
- · cached page
textile portal featuring complete how-to and detailed information about the indian textile industry with updated statistics and information on government regulations and policy ...
- www.bharattextile.com/.../lakme-fashion-week/2009/spring-summer/profiles/sanjay-hingu.html
- · cached page
Raison d'être for writing a book
Besides being asked by the publisher an author requires a reason to write a book. My raison d'etre being to make it as simple (not simpler!) as possible so that the reader does not have to go through hoops, and jump over lots of hyperlinks to do what he set out to do. In both of my books this is all that I tried to achieve.
This post on MSDN's blog site gives me the feeling that I have achieved this at least for one user. Thank you Buck.
This post on MSDN's blog site gives me the feeling that I have achieved this at least for one user. Thank you Buck.
Monday, June 01, 2009
What programming language is popular?
This was the result of an opinion poll taken during XAMLFest a couple of minutes ago. You can see that C# is the reigning language. VB is in par with "Designer". No matter what many say, VB is a second class citizen in Microsoft Eco system. I heard it differently couple of months ago in a related 'MeetUP" meeting in NYC. The advice given was don't mention VB in your resume. I suppose you get the message.
Here is a screen shot of the poll.
Here is a screen shot of the poll.
Subscribe to:
Posts (Atom)