473,565 Members | 2,770 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1636
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.comwr ote in message
news:uE******** ******@TK2MSFTN GP04.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.comwr ote in message
news:uE******** ******@TK2MSFTN GP04.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.comwr ote in message
news:eG******** *****@TK2MSFTNG P06.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
2223
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 "ls /home/cypher"
3
3497
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 System.Data.SqlClient.SqlError" I believe the issue is related to the fact that webserver runs the framework 1.1 and the component server has the framework 1.0 ...
11
3103
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 you how the report works...but I can't even get past connecting to the database :-) I use the typical: Dim oConnection As New...
1
6191
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 few days, the webservice stops responding and the .NET windows app client fails with no informative error message. When I try to run any webmethod...
5
4349
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 DataTable("asset") 3 Dim dcPk(0) As DataColumn 4 dcPk(0) = _ 5 dtAsset.Columns.Add("fullName", Type.GetType("System.String")) 6 ...
14
2144
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 architected to accommodate "System" as an entity. This means a table in the database named System, a class System, a web form System, etc. ...
4
1484
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 dataset, it gives a substantial number of compile errors. To simplify the problem, add a Dataset with one table and one column called "System" -...
2
16393
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 coding error The type or namespace name 'HttpWebRequest' does not exist in the namespace 'System.Net' (are you missing an assembly...
3
6717
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 { trans.T_Date, trans.T_PayeeId,
0
7666
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7584
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7888
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7644
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7951
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6260
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
2083
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1201
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
925
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.