App>> sql

  • Thread starter Thread starter Johannes Matlaisane
  • Start date Start date
J

Johannes Matlaisane

Another simply problem...

When I am updating the database from the Windows app only the first
letters (initials) are updated.

I checked my stored procedure and data type on the table and can't find
error.

E.g. Johannes - J is updated in the table.


Thanks for the previous assistance
 
Post relevant code please

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing
 
Hi,

Without the code this is a stumper. A few things to look at:

1. In your stored procedure make sure your varchar declaration specifies
the correct number of characters (i.e. @FirstName varchar(20).

2. When you call your stored procedure make sure you are using the correct
type in your Parameters.Add() call:

objCommand.Parameters.Add("@FirstName", SqlDbType.VarChar).Value =
strFirstName

For the above line if you specified SqlDbType.Char that would probably cause
the problem. If those don't help then post the code. Good luck! Ken.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top