Yea, i don't mind that it's an ftString, but the create statement is messed up. I also get different results with different dbexpmda.dll versions.
I originally had dbexpmda.dll v4.0.0.2 and it was returning truncated create statements. (truncating around 900 characters.) So I upgraded to dbexpmda.dll v4.20.0.7 and it got worse. I no longer get a truncated create statement, i simply get the name of the table, without any create command, fields, indexes, etc. However if the table has a small create statement (lets say, under 900 characters) it works fine.
Can you try it on a table with a large create statement?
thanks,
Bill.
=== This Works ==========================
CREATE TABLE `NamePrefix` (
`NamePrefixID` int(11) NOT NULL default '0',
`Prefix` varchar(10) default NULL,
PRIMARY KEY (`NamePrefixID`)
) ENGINE=InnoDB
show create table NamePrefix
=====================================
the above example returns this:
Code: Select all
Table Create Table
---------- -----------------------------------------------------
NamePrefix CREATE TABLE `NamePrefix` (
`NamePrefixID` int(11) NOT NULL default '0',
`Prefix` varchar(10) default NULL,
PRIMARY KEY (`NamePrefixID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1
=== This does not =========================
CREATE TABLE `WebAgent` (
`WebAgentID` int(11) NOT NULL,
`AgentID` int(11) default NULL,
`Prefix` varchar(10) NOT NULL,
`FirstName` varchar(20) NOT NULL,
`MiddleName` varchar(20) NOT NULL,
`LastName` varchar(20) NOT NULL,
`Suffix` varchar(10) NOT NULL,
`NickName` varchar(20) NOT NULL,
`PrimaryPhone` varchar(12) NOT NULL,
`PrimaryExtension` varchar(5) NOT NULL,
`EMail` varchar(50) NOT NULL,
`AcceptsEMail` tinyint(4) NOT NULL default '0',
`ValidEMail` tinyint(4) NOT NULL default '0',
`ValidateCode` int(11) default NULL,
`EnteredDate` date default NULL,
`ChangedDate` date default NULL,
`WebsitePassword` varchar(20) NOT NULL,
`CompanyName` varchar(50) NOT NULL,
`Address` varchar(50) NOT NULL,
`City` varchar(50) NOT NULL,
`State` varchar(4) NOT NULL,
`Zip` varchar(5) NOT NULL,
`Zip4` varchar(4) NOT NULL,
`UserAgent` varchar(255) NOT NULL,
`LoginDate` date default NULL,
`MarketingMethodID` int(11) default NULL,
PRIMARY KEY (`WebAgentID`)
) ENGINE=InnoDB
show create table WebAgent
=======================================
the above example returns this:
Code: Select all
Table Create Table
-------- ------------
WebAgent WebAgent