INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Changes in SQL Server won't update in my app

Changes in SQL Server won't update in my app

(OP)
Hi All,

hope this is the right place to post this question..

I am using VS2005 and I am having a problem getting my app to accept text into a textbox. Originally it only accepted 15 characters but I needed to enter something with 24 in.

I changed the column in SQL server Express 2005 and saved the table but it is still telling me the chars exceed the limit.

I have refreshed my dataset and now don't know what else to do?

Any help would be really appreciated..

John

.NET 2.0, Visual Studio 2005, SQL Server 2005 Express

RE: Changes in SQL Server won't update in my app

(OP)
Hi Again,

still struggling with this and thought a bit more info may help.

My SQl database has a table (tblCustomers) and a column (address2), the datatype of this column used to be varchar(15) but I then changed it to varchar(30) and saved the table.

In my .xsd file I have my tblCustomers (along with tableadapter) but when I click in column 'address2', it shows maxlength as 15. I could edit this directly from here but would be much more comfortable with updating the whole table somehow.

This should be possible surely?

John

.NET 2.0, Visual Studio 2005, SQL Server 2005 Express

RE: Changes in SQL Server won't update in my app

John,

This would be more appropriate in forum796: Visual Basic(Microsoft) -VB.NET/VB2005.  However, that being said, I'm a little confused about your problem (but that may be due in part to my own unfamiliarity with .NET and XSD).  Are you unable to enter the text into the textbox or are you able to enter the text but it doesn't save to your DB?  If you cannot enter into the textbox, then you need to fix it so that it will allow for more than 15 characters.  If you cannot save to the DB, then the problem lies there and you will need to correctly allow the column in your table to enter 30 characters (which it apparently isn't doing now).  

------------------------------------------------------------------------------------------------------------------------
"Men occasionally stumble over the truth, but most of them pick themselves up and hurry off as if nothing ever happened."
- Winston Churchill

RE: Changes in SQL Server won't update in my app

(OP)
Hi Chopstik, sorry for the wrong forum. Still finding my way.. smile

My actual textbox is limited to 30 chars, the column in my SQL database is 30 chars but the table (as viewed in the xsd in VS and has a tableadapter attached) still states 15 chars. Refreshing or reconfiguring the table makes no difference.

Im sure that deleting the table and re-configuring it would work but then all my tableadapter queries will be lost and I'd just like to know (for future mainly) that there is a way to get my database changes to reflect in VS properly.

Baffling me this one...

John

.NET 2.0, Visual Studio 2005, SQL Server 2005 Express

RE: Changes in SQL Server won't update in my app

This goes a little beyond my ken and might be better addressed in the forum I mentioned earlier.  I'll check in there later to see if someone was able to provide better assistance (and I'm curious to know for myself, too).  Good luck and sorry I couldn't be of more help...

------------------------------------------------------------------------------------------------------------------------
"Men occasionally stumble over the truth, but most of them pick themselves up and hurry off as if nothing ever happened."
- Winston Churchill

RE: Changes in SQL Server won't update in my app

(OP)
Can i transfer this to that forum or would you recommend starting the thread from scratch in there?

I would have posted in that forum originally if I'd have known it was there. Couldn't find it for some reason hence me posting in the closest one I could find..

No need to apologise Chopstik, glad to hear anything back on this post.

Cheers
John

.NET 2.0, Visual Studio 2005, SQL Server 2005 Express

RE: Changes in SQL Server won't update in my app

You'll need to post separately in that thread.

------------------------------------------------------------------------------------------------------------------------
"Men occasionally stumble over the truth, but most of them pick themselves up and hurry off as if nothing ever happened."
- Winston Churchill

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close