borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Record count - Entered the most times)Next Topic (Record count-Solved) New Topic New Poll Post Reply
AndreaVB Forum : Database : How to add a column to an SQL database
Poster Message
furjaw
Level: Protégé

Registered: 11-06-2006
Posts: 6

icon How to add a column to an SQL database

Visual Basic 2005
I used DataSet Designer to add a column called "Case#" to an existing SQL table.
The table is used by a DataGridView in a VB 2005 program.
I got it working on my development computer in debug mode.
Then, when I installed it, I got an exception "Case# is an invalid column" and none of my data records appeared.

Adding the following statement did not help:
PatientDataSet.Patient.Columns.Add("Case#")


[Edited by furjaw on 22-04-2007 at 11:11 AM GMT]

22-04-2007 at 02:40 AM
View Profile Send Email to User Show All Posts | Quote Reply
vbgen
Level: Moderator

Registered: 10-10-2002
Posts: 876
icon Re: How to add a column to an SQL database

hmmn.. is the # symbol a permitted character in column names?

____________________________
Been busy trying to take a second degree <--it's not working out...

23-04-2007 at 01:30 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Database : How to add a column to an SQL database
Previous Topic (Record count - Entered the most times)Next Topic (Record count-Solved) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder