Article View: comp.databases.ms-sqlserver
Article #137Re: Hopefully easy question from a newbie
From: Carl Brady
Date: Tue, 22 Jun 1999 00:00
Date: Tue, 22 Jun 1999 00:00
35 lines
2078 bytes
2078 bytes
Jody: What's a DTS package? It looks like you are trying to use VB syntax
for a recordset or resultset in SQL Server enterprise manager. That won't
work. This will (provided the cost1 and cost are currency or other numeric
datatype
Select "Answer" = (Select tblName.Cost1 + tblName.cost FROM tblName WHERE
whatever)
That might not be exactly right, but should be close.
Hope this helps
Jody wrote in message <7klvh1$2vc$1@nntp.mica.net>...
>Hi. I'm working on a DTS package in Enterprise Manager. What I'm trying
to
>do seems like it should be simple enough, but I'm having a hard time.
>
>Here's the scenario. I'm trying to take two fields, add them together and
>place the result in the new field. Here's how I tried to do it:
>
>DTSDestination("costtotal") = DTSSource("cost1") + DTSSource("cost")
>
>I get the error message "type mismatch". The data types of the fields are
>exactly the same and should be large enough to hold the data.
>
>Since I'm new at this, I thought I'd see if anyone on here could help me.
>Is my syntax correct and should I be looking closer at the data or is my
>syntax totally off?
>
>Thanks in advance for any help.
>
>--Jody
>
>
Technical Details
Message-ID:
<xcDb3.999$4p2.825@news.rdc1.ne.home.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7klvh1$2vc$1@nntp.mica.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10f695,4e51240198d639f5 X-Google-Attributes: gid10f695,public X-Google-Thread: ff490,4e51240198d639f5 X-Google-Attributes: gidff490,public X-Google-Thread: 104de1,4e51240198d639f5 X-Google-Attributes: gid104de1,public From: "Carl Brady" <carlb@crescentarcx.com> Subject: Re: Hopefully easy question from a newbie Date: 1999/06/22 Message-ID: <xcDb3.999$4p2.825@news.rdc1.ne.home.com> X-Deja-AN: 492358940 References: <7klvh1$2vc$1@nntp.mica.net> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Complaints-To: abuse@home.net X-Trace: news.rdc1.ne.home.com 930021277 24.3.230.93 (Mon, 21 Jun 1999 20:14:37 PDT) Organization: @Home Network NNTP-Posting-Date: Mon, 21 Jun 1999 20:14:37 PDT Newsgroups: comp.databases.ms-sqlserver,cz.comp.microsoft.sql,microsoft.public.sqlserver.server