Thursday, March 22, 2012
Accessing agents status!
I'm testing a system with one distribution server and 2 subscribers
(pointing to 2 different publications on server)(planning to add other 7
subscribers on it!). I'm using bidirectional transactional replication.
Sql server 2000 is installed everywhere. All the system works fine. Data
is being updated on subscribers with a rate of about 100 records each
minute.
In that system one of the testcases is to disconnect one of the
subscriber (no more data is written in it!) for 60 minutes or more, the
reconnect it. When i reconnect it I have 2 problems:
1 - My agent is stopped (i'm using PUSH subscriptions...). I've heard
that it's the normal behavior when using a push subscription, but
there's a way to avoid it? Maybe with some triggers/stored procedures?
2 - Atfer reconnection the subscriber and restarting the agent that
stopped all the agents start working and sincronizing data. But if i
start writing data in the data that has just been reconnected, all the
data i put inside it is not sent to server and goes to conflict tables!
First question: Can i do something about that?
I tryied to do it all again but this time i've waited all the agents to
finish syncronising the data writen when the subscriber was "down". This
could be an acceptable procedure to me but I have to "tell" the normal
user to that the agent has synconized everything and he can start
writing on the subscriber.
Second question: Is there a way to look at the agent status (not using
enterprise manager!!)? I'm open minded to all kind of solutions...
Running scripts, stored procedures, writing my own small program (maybe
using some libraries... maybe RMO?).
And Thank you in advance for any
feedback
Fabio,
this is a script I use to examine the state of a job:
http://www.replicationanswers.com/Do...nningJobs.txt.
You could use it to decide what to do. To have your agent automatically
restart when connectivity is reestablished, a simple solution is to not have
the continuous schedule but a schedule once a minute. However, in this case
the above script won't really be helpful. So, I'd have a job that runs every
minute and does sp_start_job to start the merge agent, but only if it is not
already running (use my script for that). On the subscriber, if the merge
agent isn't running (again my script) you could prevent user access if you
want to avoid conflicts.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
"Fabio Pliger" wrote:
> Hi everybody...
> I'm testing a system with one distribution server and 2 subscribers
> (pointing to 2 different publications on server)(planning to add other 7
> subscribers on it!). I'm using bidirectional transactional replication.
> Sql server 2000 is installed everywhere. All the system works fine. Data
> is being updated on subscribers with a rate of about 100 records each
> minute.
> In that system one of the testcases is to disconnect one of the
> subscriber (no more data is written in it!) for 60 minutes or more, the
> reconnect it. When i reconnect it I have 2 problems:
> 1 - My agent is stopped (i'm using PUSH subscriptions...). I've heard
> that it's the normal behavior when using a push subscription, but
> there's a way to avoid it? Maybe with some triggers/stored procedures?
> 2 - Atfer reconnection the subscriber and restarting the agent that
> stopped all the agents start working and sincronizing data. But if i
> start writing data in the data that has just been reconnected, all the
> data i put inside it is not sent to server and goes to conflict tables!
> First question: Can i do something about that?
> I tryied to do it all again but this time i've waited all the agents to
> finish syncronising the data writen when the subscriber was "down". This
> could be an acceptable procedure to me but I have to "tell" the normal
> user to that the agent has synconized everything and he can start
> writing on the subscriber.
> Second question: Is there a way to look at the agent status (not using
> enterprise manager!!)? I'm open minded to all kind of solutions...
> Running scripts, stored procedures, writing my own small program (maybe
> using some libraries... maybe RMO?).
> And Thank you in advance for any
> feedback
>
Tuesday, March 20, 2012
Accessing (writing into) Terdata by ado.net and SSIS
Hello everybody,
my name is Christof and I#m currently trying to write into our Terdata Warehouse by SSIS. In the Management Studio we can perfectly access Terdata - reading from it - but we actually see no way writing back Data into that system. Is there any hidden feature, any configuration menu that we had′nt seen so far?.
In the software documentation we found a tip "ADO.NET" as Data Destination is′nt imlemented for now - please wait until ....
I′m asking me if someone has had the same problem before and could help me out with a little tip.
thx in advance!
Christof
Moved to the SSIS forum. It doesn't sound like you're having a problem with ADO.NET itself, but rather how to get SSIS to do what you want, so I think this is the best place to start.
Thanks,
Sarah
Accessing (writing into) Terdata by ado.net and SSIS
Hello everybody,
my name is Christof and I#m currently trying to write into our Terdata Warehouse by SSIS. In the Management Studio we can perfectly access Terdata - reading from it - but we actually see no way writing back Data into that system. Is there any hidden feature, any configuration menu that we had′nt seen so far?.
In the software documentation we found a tip "ADO.NET" as Data Destination is′nt imlemented for now - please wait until ....
I′m asking me if someone has had the same problem before and could help me out with a little tip.
thx in advance!
Christof
Good luck with non-SQL Server destinations.Read through here for tips: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=106559&SiteID=1
Tuesday, March 6, 2012
Access to different databases in different domains
there are several SQL-Server 2000 databases within a company located
on different servers in different domains. On every database you can
find the same table X.
I want to merge these tables X (UNION query) and print the result with
a Crystal Report.
Unfortunately I only have little knowledge on security, domains,
distributed applications.
Thanks for help.Have you checked Linked Servers?
--
Jack Vamvas
___________________________________
Need an IT job? http://www.itjobfeed.com
"Josef Meierhofer" <jmeierhofer@.gmx.comwrote in message
news:hga623l6c1v4fbghk7rbmp7omuaplp6tn0@.4ax.com...
Quote:
Originally Posted by
Hi everybody,
>
there are several SQL-Server 2000 databases within a company located
on different servers in different domains. On every database you can
find the same table X.
>
I want to merge these tables X (UNION query) and print the result with
a Crystal Report.
>
Unfortunately I only have little knowledge on security, domains,
distributed applications.
>
Thanks for help.
>
>
Quote:
Originally Posted by
there are several SQL-Server 2000 databases within a company located
on different servers in different domains. On every database you can
find the same table X.
>
I want to merge these tables X (UNION query) and print the result with
a Crystal Report.
>
Unfortunately I only have little knowledge on security, domains,
distributed applications.
The query as such is not tricky:
SELECT ...
FROM SERVER1.db.dbo.tbl
WHERE ...
UNION ALL
SELECT ...
FROM SERVER2.db.dbo.tbl
WHERE ...
UNION ALL
...
The problem may be with setting up the linked servers. You use
sp_addlinkedserver and sp_addlinkedsrvlogin. Supposedly there is a DBA
around with whom you can discuss how to do this.
--
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pr...oads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodin...ions/books.mspx
Sunday, February 19, 2012
Access otehr sql server ina domain w/ Query Analyzer
Hi everybody,
I do not know if this is the correct area to post this topic? So, How to access
different sql server with query analyzer? Usually, when to install sql server, it
access the database server locally installed, now I like to access other sql server
within a domain using query analyzer. How to configure this in order I could use
query analyzer to access other sql server within a domain? Thanks in advanced.
den2005
Simply choose Connect from the menu and connect to a different server. If you want to you another server in your query you can setup a linked server whereas you can query across different servers in one query.HTH, jens Suessmeyer.