Re: Update query SQL2000
From: Newbie (noidea_at_nospam.com)
Date: 01/13/05
- Next message: Jig Bhakta: "Describing a table structure"
- Previous message: Newbie: "Update query SQL2000"
- In reply to: Newbie: "Update query SQL2000"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 13 Jan 2005 09:12:49 -0000
Never mind - I've worked it out
"Newbie" <noidea@nospam.com> wrote in message
news:elVEc2U%23EHA.2016@TK2MSFTNGP15.phx.gbl...
> Hi
> I am trying to write an update query that update the BG1 field in the
> Customer table with the BG value in the Agreements Table from a different
> database.
>
> Here is what I have so far . . . but it doesn't work - I get the error
>
> Server: Msg 8152, Level 16, State 2, Line 1
> String or binary data would be truncated.
> The statement has been terminated.
>
> UPDATE tblCustomer SET BG1 = A.BG From tblCustomer C, MIS.dbo.Agreements A
> WHERE C.Customer = A.Customer
>
> What am I doing wrong?
>
- Next message: Jig Bhakta: "Describing a table structure"
- Previous message: Newbie: "Update query SQL2000"
- In reply to: Newbie: "Update query SQL2000"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|