Showing posts with label user. Show all posts
Showing posts with label user. Show all posts

Friday, March 23, 2012

Merge Replication structural change

Hi

Created a table User with the fields of Uname varchar(30) and pwd varchar(30) in SQL server 2005.

I need to create a publication and Merge subscription with the below structural changes

User table with the fields of Uname varchar(25) and pwd carchar(30).

The publication table having the Uname varchar(30) but we change this to the subscription table as Uname varchar(25).

Is it possible? If you, please give the details.

Thanks.

Hello,

Is it intended to have different size of Uname? Otherwise, please try to ALTER COLUMN Uname to varchar(25) on the publisher side and this change should be populated to the subscriber side.

Thanks.

This posting is provided AS IS with no warranties, and confers no rights

|||

Hi

Thanks for your reply.

I don't want to change this structural change in publication side. I need this change in subscription side only. so that i keep my Db with original structure and i changed the subscription db with modified structure.

|||as a workaround, you can alter table ..varchar(25), propagate the changes, then set @.replicate_ddl to 0, and alter your table back to varchar(30).|||

Thanks Greg I got some idea from your reply.

If I have only one subscription means this is OK. but I am creating multiple subscription at any time.

Here is my complete requirement.

I have two publications. there is some difference in these two publications.

I am creating subscription from WinMobile device. I configure the publication name there. So that it refer the corresponding publication. These two publications are refer same tables but there is some article changes. I don't want to change the structure in both. I need to change this in one publication and the other one having the same as the DB structure.

The users subscribe the publication at any time. so we are not able to alter the tables each and every time.

Thanks again.

|||I would say you have a design issue then. Replication is used primarily to keep data in sync in multiple locations, if the column sizes must be different between data and source, you can try the workaround I mentioned above or fix your apps so that the schemas are always consistent.|||OK Greg. Thanks.

Merge Replication structural change

Hi

Created a table User with the fields of Uname varchar(30) and pwd varchar(30) in SQL server 2005.

I need to create a publication and Merge subscription with the below structural changes

User table with the fields of Uname varchar(25) and pwd carchar(30).

The publication table having the Uname varchar(30) but we change this to the subscription table as Uname varchar(25).

Is it possible? If you, please give the details.

Thanks.

Hello,

Is it intended to have different size of Uname? Otherwise, please try to ALTER COLUMN Uname to varchar(25) on the publisher side and this change should be populated to the subscriber side.

Thanks.

This posting is provided AS IS with no warranties, and confers no rights

|||

Hi

Thanks for your reply.

I don't want to change this structural change in publication side. I need this change in subscription side only. so that i keep my Db with original structure and i changed the subscription db with modified structure.

|||as a workaround, you can alter table ..varchar(25), propagate the changes, then set @.replicate_ddl to 0, and alter your table back to varchar(30).|||

Thanks Greg I got some idea from your reply.

If I have only one subscription means this is OK. but I am creating multiple subscription at any time.

Here is my complete requirement.

I have two publications. there is some difference in these two publications.

I am creating subscription from WinMobile device. I configure the publication name there. So that it refer the corresponding publication. These two publications are refer same tables but there is some article changes. I don't want to change the structure in both. I need to change this in one publication and the other one having the same as the DB structure.

The users subscribe the publication at any time. so we are not able to alter the tables each and every time.

Thanks again.

|||I would say you have a design issue then. Replication is used primarily to keep data in sync in multiple locations, if the column sizes must be different between data and source, you can try the workaround I mentioned above or fix your apps so that the schemas are always consistent.|||OK Greg. Thanks.

Merge Replication Question

This is for SQL MOBILE:

We are looking into using merge replication for our project.

Right now we have a set up that whenever a user logs in it creates a publication with specific filters based on the user's configuration settings and permissions.

The publication is created and a snapshot is generated, I run the replication monitor and open up the subscription that is downloading data from the publication.

The subscription downloads data just fine and when I push a new snapshot the subscription only downloads the changes.

Here's my question:

When I made a change on the database server and did NOT push a new snapshot and the subscriber tried to download from the publication, instead of downloading nothing (since no snapshot was pushed hence the data in the snapshot is unchanged) it downloaded everything (by everything I mean everything on the snapshot).

So can someone explain to me how this is supposed to work?

To my understanding the subscriber gets data from the snapshots.

Situation:

new snapshot (10,000 rows) - Subscriber reports (10,000 inserts).

changed data and push new snapshot (30 changes) - Subscriber reports (30 inserts)

changed data and NO snapshot - Subscriber reports (10,000 inserts).

PS. I do not reinitialize a subscription.

I think your point of confusion is in your statement "the subscriber gets data from the snapshots".

The snapshot contains a moment-in-time image of tables, constraints, and data from a publication.

During replication, the subscriber is first compared against the latest snapshot to ensure he is at the

right generation of schema and at some point in the past, received the moment-in-time data the snapshot

contains. After that, any new changes on the publisher are sent to the subscriber, followed finally by

changes on the subscriber being uploaded.

So your subscription gets compared to the snapshot and then received all the changes on the server since

the last time the subscriber synchronized.

Darren

|||Thank you.

Wednesday, March 7, 2012

Merge replication error

Hi,
I got this error from my SQL Server in merge replication:
[298] SQLServer Error: 8198, Could not obtain information about Windows NT
group/user 'DESIG\CHarchaoui'. [SQLSTATE 42000] (ConnIsLoginSysAdmin)
help please
Regards
is your merge agent on your subscriber listed in the PAL?
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
"chouaib harchaoui" <chouaibharchaoui@.discussions.microsoft.com> wrote in
message news:83785A78-D0B0-437A-9430-7284A260952B@.microsoft.com...
> Hi,
> I got this error from my SQL Server in merge replication:
> [298] SQLServer Error: 8198, Could not obtain information about Windows NT
> group/user 'DESIG\CHarchaoui'. [SQLSTATE 42000] (ConnIsLoginSysAdmin)
> help please
> Regards
>
|||Hilary ,
i'm a new DBA and is my first replication,
PAL?
"Hilary Cotter" wrote:

> is your merge agent on your subscriber listed in the PAL?
> --
> Hilary Cotter
> Looking for a SQL Server replication book?
> http://www.nwsu.com/0974973602.html
>
> "chouaib harchaoui" <chouaibharchaoui@.discussions.microsoft.com> wrote in
> message news:83785A78-D0B0-437A-9430-7284A260952B@.microsoft.com...
>
>
|||Publication Access List - available on the publication properties. Basically
this is a list of the logins that are granted access to the publication.
When a user or replication agent attempts to log in to a Publisher, SQL
Server 2000 first checks to see if the login is in the PAL
HTH,
Paul Ibison
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
|||Thank's, now my replication start but i have some problems in merge agent,
because i have one table with a column data type : Timestamp , how change
this data type with another.
help me please .
"Paul Ibison" wrote:

> Publication Access List - available on the publication properties. Basically
> this is a list of the logins that are granted access to the publication.
> When a user or replication agent attempts to log in to a Publisher, SQL
> Server 2000 first checks to see if the login is in the PAL
> HTH,
> Paul Ibison
> (recommended sql server 2000 replication book:
> http://www.nwsu.com/0974973602p.html)
>
>

Merge Replication Error

Dear Friends
I am getting the following error for the Merge
replication.
Login failed for user '(null)'. Reason: Not associated
with a trusted SQL Server connection.
(Source: SERVER (Data source); Error number: 18452)
The process could not connect to Subscriber 'SERVER'.
(Source: SERVER (Agent); Error number: 20084)
----
Login failed for user '(null)'. Reason: Not associated
with a trusted SQL Server connection.
(Source: SERVER (Data source); Error number: 18452)
----
I can connect to the Server with Enterprise manager and
also with OSQL. Please suggest what can be the problem.
Best regards
Sharad
Your sql server agent is runing using the defaulot system account you have
to make a user in sql server and assign this user to load sqlserver agents.
do this to both the server so that the agent of publisher can connect to
agent of subscriber.
regards
Kashif
"Sharad" <Niitmalad@.yahoo.co.in> wrote in message
news:1f8901c5103b$460dc6b0$a601280a@.phx.gbl...
> Dear Friends
> I am getting the following error for the Merge
> replication.
> Login failed for user '(null)'. Reason: Not associated
> with a trusted SQL Server connection.
> (Source: SERVER (Data source); Error number: 18452)
> The process could not connect to Subscriber 'SERVER'.
> (Source: SERVER (Agent); Error number: 20084)
> ----
> ----
> Login failed for user '(null)'. Reason: Not associated
> with a trusted SQL Server connection.
> (Source: SERVER (Data source); Error number: 18452)
> ----
> ----
> I can connect to the Server with Enterprise manager and
> also with OSQL. Please suggest what can be the problem.
> Best regards
> Sharad
|||Dear Kashif
Thanks for your quick reply. Kindly suggest if i have
diffrent domains then how the same problem can be solved.
Best regards
Sharad

>--Original Message--
>Your sql server agent is runing using the defaulot
system account you have
>to make a user in sql server and assign this user to
load sqlserver agents.
>do this to both the server so that the agent of
publisher can connect to[vbcol=seagreen]
>agent of subscriber.
>regards
>Kashif
>
>"Sharad" <Niitmalad@.yahoo.co.in> wrote in message
>news:1f8901c5103b$460dc6b0$a601280a@.phx.gbl...
--[vbcol=seagreen]
--
>
>.
>