Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    MYSQL


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





How To Display Status Bar During SELECT Query In VB


Doeas anyone know how to display a status bar on the screen to indicate that the query is busy retrieving the data?




View Complete Forum Thread with Replies

Related Forum Messages:
Query Execution Status
How can we know that , the last executed query status like executed successfully or not.

View Replies !
SHOW TABLE STATUS & The Nested SELECT Statement
The "SHOW TABLE STATUS" command seems to return a result set, just
like "SELECT * FROM SomeTable".

Therefore, since the following is valid:

SELECT * FROM (SELECT * FROM SomeTable)

I inferred that this functionality would extend to the SHOW statement:

SELECT * FROM (SHOW TABLE STATUS FROM SomeDataBase)

But such a command gives an invalid syntax error. I want to query the data_length from a few tables, place those values into temp variables and then run a second SQL command using those
values. Is what I'm trying to do possible?

View Replies !
Display A Text In A SELECT
I want to do the following query, or something like that:

SELECT id, "string"+id as text FROM ...

and the result should be:

id text
1 string1
2 string2
3 string3
... . ... for each id returned by the query

It looks stupid but I can't figure which operator (I tried '+', '.',
'|', '&') I can use for this purpose.

View Replies !
Display A Text In A SELECT
I want to do the following query, or something like that:

SELECT id, "string"+id as text FROM ...

and the result should be:

id text
1 string1
2 string2
3 string3
... . ... for each id returned by the query

It looks stupid but I can't figure which operator (I tried '+', '.',
'|', '&') I can use for this purpose.

View Replies !
SELECT Data From 3 Tables And Display It As Row
How can i select data for month 04, 05 and 06 from 3 separate tables and display it as three rows.

I am trying this but it does not work.

SELECT MONTH(click_date) as Month, COUNT(*) as 'count' FROM broadband_clicks where YEAR(click_date)=2007 AND MONTH(click_date)=04 GROUP BY MONTH(click_date)

SELECT MONTH(click_date) as Month, COUNT(*) as 'count' FROM broadband_clicks where YEAR(click_date)=2007 AND MONTH(click_date)=05 GROUP BY MONTH(click_date)

SELECT MONTH(click_date) as Month, COUNT(*) as 'count' FROM broadband_clicks where YEAR(click_date)=2007 AND MONTH(click_date)=06 GROUP BY MONTH(click_date)

so basically i want something like this.

Month | count(*)
04 | 1000
05 | 980
06 | 1100

View Replies !
SELECT Multiple Columns As One Column For Display
I did a search and could not find what I was looking for. Hopefully someone can answer this.
I am trying to SELECT multiple columns as one column for display. Something like this (which obviously does not work):

SELECT column1 as combinedlist, column2 as combinedlist FROM `myTable` WHERE column1='data1' OR column2='data1' ORDER BY combinedlist

I have also tried:

SELECT (column1, column2) as combinedlist FROM `myTable` WHERE column1='data1' OR column2='data1' ORDER BY combinedlist

View Replies !
MySQL Query Display
Have anybody ever see this display problem, my "SELECT * FROM..." is blur, why is that?

The chipset I'm using is Intel 855GME with Integrated 3D AGP featuring Intel Extreme 2

View Replies !
Query To Display Duplicates?
I've looked online but haven't been able to find what I'm looking for. I just need a simple MySQL query to display all the records from a database if one of their fields (products_model) is being used by more than one record.

Something like...

ID products_name products_model
===========================
12 Product A 1345
237 Product G 1345
83 Product L 211
901 Product X 211
68 Product S 211

View Replies !
Query To Display Multiple Rows With Same ID
---sql_test---
ID ^address_info^ member_id
1 -US - 4
2 -Frank - 4
3 -Jenning - 4
4 - New York - 4
5 -10021 - 4
6 -702-365-4679 - 4
7 - Green Thumb INC.- 4 ....

View Replies !
Display Result From Query In More Then 1 Column
I want to make a query to a database, and display it on my php page either through php code or with 2 queries to my mysql database.

This is how i want it displayed:

Data 1 Data 2
Data 3 Data 4
Data 5 Data 6
Data 7 Data 8
... ....
Data X Data X


This is my current code which i use and get it displayed in 1 row:

View Replies !
Query To Display A Record By Recent Time
Many users uploaded their files to my mysql table through php script,
my table having the details of uploading time, file name, & uploader name.

i need to find the recent uploaded file for all uploaders.

i tried with this query,

select file_name,uploded_by,MAX(date_time) from upload group by uploded_by;

it is giving the recent time, but it is not giving the latest file, it is showing first uploaded file.

View Replies !
Query To Display The Rows As Colums Is Not Working!!
I want a select query to get two columns. but i need to get these columns one below the other that is consider that i have a table student in that i have 2 columns name mark.
Now i want the result as

Name Raj Rina Tina
Marks 80 90 70

I tried the --vertical option of mysql and G option in the query.

for example when i tried

select *from studentsG

it displayed

*********** 1. row ***********
name: Raj
marks : 80
********** 2. row ************
name: Rina
marks : 90
********** 3. row ************
name: Tina
marks : 70

but i want to display

Name Raj Rina Tina
Marks 80 90 70

View Replies !
How To Use Previous Select Query Results In New Select Query?
I have tested everything and it works OK in its current form. However, what I need help with is the part of the query highlighted in red.

As it currently stands, the PHP while statement loops through the rows and echos out the html. The issue I have is that it echos out the same speaker name and subject type for each iteration. Now I know this is happening because I have set subject.event_id = 1, so what I need is to use the event_id of the current iteration as the clause and that is what I need help with....

View Replies !
SELECT DISTINCT, (and Display Other Fields Not Distinct.)
I am using SELECT DISTINCT to select 1 of a duplicted field. So far I have;

SELECT DISTINCT `field1`, `field2`, `field3` FROM table1

This returns what I need. There is also another field (field4) which I also want to select, but not distinctly.

Something like: SELECT DISTINCT `field1`, `field2`, `field3` NOT_DISTINCT `field4` FROM `table1`

The field that is not being selected distinctly contains a '1' or a '0'. My table is ordered by field4 (0 first) does this mean the select distinct will select those with '0' before those with '1' (I want '0' to have priority when select distinct)

I will only be using this SQL query once to remove duplicates from a database, I am not concerned about performance issues which someone has mentioned to me.

How can I display this not-wanted-distinct field in a distinct query?

View Replies !
Getting Table Status
Is there a really fast way to see if a table is marked as crashed? It
seems check table and myisamchk are too slow large MyISAM tables (>
38GB) for such an operation.

View Replies !
STATUS Table
I have a STATUS table consisting of a uid and description, that looks
like this:

1 Accept
2 Accept with corrections
3 Reject


I have a CHOICE table which referrs to the uid of the STATUS table, in
one of it's columns.Would it be better to just have these values appear in an enumerated
value in the CHOICE table, instead of referring to the STATUS table

View Replies !
MIN And MAX Status With Each Records
This is my first post in this forum

I have a table of categories
Id mai_cat Category_Name Order
56 1 category11 2
57 1 category12 3
58 1 category13 1
59 2 category21 1
60 2 category22 2
61 2 category23 3
62 2 category24 4
63 3 category31 1

I am trying to get the result as

Id mai_cat Category_Name Order MIN MAX
58 1 category13 1 Y N
56 1 category11 2 N N
57 1 category12 3 N Y
59 2 category21 1 Y N
60 2 category22 2 N N
61 2 category23 3 N N
62 2 category24 4 N Y
63 3 category31 1 Y Y

when tried to use the IF with MAX function but it needs the GROUP BY Clause, so the result is varying
ie if i give group by main_cat only one rec from each main cat is displaying
and when i gave group by Id the MAX() is not working as i wanted

I also tried CASE WHEN...END instead of IF

But i am unable to get the desired output

View Replies !
Old E_Fail Status
I know I have seen this question hundreds of times but the circumstances and control of this error are within my reach.
I have a database which contains a decimal field.
This database is linked to a data aware component - a DB grid in Delphi. If the value in the field goes to two digits (>=10 that is) then the error occurs. I have tinkered with the width in the console but with no improvements. I have tried all setting on the grid to overcome this. I can use an SQL to retrieve data without a problem and it will happily show those values over 9.9999. But the visual component causes it to topple each time.

View Replies !
How To Get Server Status?
I worked a long time with MsSQL and wrote a small program in C# that shows me the status of my three MsSQL-Servers (Active Users, Active Querys, Networkusage, Ram, Free ram, Swap, etc...).

Is there a way to get this information from my seven MySQL Servers with php or java to display it? I would like to write a cronjob, which gets this information every 10min and write it to a separate table and or logfile on a dedicatet server.

My first thought was to open a Port with PHP, send some commands and read the results. Is this possible with MySQL? And if its possible, which Port and which commands do I have to use?

View Replies !
MIN And MAX Status With Each Records
I have a table of categories:

Id mai_cat Category_Name Order
56 1 category11 2
57 1 category12 3
58 1 category13 1
59 2 category21 1
60 2 category22 2
61 2 category23 3
62 2 category24 4
63 3 category31 1

I am trying to get the result as

Id mai_cat Category_Name Order MIN MAX
58 1 category13 1 Y N
56 1 category11 2 N N
57 1 category12 3 N Y
59 2 category21 1 Y N
60 2 category22 2 N N
61 2 category23 3 N N
62 2 category24 4 N Y
63 3 category31 1 Y Y

when tried to use the IF with MAX function but it needs the GROUP BY Clause, so the result is varying ie if i give group by main_cat only one rec from each main cat is displaying and when i gave group by Id the MAX() is not working as i wanted

I also tried CASE WHEN...END instead of IF

But i am unable to get the desired output

View Replies !
Show Status
Just edited my.cnf file in the vi editor and saved it. The file is saved and what I edited I can see by vi /etc/my.cnf.

/etc/init.d/mysqld restart

it stopped [ok]
it start [ok]

Needed to verify the lines I entered in default my.cnf are in effect...

max_connections=200
key_buffer_size=384M
max_allowed_packet=16M
table_cache=256

>mysql SHOW STATUS

But it's not showing these configurations, not the default values, not even the changes I made in my.cnf? How I can verify that what I changed is in effect.

View Replies !
Show Status Data
I'm developing a net-snmp module that executes a 'show status' command
on a MySQL server and advertises the values. My choices seem to be

super concrete: one server, one set of results, the variables don't
change, ever.
moderatly concrete: multiple possible servers, one set of results each,
the variables don't change, ever.
abstract: multiple servers returning a table of some results. Things are
what they are when they are.

The problem with the obvious choice is that it's a table of tables of
values, and if you've used SNMP much you know where that leads, and try
programing for it.

So the question is, are the values that it returns likely to be added
to/removed from the show status command likely to change much, or can I
just write a long but easy to code for MIB with each of the values.

View Replies !
Checking The Mysql Status
I want to write a shell script to check the slave synchronize with master failed or sucessfully. Any idea to implement this?

View Replies !
Delivery Status Notification
This multi-part MIME message contains a Delivery Status Notification.
If you can see this text, your mail client may not be able to understand MIME
formatted messages or DSNs (see RFC 2045 through 2049 for general MIME
information and RFC 1891 through 1894 for DSN specific information).

Code:

View Replies !
Show Grant Status
How can I see what GRANT permissions the current user has across the current database and across all databases?

View Replies !
Determine Replication Status
I have configured a master/slave replication setup. The idea is only to allow changes made to the master databases.

However, I would like to know is there a way to tell there are changes made to slave which in turn breaks the replication.

View Replies !
E FAIL STATUS ERROR
I am using ADO and VB6 With MySQL 5. Some times when i am selecting records from my table it returns an Error MySQL ODBC Error Returned WIth an E FAIL Status.

i am executing the query "SELECT * FROM MyTable" it will work some times without this error.

View Replies !
Performance :: Check Status
I have problems with mysql-performance. When I check "Status", there is written: 23% of all questions are "change db". What does it mean? Select Task are only 13%. Could this be the reason of performance problems?

View Replies !
Status Code: 0 Error
I have been using mysql on my localhost wamp server for a while. After modifying some php files with new mysql queries, I occasionally get the following error message, even though the data is retrieved without problem from the database:

“problem retrieving data from server, status code: 0”

View Replies !
Assigning Status As Reserved
-------
tbl_dates.id
tbl_dates.week_date
--------
tbl_cottages.id
tbl_cottages.cottage_name
--------
tbl_booking.id
tbl_booking.cottage_name
tbl_booking.book_date
-------
tble_dates.week_date contain dates in the format 'January 1 - January 7'.

the tble cottages contain a list of properties

the tble_booking contains entries which I input when a cottage becomes booked so I know when the cottage is unavailable on what dates.

What I want to be able to do is cross reference the top 2 tables against tble_booking.

So if the tble_booking contains
ID = 1
Cottagename: Bluebells
Week_Date: January 1 - January 7

If some one clicks on the webpage to check the availabilty for the week 'January 1 - January 7' the cottage will be marked 'reserved' and the rest will be marked 'available'.

I have tried doing it with a LEFT OUTER JOIN but it marks them all as reserved?

SELECT
tbl_cottages.id,
tbl_cottages.cottage_name,
tbl_bookings.id,
tbl_bookings.book_date,
tbl_bookings.book_cottage,

FROM tbl_cottages

LEFT OUTER JOIN
tbl_bookings ON tbl_bookings.book_date = tbl_cottages.cottage_name

WHERE tbl_bookings.book_date = '#URL.calendar_date#
If you need any more info please ask!!

View Replies !
Select Within Select Needed To Get This Query Going?
I'm not sure how to go about this, but I am thinking I need some sort of a select query within a select query to get this properly displayed...

My table structure is as follows (simplified, of course):

payment_id | member_id | completed | amount | trans_added

and I am trying to get the following data out of the table - a daily sum of all the transactions that were 1) completed, 2) by a member who already has an existing completed transaction (completed = 1) on a different date (or members with a count of all completed transactions > 1 will be included only).

so far I've got this query, but I don't know where/how to plug in the condition for the members/completed/etc: .....

View Replies !
Optimization :: Standards For Show Status
I'm running MySQL 5.0.19 (windows), and running mostly well, but in some cases seems too slow. I've been optimizing SQL as much as possible, indexing important fields, using OPTIMIZE TABLE to clear out deleted records, etc. I would also like to adjust the my.ini settings to make sure things are set there to be as optimal as possible.

My question is, when I look at the statistics in SHOW STATUS, is there any guide for what to look for as far as what's running optimally or needs improvement? I'm connecting to MySQL from ColdFusion.

View Replies !
Minimal Privileges To Run Mysqladmin Status
What are the minimal privileges necessary for a MySQL user to run mysqladmin status command? Thanks.

View Replies !
SHOW TABLE STATUS FROM DB_NAME
SHOW TABLE STATUS FROM db_name LIKE 'tbl_name';
**The command above is to show all the properties under tbl_name.

My question is, how can I get the properties in certain condition. Let's said under tbl_name contain a column name call type and it differential with A and B.
So how can I get those properties where the type='A'?

View Replies !
'Show Table Status' Speed
if anyone knows which is faster..

"SHOW TABLE STATUS LIKE '[tablename]';"

vs.

"SELECT COUNT(*) FROM [tablename];"

I'm trying to pick between these two queries (in order to get the size of the table), but want the faster of the two.i expect the table to be very large (millions of rows).

View Replies !
Script To Check Server Status
1. Atmysqlt to login to a remote MySQL server

2. If the atmysqlt times out then log the failure to a text file and send me an email (only once!).

I will then setup the script to run every 15 mins.

View Replies !
How To Know The Status Of MySQL Server From Another Machine
Anyone knows how to know the status of the MySQL server from another PC? I tried 'mysqladmin ping' within the same machine as MySQL server and I can get the server is alive status. But how do I know from another PC that the server is alive?

View Replies !
How To Check Row Lock Status (InnoDB)
I try to find the way how to check row lock status but I found nothing.
This is my situation, I have 2 transaction.

1st transaction do Updating data and then while 1st transaction not finished yet 2nd transaction want to update the same row as 1st too but InnoDB is row lock so 2nd can not update.

I want to know how can I check if row is lock then I can return error message for this, by the way I want to check this lock status in stored procedure.

I found someone suggest innodb_lock_monitor.

View Replies !
Trying To Understand Show Innodb Status
I have typed this command of show innodb status. So I dont quite get the values as I am trying to understand the log section. My values are as below I dont understand for loq sequence, log flush and checkpoint got 2 number 0 and 76508130. So what does both that value reprsents ?

Log sequence number 0 76508130
Log flushed up to 0 76508130
Last checkpoint at 0 76508130
0 pending log writes,
0 pending chkp writes
8 log i/o's done,
0.00 log i/o's/second

View Replies !
Error While Fetching Schema Table Status
I've recently installed MySql 5.0.2 on a WinXp box and am always
getting the above error every time I click on a schema in the Catalog.

I can log on to the db fine, it always happens when I click on a
schema.

View Replies !
Java Mysql Show Table Status
I am using java to retrieve a resultset with "show table status" mysql
command. I am having problem reading the [name] and [engine] column.
In the metadata object it is showing as VARCHAR but when I do
getString() it is returning me the object string (e.g. "[B@1e3e7d2")and
not the actual database value. I am using Mysql 4.1 and jdbc driver
3.1. I tried getB/Clob, getBytes, getCharacterStream() and none of
them is working.

View Replies !
Error 1235 :: Show InnoDB Status
I'm using mysql 5.0.22 as packaged (and updated) with Ubuntu Dapper. I would like to use Innodb, but "show innodb status" says "ERROR 1235 (42000): Cannot call SHOW INNODB STATUS because skip-innodb is defined". However, there is no skip-innodb in anywhere in /etc/mysql/my.cnf. I found a file called /etc/mysql/debian.cnf which appears to be used as a defaults file for behind-the-scenese stuff. It doesn't mention skip-innodb. I've checked /etc/init.d/mysql and it has no reference to skip-innodb.

I've googled the issue, and can't find anything. Am I missing something?

View Replies !
Mysql Extended Server Status Variables
Here are 3 questions about extended-status and server parameters.

I have a server with 1G of Ram Dual Cpu running mysql 3.23.41.


1/ to know if table_cache need to be increased, what is the maximum rate of opened_table that must be seen. I read somewhere that 1 or 2 per sec was acceptable.

I have a server that most of the time is in the [0,2] opened table per sec but can go up
to 100 / sec at peak hour.

Current table cache is 64 planning to increase to 512.

Is there a way to find the optimal table_cache value?

2/ In the extended status what represents exactly open_files and open_tables. They seem
to be cummulative values but doing diffs at regular 5 min intervals shows that they can grow an decrease.

3/ Is there a way to find an optimal value for the number of needed file descriptors based on maximum number of connections, table_cache, number of tables in database etc...

Any referrence to server tuning based on extended-status will be helpfull.

View Replies !
Show Table Status :: Last Updated Time?
I need to place the date a MySQL table was last updated into a PHP variable.

SHOW TABLE STATUS provides lots of information, including update_time, for all of my tables. But how do I assign the value of update_time for my "members" table into the variable $dateLastUpdated?

View Replies !
Replication :: Show Master Status Return Empty Set
I am trying to set up replication on 2 servers. I am following the procedure on mysql.com.
After you have done the grant replication and the snapshot, you have to do SHOW MASTER STATUS; and it is suppose to return informations. But for me, it returns "empty set".

View Replies !
Show Table Status :: Number Of Rows Changing
I used "show table status " to get the database size, but how come the number of rows it shows changes each time? There's no change to the db at all. However the data length and index length remain unchanged. Why?

View Replies !
Command SHOW SLAVE STATUS G, Shows That SLAVE_IO_RUNNING
I am trying to set up a master/slave replication.. I followed the instructions in the mysql manual.. I am using mysql 4.0.12 installed in windows xp... I have found out that the replication is not working ...

when i make the command SHOW SLAVE STATUS G, it shows that SLAVE_IO_RUNNING : No.
How can I make this run? What could have I done wrong?

View Replies !
First Display Featured Items, Then Non-featured (was "Query Help")
I am having the table called 'item_details' and suppose it contains 50 items
in my table.Out of 50 suppose 30 items are featured and remaining are not.
Now I want to display all the items in the table.
But it should first display the featured items and then the non-featured items.

View Replies !

Copyright 2005-08 www.BigResource.com, All rights reserved