Showing posts with label update. Show all posts
Showing posts with label update. Show all posts

Thursday, March 29, 2012

DTS for insert/update

I'm new to DTS. I read some docs before adventuring into this matter.
I still haven't found in all the docs I read if there is some "built-in" DTS
task or function or wathever, to do a mixed "insert/update" import from a
source, giving a unique field as primary key.
I'll try to be more specific. The problem I would like to solve is this:
I have a source file (csv) but it could be any source. I must check this
file for all the records and compare them with the ones in the db (giving a
unique field as a way of checking), so that all the records that already
exist, are UPDATED, and the others are INSERTED.
I guess this is one most common task to accomplish, when you have a local
based application that you regularly update and then you want to export the
data to another "slave" application without using replication. But even if
this sounds to me like a common task, I found no "buil-in" function for that
in DTS. I read something about "lookups" but it don't know if it's related
somehow.. it wasn't very clean.
Thanks in advance for suggestions.

--
:: Massimiliano Mattei
:: Project Leader
:: E.xtranet V.irtual A.pplication
:: www.evagroup.net :: www.commy.bizMassimiliano,
Yes, that is a very common task. The best way to handle this is to
import directly into a temp table and then run a procedure to
check/insert/update your data into a production table.
If you need a specific example to follow, we have one on our website at
www.TechnicalVideos.net. $19.99 buys all of our videos for 3 months. Our
DTS videos will have an expert show you step by step how to do this.

Hope that helps,
Best Regards,
Chuck Conover
www.TechnicalVideos.net

"xMANIGHTx" <manight@.ufologia.net> wrote in message
news:c2aav5$noi$1@.lacerta.tiscalinet.it...
> I'm new to DTS. I read some docs before adventuring into this matter.
> I still haven't found in all the docs I read if there is some "built-in"
DTS
> task or function or wathever, to do a mixed "insert/update" import from a
> source, giving a unique field as primary key.
> I'll try to be more specific. The problem I would like to solve is this:
> I have a source file (csv) but it could be any source. I must check this
> file for all the records and compare them with the ones in the db (giving
a
> unique field as a way of checking), so that all the records that already
> exist, are UPDATED, and the others are INSERTED.
> I guess this is one most common task to accomplish, when you have a local
> based application that you regularly update and then you want to export
the
> data to another "slave" application without using replication. But even if
> this sounds to me like a common task, I found no "buil-in" function for
that
> in DTS. I read something about "lookups" but it don't know if it's related
> somehow.. it wasn't very clean.
> Thanks in advance for suggestions.
> --
> :: Massimiliano Mattei
> :: Project Leader
> :: E.xtranet V.irtual A.pplication
> :: www.evagroup.net :: www.commy.biz|||Thanks Chuck!
Your videos are really a good idea!! I checked the demo one and they are
kool... maybe I'm going to subscribe, even if I'm italian.
I must say that the language is well understandable even if a bit "American"
:)
You say that the best pratice is to import first all teh data in a temp
table (maybe to use the bulk inserta advantages) but what if the records are
really too much? Say I have to import 100.000 records or more.. Would you
use a #temp_table, just a "memory" table or a real table?
I don't know if SQL Server writes down #temp_tables just like it does with
real ones, otherwise the server would have to mantain 100.000 records in
memory...
Wich type of table would you suggest? Maybe SQL Server has memory
optimization routines wich write to disk data of #tables not to hold them
only in the RAM?
Do you think this is the best method? DTS is for data trasformation so it's
ODD it doesn't have something that lets you
import/check/transform/insert-update data without writing a specific
procedure for that.

--
:: Massimiliano Mattei
:: Project Leader
:: E.xtranet V.irtual A.pplication
:: www.evagroup.net :: www.commy.biz|||Massimiliano,
Sorry. I know we are too American. We really need to get out more.
My explanation was not very good. By "temp" table, I mean a table that
is not a production table. We can call this a "working" table. So, I would
use a real table to temporarily store the data for your bulk upload, not an
actual temp table that gets stored in memory. I would do it this way even
if you only have a few records. Then, my DTS package would look like this:

- delete all records from the working table
- upload my data file to my working table
- run stored procedure to check/insert/update data row by row from the
working table to my production table

This way, we can execute each step one at a time, and browse the working
table to make sure the data went into each field correctly.
Hope this helps,
Chuck Conover
www.TechnicalVideos.net

"xMANIGHTx" <manight@.ufologia.net> wrote in message
news:c2f4ku$ccj$1@.lacerta.tiscalinet.it...
> Thanks Chuck!
> Your videos are really a good idea!! I checked the demo one and they are
> kool... maybe I'm going to subscribe, even if I'm italian.
> I must say that the language is well understandable even if a bit
"American"
> :)
> You say that the best pratice is to import first all teh data in a temp
> table (maybe to use the bulk inserta advantages) but what if the records
are
> really too much? Say I have to import 100.000 records or more.. Would you
> use a #temp_table, just a "memory" table or a real table?
> I don't know if SQL Server writes down #temp_tables just like it does with
> real ones, otherwise the server would have to mantain 100.000 records in
> memory...
> Wich type of table would you suggest? Maybe SQL Server has memory
> optimization routines wich write to disk data of #tables not to hold them
> only in the RAM?
> Do you think this is the best method? DTS is for data trasformation so
it's
> ODD it doesn't have something that lets you
> import/check/transform/insert-update data without writing a specific
> procedure for that.
> --
> :: Massimiliano Mattei
> :: Project Leader
> :: E.xtranet V.irtual A.pplication
> :: www.evagroup.net :: www.commy.bizsql

Wednesday, March 21, 2012

DTS data transfer and Update

My DTS package transfers data mostly codes from temp to master table. The master table has 10 description fields for each of the codes. These description fields are then populated using update statements joined with 10 description tables. However, the update process is so inefficient since a single update statement takes several hours to finish.

The second option is to populate description fields as codes are transferred from temp to master table using 10 left outer joins with description tables. But the result was unexpected. It's giving me more than twice as many records as there are in the temp table.

What would be the best (efficient) approach for this situation? Would greately appreciate any help/thoughts.

thanks.I think I would create a view, unload the vie and bcp the data into the table in native format

Do the code tables contain keys?|||a single update statement takes several hours to finish

Then you must be doing something wrong...

The master table has 10 description fields

This sounds like awful design! Fancy posting the DDL of the table in question?sql

Sunday, March 11, 2012

DTS and #temp tables

I have a rather complex SP that creates a #temp table and then populates tha
t
table using several select/inserts/update statements. I need the results of
this #table to be exported to external text file nightly so that our
mainframe FTPs can grab it.
DTS apparently wont let me use #temp tables. I get invalid object errors.
Ive heard of global ##temp, but even changing the table all the references
to be ##table isn’t solving the problem.
Is there commands I can place in the SP to create the external file without
using DTS, or can I define the #temp table in a way that DTS can see it?
Help appreciated
--
JP
.NET Software DeveloperJP,
You are running into problems with the scope of a #temp table. It is
available from the creating code level DOWN. Anything above the block of
code, stored procedure, etc will not be able to see this table. Likewise,
anything that runs in some other connection, for example one used by a DTS
package, will not be able to see the #temp table.
In the SQL Books Online, read the discussion under the CREATE TABLE command
on Temporary Tables. It discusses the scope and life of both kinds of
temporary tables.
RLF
"JP" <JP@.discussions.microsoft.com> wrote in message
news:66B3FF76-EB09-46A0-A9FF-2F6AA24E2EAB@.microsoft.com...
>I have a rather complex SP that creates a #temp table and then populates
>that
> table using several select/inserts/update statements. I need the results
> of
> this #table to be exported to external text file nightly so that our
> mainframe FTPs can grab it.
> DTS apparently wont let me use #temp tables. I get invalid object errors.
> Ive heard of global ##temp, but even changing the table all the
> references
> to be ##table isn't solving the problem.
> Is there commands I can place in the SP to create the external file
> without
> using DTS, or can I define the #temp table in a way that DTS can see it?
> Help appreciated
> --
> JP
> .NET Software Developer
>|||Hi,
I would suggest you to use UDF instead of #TempTable so it is able to be
exported
Ed
"JP" wrote:

> I have a rather complex SP that creates a #temp table and then populates t
hat
> table using several select/inserts/update statements. I need the results o
f
> this #table to be exported to external text file nightly so that our
> mainframe FTPs can grab it.
> DTS apparently wont let me use #temp tables. I get invalid object errors.
> Ive heard of global ##temp, but even changing the table all the reference
s
> to be ##table isn’t solving the problem.
> Is there commands I can place in the SP to create the external file withou
t
> using DTS, or can I define the #temp table in a way that DTS can see it?
> Help appreciated
> --
> JP
> .NET Software Developer
>

dts alternative?

I need to give the ability to only somewhat technically minded people to
insert/ update into 1 SQL table. They have data that comes in frequently
from Excel files that needs to be imported and we want to make it so they
don't need IT. There's no way to install just DTS without installing
Enterprise Manager so thats out. Is there another tool?
SQL2K SP3
TIA, ChrisR
Hi
I would write yourself a sceduled dts job that takes the file from a
specific location, processes it, and then archives it to a different
location. Therefore the only thing the user will have to do is move the file
into the location where it will be processed. See
http://www.sqldts.com/default.aspx?246 If you are wanting to cut out the
middle man totally you could use SQLMail and xp_readmail to recieve the
file.
John
"ChrisR" <bla@.noemail.com> wrote in message
news:en0uVgVyEHA.3024@.TK2MSFTNGP14.phx.gbl...
>I need to give the ability to only somewhat technically minded people to
> insert/ update into 1 SQL table. They have data that comes in frequently
> from Excel files that needs to be imported and we want to make it so they
> don't need IT. There's no way to install just DTS without installing
> Enterprise Manager so thats out. Is there another tool?
> --
> SQL2K SP3
> TIA, ChrisR
>
|||The problem though is that the file format of the file isn't constant. The
people that send them to us rename columns, dont have the data the way they
really want it, etc. Thats why I need a GUI that isn't DTS.
"John Bell" <jbellnewsposts@.hotmail.com> wrote in message
news:#MRC2dWyEHA.3024@.TK2MSFTNGP14.phx.gbl...
> Hi
> I would write yourself a sceduled dts job that takes the file from a
> specific location, processes it, and then archives it to a different
> location. Therefore the only thing the user will have to do is move the
file[vbcol=seagreen]
> into the location where it will be processed. See
> http://www.sqldts.com/default.aspx?246 If you are wanting to cut out the
> middle man totally you could use SQLMail and xp_readmail to recieve the
> file.
> John
>
> "ChrisR" <bla@.noemail.com> wrote in message
> news:en0uVgVyEHA.3024@.TK2MSFTNGP14.phx.gbl...
they
>
|||Chris,
There are numerous third-party data transformation products available...
Here's one that I have not used before but that looks pretty interesting
based on the website:
http://www.idera.com/Products/DTx/Default.aspx
Adam Machanic
SQL Server MVP
http://www.sqljunkies.com/weblog/amachanic
"ChrisR" <bla@.noemail.com> wrote in message
news:uzpwfbZyEHA.1524@.TK2MSFTNGP09.phx.gbl...
> The problem though is that the file format of the file isn't constant. The
> people that send them to us rename columns, dont have the data the way
they[vbcol=seagreen]
> really want it, etc. Thats why I need a GUI that isn't DTS.
>
> "John Bell" <jbellnewsposts@.hotmail.com> wrote in message
> news:#MRC2dWyEHA.3024@.TK2MSFTNGP14.phx.gbl...
> file
to[vbcol=seagreen]
frequently
> they
>
|||How about a simple .net app?
If you use a datagrid then the users should be able to copy the contents of
the spreadsheet into the grid, click a button to import.
I have a system where the users put the data into a spreadsheet then a macro
does the copy to a table and am planning to replace it with the above. Should
only take a few hours to write so sometime middle of next year I guess .
"ChrisR" wrote:

> I need to give the ability to only somewhat technically minded people to
> insert/ update into 1 SQL table. They have data that comes in frequently
> from Excel files that needs to be imported and we want to make it so they
> don't need IT. There's no way to install just DTS without installing
> Enterprise Manager so thats out. Is there another tool?
> --
> SQL2K SP3
> TIA, ChrisR
>
>

dts alternative?

I need to give the ability to only somewhat technically minded people to
insert/ update into 1 SQL table. They have data that comes in frequently
from Excel files that needs to be imported and we want to make it so they
don't need IT. There's no way to install just DTS without installing
Enterprise Manager so thats out. Is there another tool?
SQL2K SP3
TIA, ChrisRHi
I would write yourself a sceduled dts job that takes the file from a
specific location, processes it, and then archives it to a different
location. Therefore the only thing the user will have to do is move the file
into the location where it will be processed. See
http://www.sqldts.com/default.aspx?246 If you are wanting to cut out the
middle man totally you could use SQLMail and xp_readmail to recieve the
file.
John
"ChrisR" <bla@.noemail.com> wrote in message
news:en0uVgVyEHA.3024@.TK2MSFTNGP14.phx.gbl...
>I need to give the ability to only somewhat technically minded people to
> insert/ update into 1 SQL table. They have data that comes in frequently
> from Excel files that needs to be imported and we want to make it so they
> don't need IT. There's no way to install just DTS without installing
> Enterprise Manager so thats out. Is there another tool?
> --
> SQL2K SP3
> TIA, ChrisR
>|||The problem though is that the file format of the file isn't constant. The
people that send them to us rename columns, dont have the data the way they
really want it, etc. Thats why I need a GUI that isn't DTS.
"John Bell" <jbellnewsposts@.hotmail.com> wrote in message
news:#MRC2dWyEHA.3024@.TK2MSFTNGP14.phx.gbl...
> Hi
> I would write yourself a sceduled dts job that takes the file from a
> specific location, processes it, and then archives it to a different
> location. Therefore the only thing the user will have to do is move the
file
> into the location where it will be processed. See
> http://www.sqldts.com/default.aspx?246 If you are wanting to cut out the
> middle man totally you could use SQLMail and xp_readmail to recieve the
> file.
> John
>
> "ChrisR" <bla@.noemail.com> wrote in message
> news:en0uVgVyEHA.3024@.TK2MSFTNGP14.phx.gbl...
they[vbcol=seagreen]
>|||Chris,
There are numerous third-party data transformation products available...
Here's one that I have not used before but that looks pretty interesting
based on the website:
http://www.idera.com/Products/DTx/Default.aspx
Adam Machanic
SQL Server MVP
http://www.sqljunkies.com/weblog/amachanic
--
"ChrisR" <bla@.noemail.com> wrote in message
news:uzpwfbZyEHA.1524@.TK2MSFTNGP09.phx.gbl...
> The problem though is that the file format of the file isn't constant. The
> people that send them to us rename columns, dont have the data the way
they
> really want it, etc. Thats why I need a GUI that isn't DTS.
>
> "John Bell" <jbellnewsposts@.hotmail.com> wrote in message
> news:#MRC2dWyEHA.3024@.TK2MSFTNGP14.phx.gbl...
> file
to[vbcol=seagreen]
frequently[vbcol=seagreen]
> they
>|||How about a simple .net app?
If you use a datagrid then the users should be able to copy the contents of
the spreadsheet into the grid, click a button to import.
I have a system where the users put the data into a spreadsheet then a macro
does the copy to a table and am planning to replace it with the above. Shoul
d
only take a few hours to write so sometime middle of next year I guess .
"ChrisR" wrote:

> I need to give the ability to only somewhat technically minded people to
> insert/ update into 1 SQL table. They have data that comes in frequently
> from Excel files that needs to be imported and we want to make it so they
> don't need IT. There's no way to install just DTS without installing
> Enterprise Manager so thats out. Is there another tool?
> --
> SQL2K SP3
> TIA, ChrisR
>
>

dts alternative?

I need to give the ability to only somewhat technically minded people to
insert/ update into 1 SQL table. They have data that comes in frequently
from Excel files that needs to be imported and we want to make it so they
don't need IT. There's no way to install just DTS without installing
Enterprise Manager so thats out. Is there another tool?
--
SQL2K SP3
TIA, ChrisRHi
I would write yourself a sceduled dts job that takes the file from a
specific location, processes it, and then archives it to a different
location. Therefore the only thing the user will have to do is move the file
into the location where it will be processed. See
http://www.sqldts.com/default.aspx?246 If you are wanting to cut out the
middle man totally you could use SQLMail and xp_readmail to recieve the
file.
John
"ChrisR" <bla@.noemail.com> wrote in message
news:en0uVgVyEHA.3024@.TK2MSFTNGP14.phx.gbl...
>I need to give the ability to only somewhat technically minded people to
> insert/ update into 1 SQL table. They have data that comes in frequently
> from Excel files that needs to be imported and we want to make it so they
> don't need IT. There's no way to install just DTS without installing
> Enterprise Manager so thats out. Is there another tool?
> --
> SQL2K SP3
> TIA, ChrisR
>|||The problem though is that the file format of the file isn't constant. The
people that send them to us rename columns, dont have the data the way they
really want it, etc. Thats why I need a GUI that isn't DTS.
"John Bell" <jbellnewsposts@.hotmail.com> wrote in message
news:#MRC2dWyEHA.3024@.TK2MSFTNGP14.phx.gbl...
> Hi
> I would write yourself a sceduled dts job that takes the file from a
> specific location, processes it, and then archives it to a different
> location. Therefore the only thing the user will have to do is move the
file
> into the location where it will be processed. See
> http://www.sqldts.com/default.aspx?246 If you are wanting to cut out the
> middle man totally you could use SQLMail and xp_readmail to recieve the
> file.
> John
>
> "ChrisR" <bla@.noemail.com> wrote in message
> news:en0uVgVyEHA.3024@.TK2MSFTNGP14.phx.gbl...
> >I need to give the ability to only somewhat technically minded people to
> > insert/ update into 1 SQL table. They have data that comes in frequently
> > from Excel files that needs to be imported and we want to make it so
they
> > don't need IT. There's no way to install just DTS without installing
> > Enterprise Manager so thats out. Is there another tool?
> >
> > --
> > SQL2K SP3
> >
> > TIA, ChrisR
> >
> >
>|||Chris,
There are numerous third-party data transformation products available...
Here's one that I have not used before but that looks pretty interesting
based on the website:
http://www.idera.com/Products/DTx/Default.aspx
--
Adam Machanic
SQL Server MVP
http://www.sqljunkies.com/weblog/amachanic
--
"ChrisR" <bla@.noemail.com> wrote in message
news:uzpwfbZyEHA.1524@.TK2MSFTNGP09.phx.gbl...
> The problem though is that the file format of the file isn't constant. The
> people that send them to us rename columns, dont have the data the way
they
> really want it, etc. Thats why I need a GUI that isn't DTS.
>
> "John Bell" <jbellnewsposts@.hotmail.com> wrote in message
> news:#MRC2dWyEHA.3024@.TK2MSFTNGP14.phx.gbl...
> > Hi
> >
> > I would write yourself a sceduled dts job that takes the file from a
> > specific location, processes it, and then archives it to a different
> > location. Therefore the only thing the user will have to do is move the
> file
> > into the location where it will be processed. See
> > http://www.sqldts.com/default.aspx?246 If you are wanting to cut out the
> > middle man totally you could use SQLMail and xp_readmail to recieve the
> > file.
> >
> > John
> >
> >
> > "ChrisR" <bla@.noemail.com> wrote in message
> > news:en0uVgVyEHA.3024@.TK2MSFTNGP14.phx.gbl...
> > >I need to give the ability to only somewhat technically minded people
to
> > > insert/ update into 1 SQL table. They have data that comes in
frequently
> > > from Excel files that needs to be imported and we want to make it so
> they
> > > don't need IT. There's no way to install just DTS without installing
> > > Enterprise Manager so thats out. Is there another tool?
> > >
> > > --
> > > SQL2K SP3
> > >
> > > TIA, ChrisR
> > >
> > >
> >
> >
>|||How about a simple .net app?
If you use a datagrid then the users should be able to copy the contents of
the spreadsheet into the grid, click a button to import.
I have a system where the users put the data into a spreadsheet then a macro
does the copy to a table and am planning to replace it with the above. Should
only take a few hours to write so sometime middle of next year I guess :).
"ChrisR" wrote:
> I need to give the ability to only somewhat technically minded people to
> insert/ update into 1 SQL table. They have data that comes in frequently
> from Excel files that needs to be imported and we want to make it so they
> don't need IT. There's no way to install just DTS without installing
> Enterprise Manager so thats out. Is there another tool?
> --
> SQL2K SP3
> TIA, ChrisR
>
>

Friday, February 17, 2012

DTC Error

I have a project with two SQL servers on two seperate
subnet, following distribute query will run on B server.
update [xxx.xxx.xxx.xxx].[abce].[dbo].[abcede] set
uploadstatus='InProgress'
If I include this statement in Transaction Like this way:
Begin Tran
update [xxx.xxx.xxx.xxx].[abce].[dbo].[abcede] set
uploadstatus='InProgress'
commit Tran
I got following error' Server: Msg 7391, Level 16, State
1, Line 2
The operation could not be performed because the OLE DB
provider 'SQLOLEDB' was unable to begin a distributed
transaction.
[OLE/DB provider returned message: New transaction cannot
enlist in the specified transaction coordinator. ]
OLE DB error trace [OLE/DB Provider 'SQLOLEDB'
ITransactionJoin::JoinTransaction returned 0x8004d00a].'
Link server is setup okay for sure, any suggestions from
microsoft?
For DTC , two sql server have to be the same subnet or
same domain?
Thanks
David Liu
MCSE/MCDBA
Moneris.com
Is one of the servers Windows Server 2003 by any chance - see below
http://support.microsoft.com/default...b;en-us;816701
Andy Ball
Greenfell Computing Ltd
"David Liu" <david.z.liu@.moneris.com> wrote in message
news:2ef101c4289c$c6c0a660$a101280a@.phx.gbl...
> I have a project with two SQL servers on two seperate
> subnet, following distribute query will run on B server.
> update [xxx.xxx.xxx.xxx].[abce].[dbo].[abcede] set
> uploadstatus='InProgress'
> If I include this statement in Transaction Like this way:
> Begin Tran
> update [xxx.xxx.xxx.xxx].[abce].[dbo].[abcede] set
> uploadstatus='InProgress'
> commit Tran
> I got following error' Server: Msg 7391, Level 16, State
> 1, Line 2
> The operation could not be performed because the OLE DB
> provider 'SQLOLEDB' was unable to begin a distributed
> transaction.
> [OLE/DB provider returned message: New transaction cannot
> enlist in the specified transaction coordinator. ]
> OLE DB error trace [OLE/DB Provider 'SQLOLEDB'
> ITransactionJoin::JoinTransaction returned 0x8004d00a].'
> Link server is setup okay for sure, any suggestions from
> microsoft?
> For DTC , two sql server have to be the same subnet or
> same domain?
> Thanks
> David Liu
> MCSE/MCDBA
> Moneris.com
>
>
>
|||Both of them are Windows 2000 Advanced Server.
Does this case need to be same subnet and same domain?
DTC use RPC for communication for sure.
Really wired
Thanks for your information

>--Original Message--
>Is one of the servers Windows Server 2003 by any chance -
see below
>http://support.microsoft.com/default.aspx?scid=kb;en-
us;816701[vbcol=seagreen]
>
>--
>Andy Ball
>Greenfell Computing Ltd
>"David Liu" <david.z.liu@.moneris.com> wrote in message
>news:2ef101c4289c$c6c0a660$a101280a@.phx.gbl...
way:[vbcol=seagreen]
cannot
>
>.
>

DTC Error

I have a project with two SQL servers on two seperate
subnet, following distribute query will run on B server.
update [xxx.xxx.xxx.xxx].[abce].[dbo].[abcede] set
uploadstatus='InProgress'
If I include this statement in Transaction Like this way:
Begin Tran
update [xxx.xxx.xxx.xxx].[abce].[dbo].[abcede] set
uploadstatus='InProgress'
commit Tran
I got following error' Server: Msg 7391, Level 16, State
1, Line 2
The operation could not be performed because the OLE DB
provider 'SQLOLEDB' was unable to begin a distributed
transaction.
[OLE/DB provider returned message: New transaction cannot
enlist in the specified transaction coordinator. ]
OLE DB error trace [OLE/DB Provider 'SQLOLEDB'
ITransactionJoin::JoinTransaction returned 0x8004d00a].'
Link server is setup okay for sure, any suggestions from
microsoft?
For DTC , two sql server have to be the same subnet or
same domain?
Thanks
David Liu
MCSE/MCDBA
Moneris.comIs one of the servers Windows Server 2003 by any chance - see below
http://support.microsoft.com/defaul...kb;en-us;816701
Andy Ball
Greenfell Computing Ltd
"David Liu" <david.z.liu@.moneris.com> wrote in message
news:2ef101c4289c$c6c0a660$a101280a@.phx.gbl...
> I have a project with two SQL servers on two seperate
> subnet, following distribute query will run on B server.
> update [xxx.xxx.xxx.xxx].[abce].[dbo].[abcede] set
> uploadstatus='InProgress'
> If I include this statement in Transaction Like this way:
> Begin Tran
> update [xxx.xxx.xxx.xxx].[abce].[dbo].[abcede] set
> uploadstatus='InProgress'
> commit Tran
> I got following error' Server: Msg 7391, Level 16, State
> 1, Line 2
> The operation could not be performed because the OLE DB
> provider 'SQLOLEDB' was unable to begin a distributed
> transaction.
> [OLE/DB provider returned message: New transaction cannot
> enlist in the specified transaction coordinator. ]
> OLE DB error trace [OLE/DB Provider 'SQLOLEDB'
> ITransactionJoin::JoinTransaction returned 0x8004d00a].'
> Link server is setup okay for sure, any suggestions from
> microsoft?
> For DTC , two sql server have to be the same subnet or
> same domain?
> Thanks
> David Liu
> MCSE/MCDBA
> Moneris.com
>
>
>|||Both of them are Windows 2000 Advanced Server.
Does this case need to be same subnet and same domain?
DTC use RPC for communication for sure.
Really wired
Thanks for your information

>--Original Message--
>Is one of the servers Windows Server 2003 by any chance -
see below
>http://support.microsoft.com/default.aspx?scid=kb;en-
us;816701
>
>--
>Andy Ball
>Greenfell Computing Ltd
>"David Liu" <david.z.liu@.moneris.com> wrote in message
>news:2ef101c4289c$c6c0a660$a101280a@.phx.gbl...
way:[vbcol=seagreen]
cannot[vbcol=seagreen]
>
>.
>