473,386 Members | 1,835 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.

Read response

Hi all,

This should be a quick one. I am developing an app using the CF
2005. I am interfacing fine with the DB (i.e. creating tables &
adding records) but now I want to read the output of a command that I
send. I want to get a list of tables in the DB so I am using the
following code:

sqlCommand.CommandText = "SELECT * FROM
INFORMATION_SCHEME.TABLES"
Dim sqlDR As Data.SqlServerCe.SqlCeDataReader =
sqlCommand.ExecuteReader '.ExecuteNonQuery()

sqlDR.Read()
MsgBox(sqlDR.GetString(0))
But it returns me an error 5 with the text "[ 1,34,TABLES ]". Any
ideas what I am doing wrong? I simply want a list of all tables
returned to me as a string.

TIA,
Hugh

Aug 28 '07 #1
1 1303
On Aug 28, 9:59 am, Hugh Janus <my-junk-acco...@hotmail.comwrote:
Hi all,

This should be a quick one. I am developing an app using the CF
2005. I am interfacing fine with the DB (i.e. creating tables &
adding records) but now I want to read the output of a command that I
send. I want to get a list of tables in the DB so I am using the
following code:

sqlCommand.CommandText = "SELECT * FROM
INFORMATION_SCHEME.TABLES"
Dim sqlDR As Data.SqlServerCe.SqlCeDataReader =
sqlCommand.ExecuteReader '.ExecuteNonQuery()

sqlDR.Read()
MsgBox(sqlDR.GetString(0))

But it returns me an error 5 with the text "[ 1,34,TABLES ]". Any
ideas what I am doing wrong? I simply want a list of all tables
returned to me as a string.

TIA,
Hugh
The Read() method returns a boolean - was it true or false?

Thanks,

Seth Rowe

Aug 28 '07 #2

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

Similar topics

4
by: Marcin Ciura | last post by:
I have the following problem with HTTPResponse: import httplib #, select .... connection = httplib.HTTPConnection(host) connection.connect() connection.request('GET', url) response =...
3
by: Doug | last post by:
Working on converting an Access front-end/SQL Server back-end to a .NET front/SQL Server back-end. We are also redesiging the SQL Server database. We have many Word/Excel documents that have...
1
by: oni | last post by:
hi all, the program should be able to log on to a pop mail account and need to just read its headers and display. any help in this regard highly apperecialted. code pref VB.NET thankz in...
3
by: jamal | last post by:
HI guys I want to make a program that will read my external pop3 e-mail account and save them to an access/sql file on my workstation. what you guys think ? Can I make something like this with...
1
by: Arpan | last post by:
The contents of a text file are as follows: The Quick Brown Fox Jumped Over The Lazy Dog. Note that there isn't any space at the end of each of the 3 lines. Now when I do this:
4
by: Kuldeep | last post by:
Hi All, I am trying to read the contents of a page through its URL. My code snippet is as follows: public void mtdGetPageDataHWR() { HttpWebRequest objRequ =...
2
by: Jack | last post by:
Hi, I want to read a string a chars from a stream, and put it into a string. At the moment, I'm creating a buffer of a fixed size, and reading the stream of text into it. It works, but I have...
0
by: vishnu | last post by:
Hi, Am trying to post the data over https and am getting error in httpwebresponse.getResponseStream.Please help me to get rid of this issue. Here is the message from immediate window ...
1
Oodles Of Noodles
by: Oodles Of Noodles | last post by:
Hello fellow geeks I have a problem in my database iVB .Net program that is generating 'Error:Invalid attempt to read when no data is present.' The weird part is that when you call the page from...
3
by: =?Utf-8?B?VHJlY2l1cw==?= | last post by:
Hello, Newsgroupians: I'm creating an application that will read emails from GMail, using the System.Net.Sockets.TcpClient and POP protocol. However, I am having a problem with my SslStream. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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.