ODBC connection and constrain question
Posted in 2000
Topics: Connectivity: ODBC / JDBC / .NET, Triggers, Constraints & Referential Integrity
Hi All, I've some questions about the Informix database. I've some problems in connecting the ODBC with VB. I've setup the ODBC for the informix first. Then, when I try to use some VB coding to connect the Informix database, the connection is failed. Why I've this question? How to solve this question? More, After I have built some tables in the informix, but I find that some foreign keys are needed. How to add the foreign key without dropping the original table? Can I use add constrain to do it? If it can, what is the syntax of adding a constrain of the foreign key ? Thanks for anyone help!!!
What ODBC driver are you using? "dora" <swsleung@cs.cityu.edu.hk> wrote in message news:390B2930.6FB5F4C@cs.cityu.edu.hk... > Hi All, > > I've some questions about the Informix database. > > I've some problems in connecting the ODBC with VB. I've setup the ODBC > for the informix first. Then, when I try to use some VB coding to > connect the Informix database, the connection is failed. Why I've this > question? How to solve this question? > > More, After I have built some tables in the informix, but I find that > some foreign keys are needed. How to add the foreign key without > dropping the original table? Can I use add constrain to do it? If it > can, what is the syntax of adding a constrain of the foreign key ? > > Thanks for anyone help!!! > > >
dora wrote: > > Hi All, > > I've some questions about the Informix database. > > I've some problems in connecting the ODBC with VB. I've setup the ODBC > for the informix first. Then, when I try to use some VB coding to > connect the Informix database, the connection is failed. Why I've this > question? How to solve this question? > > More, After I have built some tables in the informix, but I find that > some foreign keys are needed. How to add the foreign key without > dropping the original table? Can I use add constrain to do it? If it > can, what is the syntax of adding a constrain of the foreign key ? ALTER TABLE ....... RTFM this is in the Guide to SQL Syntax at: www.informix.com/answers/english/alpha.htm then scroll down to section G Art S. Kagel