PC Review


Reply
Thread Tools Rate Thread

Dataset Tablenames <- SQLHelper

 
 
Lucas Tam
Guest
Posts: n/a
 
      7th Jul 2004
I'm not sure if this is a problem with Microsoft's Application Data Blocks,
but I am using a query like this:

USE DATABASENAME;SELECT * FROM SOMETABLE

The tablename property of my datasets are not being set - this causes a
problem with CrystalReports.

Is there a way to auto-set the Tablename in a dataset?

Thanks.

--
Lucas Tam ((E-Mail Removed))
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
 
Reply With Quote
 
 
 
 
Josh Golden
Guest
Posts: n/a
 
      7th Jul 2004
use FillDataset instead of ExecuteDataset. here's the signature on one of
them. as you can see, the tableNames() array is for this.

Public Overloads Shared Sub FillDataset(connectionString As String,
commandType As CommandType, commandText As String, dataSet As DataSet,
tableNames() As String)



Lucas Tam wrote:
> I'm not sure if this is a problem with Microsoft's Application Data
> Blocks, but I am using a query like this:
>
> USE DATABASENAME;SELECT * FROM SOMETABLE
>
> The tablename property of my datasets are not being set - this causes
> a problem with CrystalReports.
>
> Is there a way to auto-set the Tablename in a dataset?
>
> Thanks.



 
Reply With Quote
 
Lucas Tam
Guest
Posts: n/a
 
      7th Jul 2004
"Josh Golden" <(E-Mail Removed)> wrote in
news:40ec35c8$0$82988$(E-Mail Removed):

> use FillDataset instead of ExecuteDataset. here's the signature on
> one of them. as you can see, the tableNames() array is for this.
>


Shoot, I was hoping there was some automatic way to pick up the table names
from the database. I'm using System.Reflection to dynamically instantiate
my functions, so any manual work is a bit hard to do.

Anyhow, thanks for your help!

--
Lucas Tam ((E-Mail Removed))
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tablenames in queries John J. Microsoft Access 6 7th Nov 2008 10:12 PM
tablenames Martijn Mulder Microsoft ADO .NET 2 6th Nov 2007 02:52 AM
Sqlhelper or not Sqlhelper that is the question. =?Utf-8?B?Sm9obiBG?= Microsoft C# .NET 4 6th Oct 2006 10:48 PM
Re: sqlhelper.vb and typed dataset W.G. Ryan eMVP Microsoft ADO .NET 0 16th May 2005 08:57 PM
Re: TableNames en columnnames Van T. Dinh Microsoft Access 0 18th Jul 2003 02:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:03 AM.