12-17-2008 01:53 PM
12-18-2008 01:13 PM
SciManStev-
I don't know if this gets you the functionality you want because I don't have access to your file, but I would have code it this way (see attached picture). I would have used a Array to Cluster.vi to convert the column info ouput array into a cluster so I could use Unbundle by name. I think this is what you are wanting because from what I see, you only access the file once everytime the VI runs (right?). Try this and let us know how it works out. Thanks!!
12-18-2008 01:45 PM
This did not work. It gave me 351 separate clusters that each had to be selected for the defined size. Even with this rediculously sized cluster, every result was still -1. The first code should have worked. It worked fine with the column names and column type, but always gave me a -1 with the defined size. I manually added up the defined size in about 30 minutes, and got 4432. The maximum size allowed in any SQL Server 2000 record is 8060 bytes, so I was within my limits. I had wanted to test the other 45 tables in my database, quickly rather that add up the sizes individually, which would take eons. I think that either this function will not work with SQL Server 2000, or it is a true bug. Thank you for your responce.
12-18-2008 01:57 PM
SciManStev-
The bug part of your answer got me thinking and I checked this behavior against our CAR (corrective action request) database and found that in fact it was a bug originaly reported in 2003, found again in 2007, and now finally fixed with the release of Database Connectivity Toolkit 1.0.2 in June of 2008. So it is actually a known bug but unfortunately there was no known workaround added for older versions. I hope this helps some more. Cheers!!
12-18-2008 02:02 PM