473,396 Members | 1,929 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,396 software developers and data experts.

Column name = "System" in dataset

There is a database table with one of the columns named "System".
When creating a new Dataset for this table, the project gives a huge number
of compile errors.
If I change the column name to be anything else than "System" and
re-generate the Dataset, it works. The problem is that this is an existing
database and there is no way that the column name will be changed.
Sep 11 '07 #1
5 1624
On Sep 11, 12:52 pm, "Chris Botha" <chris_s_both...@hotmail.com>
wrote:
There is a database table with one of the columns named "System".
When creating a new Dataset for this table, the project gives a huge number
of compile errors.
If I change the column name to be anything else than "System" and
re-generate the Dataset, it works. The problem is that this is an existing
database and there is no way that the column name will be changed.
Have you tried using an alias for that column when selecting the data?

Sep 11 '07 #2
Language ? In VB.NET you should be able to use [System] to avoid a naming
collision with the system namespace (or let us know more for example the
line that fails plus the compilation error message could be usefull for
better help).

--
Patrice

"Chris Botha" <ch*************@hotmail.coma écrit dans le message de news:
uE**************@TK2MSFTNGP04.phx.gbl...
There is a database table with one of the columns named "System".
When creating a new Dataset for this table, the project gives a huge
number of compile errors.
If I change the column name to be anything else than "System" and
re-generate the Dataset, it works. The problem is that this is an existing
database and there is no way that the column name will be changed.

Sep 11 '07 #3
"Chris Botha" <ch*************@hotmail.comwrote in message
news:uE**************@TK2MSFTNGP04.phx.gbl...
There is a database table with one of the columns named "System".
When creating a new Dataset for this table, the project gives a huge
number of compile errors.
If I change the column name to be anything else than "System" and
re-generate the Dataset, it works. The problem is that this is an existing
database and there is no way that the column name will be changed.
SELECT [System] AS SomethingElse FROM MyTable
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Sep 11 '07 #4
Hi Guys, thanks for the help so far.

The problem is not with a Select statement, but the Dataset being generated
by VS2005.
So I right click on the solution, select Add New Item, then select Dataset,
then create the Dataset and the "wizard" asks for the table to be used, etc.
and finally one has the light-blue screen with the table diagram on the
screen with all the column names. Build and there are more than a hundred
compile errors.
Before posting the 1st message above I did change the column on the diagram
to be "[System]", with no success.
"Chris Botha" <ch*************@hotmail.comwrote in message
news:uE**************@TK2MSFTNGP04.phx.gbl...
There is a database table with one of the columns named "System".
When creating a new Dataset for this table, the project gives a huge
number of compile errors.
If I change the column name to be anything else than "System" and
re-generate the Dataset, it works. The problem is that this is an existing
database and there is no way that the column name will be changed.

Sep 11 '07 #5
"Chris Botha" <ch*************@hotmail.comwrote in message
news:eG*************@TK2MSFTNGP06.phx.gbl...
The problem is not with a Select statement, but the Dataset being
generated by VS2005.
So don't...

Create your DataSet in code instead...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Sep 11 '07 #6

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

Similar topics

5
by: Didier C | last post by:
Hi! I was wondering if we can pass some arguments to system("cmdline")? E.g in Perl, we can do something like: $dir="/home/cypher"; system("ls $dir"); which would instruct Perl to do an...
3
by: Stan | last post by:
My webserver calls a component on another server through DCOM, the component goes to SQL, SQL raises the exception and here is what the client gets: "Cannot find member name...
11
by: Roy Lawson | last post by:
I have no idea what is going on here. I wrote a simple application in VB.NET to generate a Crystal Report, and I am now trying to move it to ASP.NET with Crstal Enterprise. I wish I could tell...
1
by: Trygve Lorentzen | last post by:
Hi, my webservice is running on Win2000 SP4, IIS 5.0 fully patched, connecting to a MySQL database and mainly returning Typed DataSet's from webmethods. After running for a while, generally a...
5
by: hzgt9b | last post by:
I'm building a dataset that writes out a Point type value. Here's the code that I've got: 1 Dim dsContent As DataSet = New DataSet("content") 2 Dim dtAsset As DataTable = New...
14
by: Ronald S. Cook | last post by:
I'm just curious how you would handle this. In the cable industry, Comcast is referred to as an "MSO" (multiple systems operator) meaning they own many cable systems. Therefore a solution must be...
4
by: Chris Botha | last post by:
The customer has a database with a column in a table named "System". I've been using this method for years now - create a dataset (an .xsd file) for the table. With a column named "System" in the...
2
by: shalong | last post by:
Hi all, VS 2008 is complaining that HttpWebRequest class is not in System.Net namespace I have referenced System.Net and have coded "using System.Net" I think its a setup problem rather than a...
3
by: =?Utf-8?B?UGFvbG8=?= | last post by:
I'm trying to populate a rich text box with the results of a query, thus: private void button1_Click(object sender, EventArgs e) { var query from trans in dataSet.Transaction select new {...
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
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.