Showing posts with label reference. Show all posts
Showing posts with label reference. Show all posts

Monday, March 26, 2012

MSrepl_identity_range in publisher and distribution DBs

Can anyone shed any light on why this table exists in both the publication DB AND the distribution DB. The reference material just says:

The MSrepl_identity_range table provides identity range management support. This table is stored in the publication, distribution and subscription databases

However,doesn't shed any light on WHY it is in each database.

For merge replication which one should I be looking at to determine the next seed value?

Assuming I am looking at the appropriate records in the distribution db (where publication_db = my publication db) should the values be identical to the values in the MSrepl_identity_range table in the publication db?

Ok.

It looks to me as if the table in the publication database serves no useful purpose.

The next_seed value in the distribution table is updated to reflect the starting point for the next range (regardless of whether it is the publisher or a subscriber that is being allocated a new range) While the next_seed value in the publication database never changes...

|||

In the publication database it is for the range assigned to table which could be in other publications.

The one in the distribution database is used as a point of reference when assigning new ranges to subscribers. This is done to ensure that the range is never assigned to two nodes in your replication topology.

Did you review this article?

http://www.simple-talk.com/sql/database-administration/the-identity-crisis-in-replication/

|||

Thanks.

I'm still not clear on what purpose the table in the publication database serves since it doesn't appear to ever be updated. The table in the distribution database keeps track of the last_seed value. I'm assuming that the tabvle in the publication db would be used for a different type of replication (transactional replication perhaps?)

As a work-around I created a script that re-seeds the identity in the publication database (to a value that should be greater than any record created on any existing subscriber) and adjusts the next_seed value to reflect this (by calling sp_adjustpublisheridentityrange). When each subscriber next synchronises they will follow that up with a re-initialisation (so they get assigned a new range starting from my new next_seed value. Once all subscribers have been re-initialised we shouldn't get any more clashes.

This workaround is purely to avoid having to bring all of the remote subscribers back in at the same time : the 'ideal' fix I think would be to synch all subscribers, drop the publication, reseed the identity on the publisher, re-create the publication and initialise all subscribers. It's just that this is a major disruption to the subscribers (who are spread out over a large geographic region).

sql

Monday, March 12, 2012

msg 1936, can't find in documentation

Hi,
One of our team has come across the following message, I can't find
reference
to it anywhere, any suggestions?:
"Server: Msg 1936, Level 16, State 1, Line 1
Cannot index the view 'Albert_Heijn_LOAD.dbo.v_Supplier'. It contains one or
more disallowed constructs."Seems like you try to create an index on a view, where the view contain some construct which is
disallowed, quite simply.
--
Tibor Karaszi, SQL Server MVP
Archive at: http://groups.google.com/groups?oi=djq&as ugroup=microsoft.public.sqlserver
"Stressed" <k@.c.co.uk> wrote in message news:OMJgF0wlDHA.1740@.TK2MSFTNGP12.phx.gbl...
> Hi,
> One of our team has come across the following message, I can't find
> reference
> to it anywhere, any suggestions?:
> "Server: Msg 1936, Level 16, State 1, Line 1
> Cannot index the view 'Albert_Heijn_LOAD.dbo.v_Supplier'. It contains one or
> more disallowed constructs."
>|||I'd gathered that something was not allowed, just that there was no further
reference to it in BOL or on the web.
Turns out that the user was trying to use a computed column, which was
non-deterministic.
"Tibor Karaszi" <tibor.please_reply_to_public_forum.karaszi@.cornerstone.se>
wrote in message news:OwMDw4wlDHA.2068@.TK2MSFTNGP09.phx.gbl...
> Seems like you try to create an index on a view, where the view contain
some construct which is
> disallowed, quite simply.
> --
> Tibor Karaszi, SQL Server MVP
> Archive at: http://groups.google.com/groups?oi=djq&as
ugroup=microsoft.public.sqlserver
>
> "Stressed" <k@.c.co.uk> wrote in message
news:OMJgF0wlDHA.1740@.TK2MSFTNGP12.phx.gbl...
> > Hi,
> >
> > One of our team has come across the following message, I can't find
> > reference
> >
> > to it anywhere, any suggestions?:
> >
> > "Server: Msg 1936, Level 16, State 1, Line 1
> >
> > Cannot index the view 'Albert_Heijn_LOAD.dbo.v_Supplier'. It contains
one or
> > more disallowed constructs."
> >
> >
>

Friday, March 9, 2012

Msft Access, SQL Server support for Volume ShadowCopy Service (VSS)

Can anyone point me at some reference material on Microsoft Access' support
for the Volume ShadowCopy Service in WinXP Pro and Win2003 Server, please?
I am particularly interested in any information on backup of open databases
and whether the standard Microsoft OS software-based snapshot copy support
provides more than "crash-consitent" backup support (i.e., VSS "Writer"
support) for Access / SQL databases at various software release levels.
If Access doesn't support VSS, can anyone tell me whether MSDE (aka SQL
Server Lite) has VSS "Writer" support? What versions of SQL Server
provide VSS support for open databases?
Please respond to the newsgroup. Thanks in advance for any assistance.
KenThis is a multi-part message in MIME format.
--020502030000090800080205
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Ken L wrote:
> Can anyone point me at some reference material on Microsoft Access' support
> for the Volume ShadowCopy Service in WinXP Pro and Win2003 Server, please?
> I am particularly interested in any information on backup of open databases
> and whether the standard Microsoft OS software-based snapshot copy support
> provides more than "crash-consitent" backup support (i.e., VSS "Writer"
> support) for Access / SQL databases at various software release levels.
> If Access doesn't support VSS, can anyone tell me whether MSDE (aka SQL
> Server Lite) has VSS "Writer" support? What versions of SQL Server
> provide VSS support for open databases?
> Please respond to the newsgroup. Thanks in advance for any assistance.
> Ken
>
>
I don't know about Access, but maybe this link can help you with MS SQL
Server
http://www.microsoft.com/technet/prodtechnol/sql/2005/sqlwriter.mspx
Regards
Steen Schlüter Persson
Databaseadministrator / Systemadministrator
--020502030000090800080205
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Ken L wrote:
<blockquote cite="miduXbWtwFoGHA.4232@.TK2MSFTNGP02.phx.gbl" type="cite">
<pre wrap="">Can anyone point me at some reference material on Microsoft Access' support
for the Volume ShadowCopy Service in WinXP Pro and Win2003 Server, please?
I am particularly interested in any information on backup of open databases
and whether the standard Microsoft OS software-based snapshot copy support
provides more than "crash-consitent" backup support (i.e., VSS "Writer"
support) for Access / SQL databases at various software release levels.
If Access doesn't support VSS, can anyone tell me whether MSDE (aka SQL
Server Lite) has VSS "Writer" support? What versions of SQL Server
provide VSS support for open databases?
Please respond to the newsgroup. Thanks in advance for any assistance.
Ken
</pre>
</blockquote>
<font size="-1"><font face="Arial">I don't know about Access, but maybe
this link can help you with MS SQL Server<br>
<br>
<a class="moz-txt-link-freetext" href="http://links.10026.com/?link=http://www.microsoft.com/technet/prodtechnol/sql/2005/sqlwriter.mspx</a><br>">http://www.microsoft.com/technet/prodtechnol/sql/2005/sqlwriter.mspx">http://www.microsoft.com/technet/prodtechnol/sql/2005/sqlwriter.mspx</a><br>
<br>
<br>
-- <br>
Regards<br>
Steen Schlüter Persson<br>
Databaseadministrator / Systemadministrator<br>
</font></font>
</body>
</html>
--020502030000090800080205--