473,386 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

mysql metadata from asp

Hi, I uses mysql 4.1 on win 2003 server.

Jeg use asp(active server pages) to connect to mysql

I have a problem collecting metadata about what type a colum is. My kode
looks like this:

sql="select * from Person"
Set rs=db.execute(sql)
antalkolonner = CInt(rs.fields.count - 1)
rsvr(I) = rs.fields(I).type
Dim rsvr()
Redim rsvr(antalkolonner)
For I = 0 to antalkolonner
rsvr(I) = rs.fields(I).type
response.write rsvr(I) & "<br>"
next

The code works fine, I get "200" from varchar, "3" for numbers,
"133" for dates, and "16" for boolean. but for both varchar and mediumtext I
get "200". Is there anyway I can get a to know if it is varchar or
mediumtext! I used to use Access and here I got different numbers for text
and memo!

Anybody?

Jul 19 '05 #1
3 1348
Hullo Jimmy.
Got VS 6 EE floating around anywhere?
Install VFP 6 from CD 1, and then
1. Make a connection string or System DSN to your database
2. use sqltables() and sqlcolumns() functions.
If you want to stick to ASP development and IDE's , install Visual InterDev
and make a database project and study the #'s returned ..
hth - mondo regards [Bill]
--
William Sanders / Electronic Filing Group Remove the DOT BOB to reply via
email.
Mondo Cool TeleCom -> http://www.efgroup.net/efgcog.html
Mondo Cool WebHosting -> http://www.efgroup.net/efglunar.html
Mondo Cool Satellites -> http://www.efgroup.net/sat
mySql / VFP / MS-SQL

"Jimmy" <es*******@vip.cybercity.dk> wrote in message
news:dZ*********************@news000.worldonline.d k...
Hi, I uses mysql 4.1 on win 2003 server.

Jeg use asp(active server pages) to connect to mysql

I have a problem collecting metadata about what type a colum is. My kode
looks like this:

sql="select * from Person"
Set rs=db.execute(sql)
antalkolonner = CInt(rs.fields.count - 1)
rsvr(I) = rs.fields(I).type
Dim rsvr()
Redim rsvr(antalkolonner)
For I = 0 to antalkolonner
rsvr(I) = rs.fields(I).type
response.write rsvr(I) & "<br>"
next

The code works fine, I get "200" from varchar, "3" for numbers,
"133" for dates, and "16" for boolean. but for both varchar and mediumtext I get "200". Is there anyway I can get a to know if it is varchar or
mediumtext! I used to use Access and here I got different numbers for text
and memo!

Anybody?


Jul 19 '05 #2
Hullo Jimmy.
Got VS 6 EE floating around anywhere?
Install VFP 6 from CD 1, and then
1. Make a connection string or System DSN to your database
2. use sqltables() and sqlcolumns() functions.
If you want to stick to ASP development and IDE's , install Visual InterDev
and make a database project and study the #'s returned ..
hth - mondo regards [Bill]
--
William Sanders / Electronic Filing Group Remove the DOT BOB to reply via
email.
Mondo Cool TeleCom -> http://www.efgroup.net/efgcog.html
Mondo Cool WebHosting -> http://www.efgroup.net/efglunar.html
Mondo Cool Satellites -> http://www.efgroup.net/sat
mySql / VFP / MS-SQL

"Jimmy" <es*******@vip.cybercity.dk> wrote in message
news:dZ*********************@news000.worldonline.d k...
Hi, I uses mysql 4.1 on win 2003 server.

Jeg use asp(active server pages) to connect to mysql

I have a problem collecting metadata about what type a colum is. My kode
looks like this:

sql="select * from Person"
Set rs=db.execute(sql)
antalkolonner = CInt(rs.fields.count - 1)
rsvr(I) = rs.fields(I).type
Dim rsvr()
Redim rsvr(antalkolonner)
For I = 0 to antalkolonner
rsvr(I) = rs.fields(I).type
response.write rsvr(I) & "<br>"
next

The code works fine, I get "200" from varchar, "3" for numbers,
"133" for dates, and "16" for boolean. but for both varchar and mediumtext I get "200". Is there anyway I can get a to know if it is varchar or
mediumtext! I used to use Access and here I got different numbers for text
and memo!

Anybody?


Jul 19 '05 #3
Hullo Jimmy.
Got VS 6 EE floating around anywhere?
Install VFP 6 from CD 1, and then
1. Make a connection string or System DSN to your database
2. use sqltables() and sqlcolumns() functions.
If you want to stick to ASP development and IDE's , install Visual InterDev
and make a database project and study the #'s returned ..
hth - mondo regards [Bill]
--
William Sanders / Electronic Filing Group Remove the DOT BOB to reply via
email.
Mondo Cool TeleCom -> http://www.efgroup.net/efgcog.html
Mondo Cool WebHosting -> http://www.efgroup.net/efglunar.html
Mondo Cool Satellites -> http://www.efgroup.net/sat
mySql / VFP / MS-SQL

"Jimmy" <es*******@vip.cybercity.dk> wrote in message
news:dZ*********************@news000.worldonline.d k...
Hi, I uses mysql 4.1 on win 2003 server.

Jeg use asp(active server pages) to connect to mysql

I have a problem collecting metadata about what type a colum is. My kode
looks like this:

sql="select * from Person"
Set rs=db.execute(sql)
antalkolonner = CInt(rs.fields.count - 1)
rsvr(I) = rs.fields(I).type
Dim rsvr()
Redim rsvr(antalkolonner)
For I = 0 to antalkolonner
rsvr(I) = rs.fields(I).type
response.write rsvr(I) & "<br>"
next

The code works fine, I get "200" from varchar, "3" for numbers,
"133" for dates, and "16" for boolean. but for both varchar and mediumtext I get "200". Is there anyway I can get a to know if it is varchar or
mediumtext! I used to use Access and here I got different numbers for text
and memo!

Anybody?


Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Cathy Hui | last post by:
I am trying to install MySQL-Python 0.9.1 on my Solaris 8 system. The system has Python 2.3.3 and Mysql 4.0.21 installed. This is where I downloaded the distribution of the Mysql-python...
1
by: Alex Hunsley | last post by:
I am trying to install the DBD::mysql perl module. However, it claims I need mysql.h: cpan> install DBD::mysql CPAN: Storable loaded ok Going to read /home/alex/.cpan/Metadata Database was...
175
by: Sai Hertz And Control Systems | last post by:
Dear all, Their was a huge rore about MySQL recently for something in java functions now theirs one more http://www.mysql.com/doc/en/News-5.0.x.html Does this concern anyone. What I...
1
by: Miku | last post by:
Hi Guies, I am new to vb.net. In my project I am using vb.net & MySql 4.0.17 as a backend. For database connectivity i have downloaded ByteFX - Mysql .net native provider. I have written the...
1
by: Good Man | last post by:
Hi there I've noticed some very weird things happening with my current MySQL setup on my XP Laptop, a development machine. For a while, I have been trying to get the MySQL cache to work....
2
by: simen.haugen | last post by:
Hi. I'm trying to use Python 2.4 with MySql 5.0, but I'm having installation problems. I've tried to follow the following articles to install mysql-python with the free visual c++ toolkit...
110
by: alf | last post by:
Hi, is it possible that due to OS crash or mysql itself crash or some e.g. SCSI failure to lose all the data stored in the table (let's say million of 1KB rows). In other words what is the worst...
35
by: Nosferatum | last post by:
Ok, I have been told that it's not a good idea to store binary files (like pdfs etc.) in MySQL, but in the file system. I am in desperat need of a system where I can upload binary files like this,...
1
by: spatro | last post by:
Hi, I am trying to install DBD::mysql using the CPAN and I am facing the following error: cpan> install DBD::mysql CPAN: Storable loaded ok Going to read /root/.cpan/Metadata Warning:...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.