Views And MyODBC
well i just installed MySQL "5.0.1-alpha-nt-max" to play around with the new Features on my local PC.reating and accessing Views seems to work, but as it seems MyODBC 3.51.09 cant handle Views. Are there any plans to support Views also via MyODBC ? If so, is that Feature currently in the Bitkeeper-Repository of "MySQL Connector/ODBC 3.52" ?
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Converting MSSQL Views To MySQL Version 5 Views
I want to convert my mssql database and view into Mysql version 5. I was successful to convert tables using couple of scripts out there but the views are never supported. Anyone have a tool I could get to convert my views.
Views?
do views exist fysically a separate "table", or are they generated on the fly whenever they are queried? if they exist fysically they could improve performance (..php, web), for example a view being a join between two or more tables..
Views?
do views exist fysically a separate "table",or are they generated on the fly whenever they are queried? if they exist fysically they could improve performance (..php, web),for example a view being a join between two or more tables..
Views In 5.01
We have just loaded 5.01 so that we can take advantage of views. One question I have before I start experimenting is this: Can you "view" across databases? And if the answer is yes, can you "view" across servers? Given two tables "company" and "people", each living in a different database (and potentially on different servers) can you give an example (the SQL) of how to link them in a view? assume the following: company ------- c_id c_name people ------ p_id p_name c_id
Views In MySQL 5.x
Was wondering if anyone here has had any experience with views in mysql 5? I know what they are and how to use them, was just wondering if anyone here has before and if they feel it is better, in mysql, to just create the new table or use the view instead? Or perhaps a complex join?
Question About VIEWS
I have never used MySQL views before, however, in my current situation I will sooner or later need to use them. I have one table which consists of sent messages and another which consists of recieved messages. When someone sends a message to another person, the message will be stored in their own sent messages. However, when they recieve a reply from the end user, the message will appear as a conversation as apart of their own inbox. So basically, the query which requests the inbox records will fetch both the sent and recieved message records. So I need to use a view to fetch both messages, how do I do this? If you guys are still wondering what I am talking about, then check out FaceBook's private messaging system.
Views Overhead
Not far long ago, I was posting a question about performance of database with a lot of tables. Now I have a good idea towards moving to a shared tables approach, so there will be only one set of tables for all users, but each of the users will have an own set of views like: create view username_posts as select id, title from posts where user_id = user_id It would make database more efficient, and would need only a small set of changes to the application. What do you think about this approach? Is there a huge overhead of using views like the one mentioned above, in comparison with adding the user_id = ... clause to the application? How well does MySQL (InnoDB) behave in case database has a lot of views?
As Views Really Supported
With MySQL 5 beta and InnoDB tables, are views really supported? I can see the syntax in the manual but I get syntax errors on even a trivial attempt to define a view as in create view foo as select * from project produces You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'view foo as select * from project' at line 1
Phpmyadmin And Views
I created a veiw in phpmyadmin How can I modify it? when i click on structure instead of seeing the view I see it as if it was a table with fields.
Views In MySQL
Can I create views in MYSQL. Or is there an alternate technique.
Views In MySQL
I want to migrate my existing SQL Server database to MySQL. It had many views in it. When i tried to make views in MySQL 5.0, it gives error. I was suggested by this forum that views can be created in MySQL version 5.0.1, but i couldn't download it from anywhere. From where can i get it? I tried to download from mysql.com file named "mysql-5.0.1-alpha-snapshot-win.zip". This downloaded file gives me 5.0.0-alpha-nt server and 5.0.1-alpha client. This version is also not allowing me to create a view.
Views, Procedures
I have version 4.0.12 of MySql installed. I can not create views and stored procedures. Is this normal or is there something wrong in the installation?
Performance Of Views
I have a large table in a database that takes a long time to do any queries on. All user queries on this table are done as part of a background process at the moment. The table holds transaction information from organisation and account id's; each organisation may have more than one account id. This table contains the raw transaction data, so there are many 1000's of records for each id. The table is keyed on customer number, which is different from organisation id and one customer number may have more than one organisation id. Code:
Views In MySql/PHP
This thread is answering a question from [url=http://www.codingforums.com/showthread.php?s=&threadid=12528[/url]this thread] -- I didn't want to distract from the original question. To recap:A view is a virtual table. It is a stored query, usually based on two or more tables. It can be used as a table by other queries (by default, all queries created in Access are, in fact, views). The main advantages are efficiency and security. You can merge complex tables that store complete information to produce more simple tables that contain live information without any data duplication. You can also give the view query different access, meaning that you can let people see only some columns of a table (eg a view restrict who can see creditcard numbers, without restricting who can see other customer details). They are not supported in mySql. Followed by: what is the alternative to 'view' in mySQL/PHP then ... The simple answer is there is no alternative. You can easily enough create a database layer that stores queries in php. But, if the user has access to run these queries on the underlying tables, then they also have access to bypass them. You can also, with a little effort, create a method for building queries from SQL (this is a fairly standard way of operating a large system). However, you do not get the dabase level security benefits that you get from using views. Nor do you get the performance benefits that you get from views (I don't know all the details, but a view does run faster than a regular sql query). You can use a degree of database level security -- by limiting access to tables using GRANT statements. With views, you can use database security to completely limit access to rows, columns, and calculated fields without any data duplication. Of course, it is possible to implement application level securty in PHP, but the dual (or more often treble) layer of security is quite useful when you're dealing with complex two and three tier systems.
Phpmyadmin And Views
When we create *.sql for out database, does it not copy views. I created *.sql and imported it to phpmyadmin, but it is not showing the view. Do I have to re-write the view or there is some other solution?
Views In MySQL 4.1
Is it possible to create views in MySQL 4.1 or am I just wasting my time trying to figure out the syntax? I've tried searching this site but can't find anything about it for 4.1.
Delete Views
how to drop a view in Ms Access using ColdFusion.I don't think the problem is ColdFusion, i think the problem is the query but it might be anything.
Mysql Views
I have only ever developed database application using Mysql and so have limited experience of views and how they work. I'm sorry if this seems basic. Suppose I create a view from a table, say A and tranform it using a select query to create my view, B. If I want all the data from B, ie. SELECT * FROM B will the DBMS need to go back to the original data and execute the query that generated B and then return my results - or - does it store the data for view B in a table like format and then just quickly return that. Essentially is there a performance advantage when using a view where the transformation from table A to view B is complex.
How To Overcome On Views Limits
I have 6 tables with many many columns and I have a SELECT statement that joins all the table and brings me all the columns in each table in single view. The number of columns that I get by executing this SELECT statement are more than 2000. The SELECT statement runs perfect and give me no problem. But the problem comes when I use this select statement in a view. I get the error message CREATE VIEW failed because column '' in view '' exceeds the maximum of 1024 columns Is there a way I can get all the columns in one single view. I know SQL Server View has maximum limit of 1024 colums.
Stored Procedure Vs Views
I am a little confused on the benefits of views when compared to stored procedures. When should you use a view and when should you use a stored procedure? Do either technology have a performance edge over the other?
Concept - Replacement For Views?
I'm kind of new to MySQL but am familiar with other DBs. Currently I'm working with a MySQL4 database and I have a very specific problem which could be easily solved via views. Problem: I have as follows - tbl_cat -id_cat -txt_name ... tbl_prop -id_prop -id_cat (fk) -txt_desc -txt_type -txt_default .... tbl_product id_prod txt_ref_name ... tbl_prod_prop id_prod_prop id_prop txt_hash OK what is all of this? it's a dynamic product for a shop. How does it work conceptually? We create a product category(tbl_cat) and add properties to it (tbl_prop) such as name, picture, html text, etc... Finally when we create a product, we determine it's category and fill in each of the properties. My original idea was to use a view to generate the listing of the products and properties, but mysql4 doesn't have views... What would be the best aproach? I thought of creating a cache table, where when a product is updated or inserted, I run a script that creates updates a record of a temporary dinamic table. Soething like a false view, updated on demand. Is that as stupid as it sounds?
Views Support In 5.0.0-alpha
from 1.8.5.6 Views: "Views are currently being implemented, and will appear in the 5.0 or 5.1 version of MySQL Server." i see the stored functions/procedures being added to the 5.0.0-alpha release but i do not see any support for views still. are they going to appear later in 5.0 or we would have to wait till 5.1 ?
Performance Improvement With Views?
If we have an option of using view to static assignment of options which one should we go for? Like if we have a combo box which is gonna have lets say 5 options then should we assign these options statically or should we store them in a view and then retrieve them dynamically each time someone clicks on the drop box.
Keeping Number Of Views To Max. How?
I've got a "smallint(3)" to track the number of views of an article, it is updated width "SET views=(views+1)". What I'm just wondering is if when the article reaches 999 views, the next view will set it to 100(0) or will just remain with 999. I think it will go on counting so, how can I just leave it with 999 views?
Indices Created For Views
I have a view that combines data from 4 tables. Can I create an index for the view? or should the indices created for the original tables speed up searching enough?
Design Strategy And Views
I am writing a php interface to access a large (100 million + records) database which is broken into 50+ tables by state.The script creates a temporary merge table with a union of the selected states depending on user input. I believe this will provide the largest reduction of unnecessary row scans. I then query the temporary merge table with any additional criteria given by the user. Is there a benefit if I create a view on the merge table to futher reduce unwanted rows and then query the view instead of the merge table directly? (I'm not really clear on how a view works. Does it actualy run the select query like a subquery?
VIEWS,CHECK SYNTAX AND FOREIGN KEY
i am trying to see what views i have created on my database and am lost with the code part. this is what i have tried in both the USE DATABASE, USE INFORMATION_SCHEMA SHOW VIEWS; SHOW CREATE VIEW; SHOW CREATE VIEWS; ANYONE GOT ANY HELP? I am also trying to use check and it doesn't seem to work. I am trying to 'ensure the only values entered into the GENRE table are dance, pop and jazz. I had been trying with this: CHECK(GENRE IN('DANCE','POP','JAZZ') how do i add ORDER_NUM as a foreign key in a table called ORDER_LINE? i tried this: ALTER TABLE ORDER_LINE ASS FOREIGN KEY(ORDER_NUM) REFERENCES CUSTOMER;
Views And Altering Base Tables
I want a view that contains all the colums of the base table but only the rows where the index "owner" is a certain value. Easy enough CREATE VIEW bt_42 AS SELECT * FROM bt WHERE owner=42 This seems to me to be easier, quicker, and more maintainable than enumerating each column and it seems to work. Now the question is if I happen to add another column to bt will that automatically be reflected in all views that were made by SELECT * ? Seems like it should, since updates to other columns of bt would be reflected in bt_42
MyODBC
I have a mySQL database hosted by a company. I installed the myODBC connector and need to connect to it in a vb6 program. I set up a user and password for the database i want to connect to. My string looks like this: Dim conn As New ADODB.Connection conn.ConnectionString = "DRIVER={MySQL ODBC 3.51 Driver};SERVER=localhost;DATABASE=rentapar_System_Property;UID=rentapar_Client;PWD=password;" it says it can't connect to mySQL server on 'localhost' I am not getting where it is looking for the server. Do I need to set up a DSN? If so what do I use as server? Where do I point it to the hosted server? Please help!?? Do most hosting companies allow access from off the net like an application?
MyODBC
I have problem in using ODBC for Voice Guide (an IVR application). I can connect to MySQL database successfully. The only thing is that everytime the system tried to connect to MySQL database through ODBC the Connector/ODBC Configuration Windows Pops Up. I have tried to pass Option=16 and also tick "Don't Prompt Upon Connect" property on Flag 2 but the window still pops up. Here is the details of my system: OS: Windows XP Pro SP2 MySQL Server: version 4.1.11-log via TCP/IP Client version: MySQL Client Version 5.0.11 ODBC version 3.51 I didn't have this problem before I reformat my harddrive and reinstall Windows.
MyODBC 3.51
I have a C# program which uses a remote MySQL database to store user information. It uses MyODBC 3.51. However, I find making people download and install MyODBC seperately from the application rather annoying. Is there any way I can package MyODBC with the installation package for my application
Should Page Views Count Be Stored With Content?
I am writing a db that has a table with advertisement data. I want to keep track of how many views an ad has. Is it bad practice to put a field "viewCount" in the same table as the content? The alternative is to have a lookup table? The logic behind the question is that it seems that any time you write to a table there is a possibility of something going wrong, so better to leave the content alone and update a lookup table often. Or am I being over-cautious? Code:
Using Views In A Fairly High Demant Environment
I am making a forum type system in which the only interface to the database is through stored procedures. Thats not the point though. I have run into a minor problem with my system that could be rectified if my request for the threads in a forum was drawn from a "view" table. Would a view be quite a burden on the systems performance if used in a situation like that?
MyODBC To OpenOffice.org
I'm trying to connect OpenOffice.org to MySQL through MyODBC. MySQL is set up, but I'm having problems setting up MyODBC. I checked the documentation on the MySQL webpage, and tried to set it up that way, but OpenOffice.org can't find MyODBC. It can't find the libodbc.so.1. I tried to follow the set up PDF file on the OpenOffice.org webpage, but it switches between MyODBC and UnixODBC. I copied the libraries to /usr/lib, and made the link in /usr/local. I set up the obdb.ini in /usr/etc. Is there something I'm missing to set up the connection? Has anyone had luck with this?
Myodbc Error
------=_NextPart_000_000D_01C35CF0.20AC1200 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable i get this msg: Microsoft.Data.Odbc.OdbcException: NO_DATA - no error information = available at Microsoft.Data.Odbc.OdbcConnection.HandleError(Int Ptr hHandle, = SQL_HANDLE hType, RETCODE retcode) at Microsoft.Data.Odbc.OdbcDataReader.GetData(Int32 i, SQL_C sqlctype, = Int32 cb) at Microsoft.Data.Odbc.OdbcDataReader.internalGetStri ng(Int32 i) at Microsoft.Data.Odbc.OdbcDataReader.GetValue(Int32 i, TypeMap typemap) at Microsoft.Data.Odbc.OdbcDataReader.GetValue(Int32 i) at Microsoft.Data.Odbc.DbCache.AccessIndex(Int32 i) at Microsoft.Data.Odbc.OdbcDataReader.GetValue(Int32 i) at Microsoft.Data.Odbc.OdbcDataReader.get_Item(String value) at = F=E6llesDialogbox.frmAddIngDialog.cboVaregruppe_Se lectedIndexChanged(Obje= ct sender, EventArgs e) in C:Documents and SettingsAdministratorMy = DocumentsVisual Studio = ProjectsDatasystemKSF=E6llesDialogboxfrmAddIng Dialog.vb:line 357 then i try to get a row out fo the database mysql 3.23.54 run on redhat = linux 9.0 i am acceessing it from vs.net via odbc.net. i am using myodbc 3.51 and my code look like this: Try Dim plunr As Integer Dim varenavn As String Dim varegruppenr....................................................
MyODBC Driver
Trying to use MySql 5.0.27 with Dreamweaver MX & PHP & Apache In "Inside Dreamweaver MX" the authors state 'If you're using MySQL as your DBMS, you need to use the MyODBC driver to create your DSN's See Appendix C for full coverage of obtaining & setting up MyODBC' Unfortunately Appendix C does not mention MyODBC although is does mention MySQL. They are referring to an earlier version of MySQL (3.23) and show setting up the DSN in windows. My problem is I cannot see the MyODBC driver. Is this a separate download?
MyODBC And Citrix
My client (and hence I!) need to install MyODBC on a Citrix server, but when the MyODBC installation .exe is run, it fails. The .msi also fails. Investigation on the web indicates that this might have something to do with the Citrix environment not liking "hardcoded" paths in installation programs, but naive fumbling with Orca on the .msi didn't really help. Has anyone succeeded in installing MyODBC in a Citrix environment, and if so, how?
Uninstall MyODBC
How do I uninstall myODBC from wind98? everything was working, then badness at the shop so... I have reloaded wind98,mySQL now mySQL works OK but I cant setup myODBC (setup says myODBC installed ok but when I try to make data source it says drivers no good, reinstall... looks to me like I need to uninstall, but myODBC has no uninstall Alas! does anyone know whaich registry entries to delete?
MyODBC Time
recenlty I wanted to migrate my app from MySQL 3 to MySQL4.1.19, conector: MyODBC 3.51.06 into MyODBC 3.51.11-1win. Now I have a problem with time values from my database. In a field I have the value '00:00:01'. When I retrieve this value in my app (via MyODBC) i get a null value. I don't want that null value, I vant my '00:00:01'. Before the migration, I hadn't this problem ... everything worked fine. Is there a setting in MyODBC that I must check to solve this? If not, how can I solve this problem ... quick?
MyODBC Mapping
I have an VB frontend that can't be changed for various reasons, and have been attempting to move the database (access) out to MySQL (for various other reasons ;). I haven't been able to successfully read True/False fields, and after much research it appears that I need to map any true/false or yes/no to 1/0 in the MyODBC source code. I've downloaded the source code, but I haven't been able to determine what and how to change the mapping. Any assistance would be GREATLY appreciated! FYI: I tried treating the MySQL side as an enum field, but the VB front end won't accept the result.
MyODBC VB6 Problem
I have made a program that runs off the task scheduler. It connects to a web database using MyODBC. This works most of the time, but once in a while i'll get the MyODBC DSN connection window. I'm not sure why this pops up. should i upgrade the MyODBC from version 2.5 to the newest version? If this is not the case, is there a way to hide this in code or through settings.
MyODBC Driver
I have winxp as OS & my php folder is located in c:XXXXphp. I am getting these errors while running a php code- Warning: mysqli::mysqli() [function.mysqli-mysqli]: (28000/1045): Access denied for user 'ODBC'@'localhost' (using password: NO) in C:wampwwwprosenjitOODatabase.class on line 16 Warning: mysqli::query() [function.mysqli-query]: Couldn't fetch mysqli in C:wampwwwprosenjitOODatabase.class on line 32 Database is not available. Try again later Will installing 'MyODBC Driver' solve my problem? What other things should i ensure so as not to get these error.I have WAMP5 installed.
Connector MyODBC
Can I using MyODBC to connect to MySQL Server through A Proxy Server ?
MySQL / MyODBC
I installed MySQL v4.0.20d and MyODBC v2.50.39 on a Windows 2000 workstation SP4. When I go to StartProgramsAdministrative Tools I don't see the Data Sources menu option. When I installed the same software on a Windows 2000 Server, I do see the Data Sources menu option.
MyODBC And DB Access
I setup Apache, PHP, and Mysql on our internal server probably 5 years ago. It works so good I NEVER have to do anything so I've gotten really rusty. The problem is we use UPS through MyODBC to add shipping data to our DB. We recently got a new computer to run the UPS stuff. I can't get MyODBC to connect from the new computer to save my life. I joined our domain restarted a bunch of time and still when I setup the system I get an error to the effect of "Matt@MASTER" password =yes access denied. Now here is the kicker. the computer name isn't master its been renamed. I removed the 3.5 MyODBC driver and installed the 2.5 like the old computer had just to be sure. It is doing the same thing. So I found a way thanks to google to grant access to that username in a range of IP addresses. here it is: "GRANT ALL PRIVILEGES ON db.* TO matt@'192.168.0.0/255.255.255.0'; which has a result of 0 rows effected!? I have tried a different user when using the mysql program on the server machine and been able to login with it and the matt user mentioned above. However still nothing at the MyODBC end with the UPS system.
Configuring MyODBC
I am using MyODBC 3.51 with Borland BDE, and was having a problem whereby Blob result fields were being restricted to a maximum size of 32k. Now, in the BDE control panel, I can set configuration variables for the MyODBC driver, and I was able to change the value of BLOB SIZE from 32 to 128, which solved the problem. However, there are many other configuration variables there (TRACE MODE, BATCH COUNT, BLOBS TO CACHE, ENABLE SCHEMA CACHE, ROWSET SIZE, etc.) for which I have not been able to find any documentation. Does anybody know where I can find documentation for these settings?
|