Showing posts with label number. Show all posts
Showing posts with label number. Show all posts

Monday, March 26, 2012

Merge Agent System Stored Procedures and sp_Recompile

Hello,

We are trying to be proactive and stop a potential performance issue by reducing the number of recompiles in our SQL 2000 database application. This database is replicated. After viewing output from Profiler and PerfMon it seems that over 90% of the recompiles are due to system stored procedures generated by replication merge agents. Can anything be done about this?

Thanks

Can you be more specific - which procs, and under what conditions?|||The databases are setup to use push merge replication with the polling interval set to every 15 seconds. It is replicating 4 databases to one subscriber. The procs that are involved are the ones generated by the merge agent when you set up replication. Hope this helps!|||Thanks Candice, but merge replication involves many many procs, including triggers. Can you please be more specific about which ones? And is this occuring at the publisher, or subscriber?

Merge Agent error number 53 for replication

Hi, I am trying to setup replication between 2 SQL Servers across
non-trusted domains(2 different domains). I am able to successfully
registered both SQL servers in either domains. But I still cannot access the
snapshot folder in the Distributor/Publisher domain from the subscriber
domain.
* I've create the same SQL login: SQLAdmin and use this SQL authentication
on both the distributor and subscriber to interact with each other. They can
access each other fine, accept the subscriber cannot access the snapshot
folder on the distributor.
* I've given the Snapshot folder UNC path and Administrative share the
everyone permission.
********
I've read these Microsoft documents already:
Q321822 - Replicate between computers running SQL Server in Non-Trusted
Domains or Across the Internet.
Q240688 - Replication Subscribers Unable to Synchronize with Pull
Subscription.
Objective: I cannot create a pass-through account because the Distributor is
installed upon a Win2k Domain controller (with active directory), but I have
use SQL authentication on both SQL Server, but it still cannot access the
snapshot folder. All I need is for the subscriber to access the snapshot
folder. What do I need to do? Please list the steps, thanks...
****************************************
*****
The schema script
'\\Mercury\REPLDATA\unc\MERCURY$MERCURY_
Northwind_NorthwindMercuryPub1\20040
311181629\snapshot.pre' could not be propagated to the subscriber.
****************************
The schema script
'\\Mercury\REPLDATA\unc\MERCURY$MERCURY_
Northwind_NorthwindMercuryPub1\20040
311181629\snapshot.pre' could not be propagated to the subscriber.
(Source: Merge Replication Provider (Agent); Error number: -2147201001)
----
--
The process could not read file
'\\Mercury\REPLDATA\unc\MERCURY$MERCURY_
Northwind_NorthwindMercuryPub1\20040
311181629\snapshot.pre' due to OS error 53.
(Source: ECSWEB (Agent); Error number: 0)
----
--
The network path was not found.
(Source: (OS); Error number: 53)
----
--
*************************
The schema script '\\MERCURY\G$\Program Files\Microsoft SQL
Server\MSSQL$MERCURY\ReplData\unc\MERCUR
Y$MERCURY_Northwind_NorthwindMercury
Pub1\20040306225703\snapshot.pre' could not be propagated to the subscriber.
*************************
The schema script '\\MERCURY\G$\Program Files\Microsoft SQL
Server\MSSQL$MERCURY\ReplData\unc\MERCUR
Y$MERCURY_Northwind_NorthwindMercury
Pub1\20040306225703\snapshot.pre' could not be propagated to the subscriber.
(Source: Merge Replication Provider (Agent); Error number: -2147201001)
----
--
The process could not read file '\\MERCURY\G$\Program Files\Microsoft SQL
Server\MSSQL$MERCURY\ReplData\unc\MERCUR
Y$MERCURY_Northwind_NorthwindMercury
Pub1\20040306225703\snapshot.pre' due to OS error 53.
(Source: ECSWEB (Agent); Error number: 0)
----
--
The network path was not found.
(Source: (OS); Error number: 53)
----
--notice the unc path is completly wrong.
\\Mercury\REPLDATA\unc\MERCURY$MERCURY_N
orthwind_NorthwindMercuryPub1\200403
11181629\
its the dollar sign which I think is messing you up.
can you run run a net use * \\Mercury\REPLDATA on your subscriber and see if
you can map this drive. Then try to navigate upwards to the snapshot.pre
file?
Also if you could run this on your publisher/distributor and report back
here with what you get it will be helpful
select working_directory from msdb.dbo.MSdistpublishers
"Joe Mine" <huytuanattpgdotcomdotau> wrote in message
news:#ONwfV3BEHA.576@.TK2MSFTNGP11.phx.gbl...
> Hi, I am trying to setup replication between 2 SQL Servers across
> non-trusted domains(2 different domains). I am able to successfully
> registered both SQL servers in either domains. But I still cannot access
the
> snapshot folder in the Distributor/Publisher domain from the subscriber
> domain.
> * I've create the same SQL login: SQLAdmin and use this SQL authentication
> on both the distributor and subscriber to interact with each other. They
can
> access each other fine, accept the subscriber cannot access the snapshot
> folder on the distributor.
> * I've given the Snapshot folder UNC path and Administrative share the
> everyone permission.
> ********
> I've read these Microsoft documents already:
> Q321822 - Replicate between computers running SQL Server in Non-Trusted
> Domains or Across the Internet.
> Q240688 - Replication Subscribers Unable to Synchronize with Pull
> Subscription.
> Objective: I cannot create a pass-through account because the Distributor
is
> installed upon a Win2k Domain controller (with active directory), but I
have
> use SQL authentication on both SQL Server, but it still cannot access the
> snapshot folder. All I need is for the subscriber to access the snapshot
> folder. What do I need to do? Please list the steps, thanks...
>
> ****************************************
*****
> The schema script
>
'\\Mercury\REPLDATA\unc\MERCURY$MERCURY_
Northwind_NorthwindMercuryPub1\20040[col
or=darkred]
> 311181629\snapshot.pre' could not be propagated to the subscriber.
> ****************************
> The schema script
>[/color]
'\\Mercury\REPLDATA\unc\MERCURY$MERCURY_
Northwind_NorthwindMercuryPub1\20040[col
or=darkred]
> 311181629\snapshot.pre' could not be propagated to the subscriber.
> (Source: Merge Replication Provider (Agent); Error number: -2147201001)
> ----[/color]
--
> --
> The process could not read file
>
'\\Mercury\REPLDATA\unc\MERCURY$MERCURY_
Northwind_NorthwindMercuryPub1\20040[col
or=darkred]
> 311181629\snapshot.pre' due to OS error 53.
> (Source: ECSWEB (Agent); Error number: 0)
> ----[/color]
--
> --
> The network path was not found.
> (Source: (OS); Error number: 53)
> ----
--
> --
> *************************
> The schema script '\\MERCURY\G$\Program Files\Microsoft SQL
>
Server\MSSQL$MERCURY\ReplData\unc\MERCUR
Y$MERCURY_Northwind_NorthwindMercury[col
or=darkred]
> Pub1\20040306225703\snapshot.pre' could not be propagated to the[/color]
subscriber.
> *************************
> The schema script '\\MERCURY\G$\Program Files\Microsoft SQL
>
Server\MSSQL$MERCURY\ReplData\unc\MERCUR
Y$MERCURY_Northwind_NorthwindMercury[col
or=darkred]
> Pub1\20040306225703\snapshot.pre' could not be propagated to the[/color]
subscriber.
> (Source: Merge Replication Provider (Agent); Error number: -2147201001)
> ----
--
> --
> The process could not read file '\\MERCURY\G$\Program Files\Microsoft SQL
>
Server\MSSQL$MERCURY\ReplData\unc\MERCUR
Y$MERCURY_Northwind_NorthwindMercury[col
or=darkred]
> Pub1\20040306225703\snapshot.pre' due to OS error 53.
> (Source: ECSWEB (Agent); Error number: 0)
> ----[/color]
--
> --
> The network path was not found.
> (Source: (OS); Error number: 53)
> ----
--
> --
>
>|||Hilary,
I just ran the select working_directory on the Distributor and this
is the results:
working_directory
\\Mercury\REPLDATA
\\Mercury\REPLDATA
\\Mercury\REPLDATA
\\MERCURY\G$\Program Files\Microsoft SQL Server\MSSQL$MERCURY\ReplData
Yes I can net use * \\Mercury \REPLDATA and navigate to the snapshot.pre
file.
Regards
"Hilary Cotter" <hilaryk@.att.net> wrote in message
news:uPeVrH#BEHA.2404@.TK2MSFTNGP11.phx.gbl...
> notice the unc path is completly wrong.
>
\\Mercury\REPLDATA\unc\MERCURY$MERCURY_N
orthwind_NorthwindMercuryPub1\200403[col
or=darkred]
> 11181629\
> its the dollar sign which I think is messing you up.
> can you run run a net use * \\Mercury\REPLDATA on your subscriber and see[/color]
if
> you can map this drive. Then try to navigate upwards to the snapshot.pre
> file?
> Also if you could run this on your publisher/distributor and report back
> here with what you get it will be helpful
> select working_directory from msdb.dbo.MSdistpublishers
>
> "Joe Mine" <huytuanattpgdotcomdotau> wrote in message
> news:#ONwfV3BEHA.576@.TK2MSFTNGP11.phx.gbl...
> the
authentication
> can
Distributor
> is
> have
the
>
'\\Mercury\REPLDATA\unc\MERCURY$MERCURY_
Northwind_NorthwindMercuryPub1\20040[col
or=darkred]
>
'\\Mercury\REPLDATA\unc\MERCURY$MERCURY_
Northwind_NorthwindMercuryPub1\20040[col
or=darkred]
> ----
> --
>
'\\Mercury\REPLDATA\unc\MERCURY$MERCURY_
Northwind_NorthwindMercuryPub1\20040[col
or=darkred]
> ----
> --
> ----
> --
>[/color]
Server\MSSQL$MERCURY\ReplData\unc\MERCUR
Y$MERCURY_Northwind_NorthwindMercury[col
or=darkred]
> subscriber.
>[/color]
Server\MSSQL$MERCURY\ReplData\unc\MERCUR
Y$MERCURY_Northwind_NorthwindMercury[col
or=darkred]
> subscriber.
> ----
> --
SQL
>
Server\MSSQL$MERCURY\ReplData\unc\MERCUR
Y$MERCURY_Northwind_NorthwindMercury[col
or=darkred]
> ----
> --
> ----
> --
>[/color]|||Now I even got error no: 1326
The schema script
'\\Mercury\REPLDATA\unc\MERCURY$MERCURY_
Northwind_NorthwindMercuryPub1\20040
311181629\snapshot.pre' could not be propagated to the subscriber.
(Source: Merge Replication Provider (Agent); Error number: -2147201001)
----
--
The process could not read file
'\\Mercury\REPLDATA\unc\MERCURY$MERCURY_
Northwind_NorthwindMercuryPub1\20040
311181629\snapshot.pre' due to OS error 1326.
(Source: ECSWEB (Agent); Error number: 0)
----
--
Logon failure: unknown user name or bad password.
(Source: (OS); Error number: 1326)
----
--
"Joe Mine" <huytuanattpgdotcomdotau> wrote in message
news:#8btBY#BEHA.3784@.TK2MSFTNGP10.phx.gbl...
> Hilary,
> I just ran the select working_directory on the Distributor and
this
> is the results:
> working_directory
> \\Mercury\REPLDATA
> \\Mercury\REPLDATA
> \\Mercury\REPLDATA
> \\MERCURY\G$\Program Files\Microsoft SQL Server\MSSQL$MERCURY\ReplData
>
> Yes I can net use * \\Mercury \REPLDATA and navigate to the snapshot.pre
> file.
> Regards
>
>
> "Hilary Cotter" <hilaryk@.att.net> wrote in message
> news:uPeVrH#BEHA.2404@.TK2MSFTNGP11.phx.gbl...
>
\\Mercury\REPLDATA\unc\MERCURY$MERCURY_N
orthwind_NorthwindMercuryPub1\200403[col
or=darkred]
see
> if
access
subscriber
> authentication
They
snapshot
Non-Trusted
> Distributor
I
> the
snapshot
>
'\\Mercury\REPLDATA\unc\MERCURY$MERCURY_
Northwind_NorthwindMercuryPub1\20040[col
or=darkred]
>
'\\Mercury\REPLDATA\unc\MERCURY$MERCURY_
Northwind_NorthwindMercuryPub1\20040[col
or=darkred]
number: -2147201001)
> ----
>
'\\Mercury\REPLDATA\unc\MERCURY$MERCURY_
Northwind_NorthwindMercuryPub1\20040[col
or=darkred]
> ----
> ----
>
Server\MSSQL$MERCURY\ReplData\unc\MERCUR
Y$MERCURY_Northwind_NorthwindMercury[col
or=darkred]
>[/color]
Server\MSSQL$MERCURY\ReplData\unc\MERCUR
Y$MERCURY_Northwind_NorthwindMercury[col
or=darkred]
number: -2147201001)
> ----
> SQL
>
Server\MSSQL$MERCURY\ReplData\unc\MERCUR
Y$MERCURY_Northwind_NorthwindMercury[col
or=darkred]
> ----
> ----
>[/color]|||I take it you have moved to using SQL Server Standard security in your
enabled subscriber.
Is this account in the PAL for the publication. Right click on your
publication in the publication database, select publication properties, and
go to Publication Access List. The account you are using must be in the
server administrator role on the subscriber, and in the dbo role on the
publication database. It also must be present in the PAL.
Also verify that the password you are using is correct. To do this, go to
Tools-Replication-Configure Publishers, Distributors, Subscribers, click on
the Subscribers tab, and locate your Subscriber. Then click on the browse
button to the right of your Subscribers, and then in the Use SQL Server
Authentication enter the correct information.
"Joe Mine" <huytuanattpgdotcomdotau> wrote in message
news:OeNZV$$BEHA.1588@.tk2msftngp13.phx.gbl...
> Now I even got error no: 1326
>
> The schema script
>
'\\Mercury\REPLDATA\unc\MERCURY$MERCURY_
Northwind_NorthwindMercuryPub1\20040[col
or=darkred]
> 311181629\snapshot.pre' could not be propagated to the subscriber.
> (Source: Merge Replication Provider (Agent); Error number: -2147201001)
> ----[/color]
--
> --
> The process could not read file
>
'\\Mercury\REPLDATA\unc\MERCURY$MERCURY_
Northwind_NorthwindMercuryPub1\20040[col
or=darkred]
> 311181629\snapshot.pre' due to OS error 1326.
> (Source: ECSWEB (Agent); Error number: 0)
> ----[/color]
--
> --
> Logon failure: unknown user name or bad password.
> (Source: (OS); Error number: 1326)
> ----
--
> --
> "Joe Mine" <huytuanattpgdotcomdotau> wrote in message
> news:#8btBY#BEHA.3784@.TK2MSFTNGP10.phx.gbl...
> this
snapshot.pre
>
\\Mercury\REPLDATA\unc\MERCURY$MERCURY_N
orthwind_NorthwindMercuryPub1\200403[col
or=darkred]
> see
snapshot.pre
back
> access
> subscriber
> They
> snapshot
the
> Non-Trusted
but
> I
access
> snapshot
>
'\\Mercury\REPLDATA\unc\MERCURY$MERCURY_
Northwind_NorthwindMercuryPub1\20040[col
or=darkred]
>
'\\Mercury\REPLDATA\unc\MERCURY$MERCURY_
Northwind_NorthwindMercuryPub1\20040[col
or=darkred]
> number: -2147201001)
> ----
>
'\\Mercury\REPLDATA\unc\MERCURY$MERCURY_
Northwind_NorthwindMercuryPub1\20040[col
or=darkred]
> ----
> ----
>[/color]
Server\MSSQL$MERCURY\ReplData\unc\MERCUR
Y$MERCURY_Northwind_NorthwindMercury[col
or=darkred]
>[/color]
Server\MSSQL$MERCURY\ReplData\unc\MERCUR
Y$MERCURY_Northwind_NorthwindMercury[col
or=darkred]
> number: -2147201001)
> ----
Files\Microsoft
>
Server\MSSQL$MERCURY\ReplData\unc\MERCUR
Y$MERCURY_Northwind_NorthwindMercury[col
or=darkred]
> ----
> ----
>[/color]

Merge Agent error number 53 for replication

Hi, I am trying to setup replication between 2 SQL Servers across
non-trusted domains(2 different domains). I am able to successfully
registered both SQL servers in either domains. But I still cannot access the
snapshot folder in the Distributor/Publisher domain from the subscriber
domain.
* I've create the same SQL login: SQLAdmin and use this SQL authentication
on both the distributor and subscriber to interact with each other. They can
access each other fine, accept the subscriber cannot access the snapshot
folder on the distributor.
* I've given the Snapshot folder UNC path and Administrative share the
everyone permission.
********
I've read these Microsoft documents already:
Q321822 - Replicate between computers running SQL Server in Non-Trusted
Domains or Across the Internet.
Q240688 - Replication Subscribers Unable to Synchronize with Pull
Subscription.
Objective: I cannot create a pass-through account because the Distributor is
installed upon a Win2k Domain controller (with active directory), but I have
use SQL authentication on both SQL Server, but it still cannot access the
snapshot folder. All I need is for the subscriber to access the snapshot
folder. What do I need to do? Please list the steps, thanks...
****************************************
*****
The schema script
'\\Mercury\REPLDATA\unc\MERCURY$MERCURY_
Northwind_NorthwindMercuryPub1\20040
311181629\snapshot.pre' could not be propagated to the subscriber.
****************************
The schema script
'\\Mercury\REPLDATA\unc\MERCURY$MERCURY_
Northwind_NorthwindMercuryPub1\20040
311181629\snapshot.pre' could not be propagated to the subscriber.
(Source: Merge Replication Provider (Agent); Error number: -2147201001)
----
--
The process could not read file
'\\Mercury\REPLDATA\unc\MERCURY$MERCURY_
Northwind_NorthwindMercuryPub1\20040
311181629\snapshot.pre' due to OS error 53.
(Source: ECSWEB (Agent); Error number: 0)
----
--
The network path was not found.
(Source: (OS); Error number: 53)
----
--
*************************
The schema script '\\MERCURY\G$\Program Files\Microsoft SQL
Server\MSSQL$MERCURY\ReplData\unc\MERCUR
Y$MERCURY_Northwind_NorthwindMercury
Pub1\20040306225703\snapshot.pre' could not be propagated to the subscriber.
*************************
The schema script '\\MERCURY\G$\Program Files\Microsoft SQL
Server\MSSQL$MERCURY\ReplData\unc\MERCUR
Y$MERCURY_Northwind_NorthwindMercury
Pub1\20040306225703\snapshot.pre' could not be propagated to the subscriber.
(Source: Merge Replication Provider (Agent); Error number: -2147201001)
----
--
The process could not read file '\\MERCURY\G$\Program Files\Microsoft SQL
Server\MSSQL$MERCURY\ReplData\unc\MERCUR
Y$MERCURY_Northwind_NorthwindMercury
Pub1\20040306225703\snapshot.pre' due to OS error 53.
(Source: ECSWEB (Agent); Error number: 0)
----
--
The network path was not found.
(Source: (OS); Error number: 53)
----
--OS Error 53 == Network Name not found.
Check for Name resolution problems with either WINS or DNS.
Verify you can get to the server from the client using the "net view
\\servername" command.
Thanks,
Kevin McDonnell
Microsoft Corporation
This posting is provided AS IS with no warranties, and confers no rights.|||notice the unc path is completly wrong.
\\Mercury\REPLDATA\unc\MERCURY$MERCURY_N
orthwind_NorthwindMercuryPub1\200403
11181629\
its the dollar sign which I think is messing you up.
can you run run a net use * \\Mercury\REPLDATA on your subscriber and see if
you can map this drive. Then try to navigate upwards to the snapshot.pre
file?
Also if you could run this on your publisher/distributor and report back
here with what you get it will be helpful
select working_directory from msdb.dbo.MSdistpublishers
"Joe Mine" <huytuanattpgdotcomdotau> wrote in message
news:#ONwfV3BEHA.576@.TK2MSFTNGP11.phx.gbl...
> Hi, I am trying to setup replication between 2 SQL Servers across
> non-trusted domains(2 different domains). I am able to successfully
> registered both SQL servers in either domains. But I still cannot access
the
> snapshot folder in the Distributor/Publisher domain from the subscriber
> domain.
> * I've create the same SQL login: SQLAdmin and use this SQL authentication
> on both the distributor and subscriber to interact with each other. They
can
> access each other fine, accept the subscriber cannot access the snapshot
> folder on the distributor.
> * I've given the Snapshot folder UNC path and Administrative share the
> everyone permission.
> ********
> I've read these Microsoft documents already:
> Q321822 - Replicate between computers running SQL Server in Non-Trusted
> Domains or Across the Internet.
> Q240688 - Replication Subscribers Unable to Synchronize with Pull
> Subscription.
> Objective: I cannot create a pass-through account because the Distributor
is
> installed upon a Win2k Domain controller (with active directory), but I
have
> use SQL authentication on both SQL Server, but it still cannot access the
> snapshot folder. All I need is for the subscriber to access the snapshot
> folder. What do I need to do? Please list the steps, thanks...
>
> ****************************************
*****
> The schema script
>
'\\Mercury\REPLDATA\unc\MERCURY$MERCURY_
Northwind_NorthwindMercuryPub1\20040[col
or=darkred]
> 311181629\snapshot.pre' could not be propagated to the subscriber.
> ****************************
> The schema script
>[/color]
'\\Mercury\REPLDATA\unc\MERCURY$MERCURY_
Northwind_NorthwindMercuryPub1\20040[col
or=darkred]
> 311181629\snapshot.pre' could not be propagated to the subscriber.
> (Source: Merge Replication Provider (Agent); Error number: -2147201001)
> ----[/color]
--
> --
> The process could not read file
>
'\\Mercury\REPLDATA\unc\MERCURY$MERCURY_
Northwind_NorthwindMercuryPub1\20040[col
or=darkred]
> 311181629\snapshot.pre' due to OS error 53.
> (Source: ECSWEB (Agent); Error number: 0)
> ----[/color]
--
> --
> The network path was not found.
> (Source: (OS); Error number: 53)
> ----
--
> --
> *************************
> The schema script '\\MERCURY\G$\Program Files\Microsoft SQL
>
Server\MSSQL$MERCURY\ReplData\unc\MERCUR
Y$MERCURY_Northwind_NorthwindMercury[col
or=darkred]
> Pub1\20040306225703\snapshot.pre' could not be propagated to the[/color]
subscriber.
> *************************
> The schema script '\\MERCURY\G$\Program Files\Microsoft SQL
>
Server\MSSQL$MERCURY\ReplData\unc\MERCUR
Y$MERCURY_Northwind_NorthwindMercury[col
or=darkred]
> Pub1\20040306225703\snapshot.pre' could not be propagated to the[/color]
subscriber.
> (Source: Merge Replication Provider (Agent); Error number: -2147201001)
> ----
--
> --
> The process could not read file '\\MERCURY\G$\Program Files\Microsoft SQL
>
Server\MSSQL$MERCURY\ReplData\unc\MERCUR
Y$MERCURY_Northwind_NorthwindMercury[col
or=darkred]
> Pub1\20040306225703\snapshot.pre' due to OS error 53.
> (Source: ECSWEB (Agent); Error number: 0)
> ----[/color]
--
> --
> The network path was not found.
> (Source: (OS); Error number: 53)
> ----
--
> --
>
>|||Hilary,
I just ran the select working_directory on the Distributor and this
is the results:
working_directory
\\Mercury\REPLDATA
\\Mercury\REPLDATA
\\Mercury\REPLDATA
\\MERCURY\G$\Program Files\Microsoft SQL Server\MSSQL$MERCURY\ReplData
Yes I can net use * \\Mercury \REPLDATA and navigate to the snapshot.pre
file.
Regards
"Hilary Cotter" <hilaryk@.att.net> wrote in message
news:uPeVrH#BEHA.2404@.TK2MSFTNGP11.phx.gbl...
> notice the unc path is completly wrong.
>
\\Mercury\REPLDATA\unc\MERCURY$MERCURY_N
orthwind_NorthwindMercuryPub1\200403[col
or=darkred]
> 11181629\
> its the dollar sign which I think is messing you up.
> can you run run a net use * \\Mercury\REPLDATA on your subscriber and see[/color]
if
> you can map this drive. Then try to navigate upwards to the snapshot.pre
> file?
> Also if you could run this on your publisher/distributor and report back
> here with what you get it will be helpful
> select working_directory from msdb.dbo.MSdistpublishers
>
> "Joe Mine" <huytuanattpgdotcomdotau> wrote in message
> news:#ONwfV3BEHA.576@.TK2MSFTNGP11.phx.gbl...
> the
authentication
> can
Distributor
> is
> have
the
>
'\\Mercury\REPLDATA\unc\MERCURY$MERCURY_
Northwind_NorthwindMercuryPub1\20040[col
or=darkred]
>
'\\Mercury\REPLDATA\unc\MERCURY$MERCURY_
Northwind_NorthwindMercuryPub1\20040[col
or=darkred]
> ----
> --
>
'\\Mercury\REPLDATA\unc\MERCURY$MERCURY_
Northwind_NorthwindMercuryPub1\20040[col
or=darkred]
> ----
> --
> ----
> --
>[/color]
Server\MSSQL$MERCURY\ReplData\unc\MERCUR
Y$MERCURY_Northwind_NorthwindMercury[col
or=darkred]
> subscriber.
>[/color]
Server\MSSQL$MERCURY\ReplData\unc\MERCUR
Y$MERCURY_Northwind_NorthwindMercury[col
or=darkred]
> subscriber.
> ----
> --
SQL
>
Server\MSSQL$MERCURY\ReplData\unc\MERCUR
Y$MERCURY_Northwind_NorthwindMercury[col
or=darkred]
> ----
> --
> ----
> --
>[/color]|||Now I even got error no: 1326
The schema script
'\\Mercury\REPLDATA\unc\MERCURY$MERCURY_
Northwind_NorthwindMercuryPub1\20040
311181629\snapshot.pre' could not be propagated to the subscriber.
(Source: Merge Replication Provider (Agent); Error number: -2147201001)
----
--
The process could not read file
'\\Mercury\REPLDATA\unc\MERCURY$MERCURY_
Northwind_NorthwindMercuryPub1\20040
311181629\snapshot.pre' due to OS error 1326.
(Source: ECSWEB (Agent); Error number: 0)
----
--
Logon failure: unknown user name or bad password.
(Source: (OS); Error number: 1326)
----
--
"Joe Mine" <huytuanattpgdotcomdotau> wrote in message
news:#8btBY#BEHA.3784@.TK2MSFTNGP10.phx.gbl...
> Hilary,
> I just ran the select working_directory on the Distributor and
this
> is the results:
> working_directory
> \\Mercury\REPLDATA
> \\Mercury\REPLDATA
> \\Mercury\REPLDATA
> \\MERCURY\G$\Program Files\Microsoft SQL Server\MSSQL$MERCURY\ReplData
>
> Yes I can net use * \\Mercury \REPLDATA and navigate to the snapshot.pre
> file.
> Regards
>
>
> "Hilary Cotter" <hilaryk@.att.net> wrote in message
> news:uPeVrH#BEHA.2404@.TK2MSFTNGP11.phx.gbl...
>
\\Mercury\REPLDATA\unc\MERCURY$MERCURY_N
orthwind_NorthwindMercuryPub1\200403[col
or=darkred]
see
> if
access
subscriber
> authentication
They
snapshot
Non-Trusted
> Distributor
I
> the
snapshot
>
'\\Mercury\REPLDATA\unc\MERCURY$MERCURY_
Northwind_NorthwindMercuryPub1\20040[col
or=darkred]
>
'\\Mercury\REPLDATA\unc\MERCURY$MERCURY_
Northwind_NorthwindMercuryPub1\20040[col
or=darkred]
number: -2147201001)
> ----
>
'\\Mercury\REPLDATA\unc\MERCURY$MERCURY_
Northwind_NorthwindMercuryPub1\20040[col
or=darkred]
> ----
> ----
>
Server\MSSQL$MERCURY\ReplData\unc\MERCUR
Y$MERCURY_Northwind_NorthwindMercury[col
or=darkred]
>[/color]
Server\MSSQL$MERCURY\ReplData\unc\MERCUR
Y$MERCURY_Northwind_NorthwindMercury[col
or=darkred]
number: -2147201001)
> ----
> SQL
>
Server\MSSQL$MERCURY\ReplData\unc\MERCUR
Y$MERCURY_Northwind_NorthwindMercury[col
or=darkred]
> ----
> ----
>[/color]|||I take it you have moved to using SQL Server Standard security in your
enabled subscriber.
Is this account in the PAL for the publication. Right click on your
publication in the publication database, select publication properties, and
go to Publication Access List. The account you are using must be in the
server administrator role on the subscriber, and in the dbo role on the
publication database. It also must be present in the PAL.
Also verify that the password you are using is correct. To do this, go to
Tools-Replication-Configure Publishers, Distributors, Subscribers, click on
the Subscribers tab, and locate your Subscriber. Then click on the browse
button to the right of your Subscribers, and then in the Use SQL Server
Authentication enter the correct information.
"Joe Mine" <huytuanattpgdotcomdotau> wrote in message
news:OeNZV$$BEHA.1588@.tk2msftngp13.phx.gbl...
> Now I even got error no: 1326
>
> The schema script
>
'\\Mercury\REPLDATA\unc\MERCURY$MERCURY_
Northwind_NorthwindMercuryPub1\20040[col
or=darkred]
> 311181629\snapshot.pre' could not be propagated to the subscriber.
> (Source: Merge Replication Provider (Agent); Error number: -2147201001)
> ----[/color]
--
> --
> The process could not read file
>
'\\Mercury\REPLDATA\unc\MERCURY$MERCURY_
Northwind_NorthwindMercuryPub1\20040[col
or=darkred]
> 311181629\snapshot.pre' due to OS error 1326.
> (Source: ECSWEB (Agent); Error number: 0)
> ----[/color]
--
> --
> Logon failure: unknown user name or bad password.
> (Source: (OS); Error number: 1326)
> ----
--
> --
> "Joe Mine" <huytuanattpgdotcomdotau> wrote in message
> news:#8btBY#BEHA.3784@.TK2MSFTNGP10.phx.gbl...
> this
snapshot.pre
>
\\Mercury\REPLDATA\unc\MERCURY$MERCURY_N
orthwind_NorthwindMercuryPub1\200403[col
or=darkred]
> see
snapshot.pre
back
> access
> subscriber
> They
> snapshot
the
> Non-Trusted
but
> I
access
> snapshot
>
'\\Mercury\REPLDATA\unc\MERCURY$MERCURY_
Northwind_NorthwindMercuryPub1\20040[col
or=darkred]
>
'\\Mercury\REPLDATA\unc\MERCURY$MERCURY_
Northwind_NorthwindMercuryPub1\20040[col
or=darkred]
> number: -2147201001)
> ----
>
'\\Mercury\REPLDATA\unc\MERCURY$MERCURY_
Northwind_NorthwindMercuryPub1\20040[col
or=darkred]
> ----
> ----
>[/color]
Server\MSSQL$MERCURY\ReplData\unc\MERCUR
Y$MERCURY_Northwind_NorthwindMercury[col
or=darkred]
>[/color]
Server\MSSQL$MERCURY\ReplData\unc\MERCUR
Y$MERCURY_Northwind_NorthwindMercury[col
or=darkred]
> number: -2147201001)
> ----
Files\Microsoft
>
Server\MSSQL$MERCURY\ReplData\unc\MERCUR
Y$MERCURY_Northwind_NorthwindMercury[col
or=darkred]
> ----
> ----
>[/color]|||All I need is for the subscriber to access the snapshot
folder. What do I need to do? Please list the steps, thanks...
****************************************
******************************
Sent via Fuzzy Software @. http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET
resources...sql

Monday, March 19, 2012

Memory Use

Hi there.
I have an application that connects to a SQL Server using ODBC (and
CRecordSets) to peruse and retrieve data from a number of large database
tables. As a result, SQL Server seems to be constantly using up a very large
amount of memory - even when my application doesn't seem to be doing anythin
g.
Q: Is this behaviour expected? The memory settings on the server are
configured to allow SQL Server to allocate the memory Dynamically, using the
total physical RAM.
Does SQL Server try to keep copies of database tables in memory if they've
been queried and the memory is available (in case they're queried again)? -
or should it relinquish that memory once the query has returned (implying
that my application must still have some connections/queries open)?
Any help would be appreciated!> I have an application that connects to a SQL Server using ODBC (and
> CRecordSets) to peruse and retrieve data from a number of large database
> tables. As a result, SQL Server seems to be constantly using up a very
> large
> amount of memory - even when my application doesn't seem to be doing
> anything.

> Q: Is this behaviour expected?
Yes. This behavior is expected, and is in fact, by design, on purpose:
Anything you SELECT is handed back to your application, but then SQL Server
holds that data in a cache, because it thinks that if you SELECT'ed it once,
you might do it again.
There are a couple things I know that you can do to reduce it:
1. Configure the server to use a specified maximum amount of RAM
2. Execute DBCC DROPCLEANBUFFERS to release some? most? of the cache
But be very careful about doing that on a production server. When you're a
developer (like me), you typically have sql server, IIS, outlook, visual
studio, enterprise manager, query analyser, outlook express, windows
explorer, and internet explorer all running at the same time, so this
becomes useful. If you fold back the memory on a production server, you
could very likely cripple the whole network, and wind up in the bosses
office for a meeting.
Guess how I know. <g>
Peace & happy computing,
Mike Labosh, MCSD MCT
Owner, vbSensei.Com
"Escriba coda ergo sum." -- vbSensei|||Great stuff thanks - that's just what I needed!
Actually, one more question... If SQL server is taking up a huge amount of
memory with this cached data, would that affect the performance of other
applications that may start up and need to use some of that memory? Will it
relinquish some of the memory without a struggle?
"Mike Labosh" wrote:

>
> Yes. This behavior is expected, and is in fact, by design, on purpose:
> Anything you SELECT is handed back to your application, but then SQL Serve
r
> holds that data in a cache, because it thinks that if you SELECT'ed it onc
e,
> you might do it again.
> There are a couple things I know that you can do to reduce it:
> 1. Configure the server to use a specified maximum amount of RAM
> 2. Execute DBCC DROPCLEANBUFFERS to release some? most? of the cache
> But be very careful about doing that on a production server. When you're
a
> developer (like me), you typically have sql server, IIS, outlook, visual
> studio, enterprise manager, query analyser, outlook express, windows
> explorer, and internet explorer all running at the same time, so this
> becomes useful. If you fold back the memory on a production server, you
> could very likely cripple the whole network, and wind up in the bosses
> office for a meeting.
> Guess how I know. <g>
> --
>
> Peace & happy computing,
> Mike Labosh, MCSD MCT
> Owner, vbSensei.Com
> "Escriba coda ergo sum." -- vbSensei
>
>|||SQL Server is very greedy about the memory it eats. ...Just imagine that
Tiger you saw on the Discovery Channel last w.
If you have other things that need to run on the same server where SQL is
installed, you need to administratively tell the different packages of
software how much memory, threads, etc. they are allowed to consume.
Example:
Server abc has SQL Server 2000 and IIS 4. I can set these up to behave
nicely by setting the specific maximum amount of RAM consumed by SQL, and I
can configure the RAM and Thread Pool of IIS within the IIS MMC console and
also the COM+ Console.
But I warn you again, Be VERY careful about doing that on a production
server. On a dev-box, nobody cares.
My laptop has 1 GB of memory, so I have SQL & IIS throttled WAY BACK. That
way, I have enough memory to develop applications in Visual Studio.NET,
check my mail, read these damn groups :) and still run Linux RedHat on a
virtual PC inside a window.
But nobody (hopefully) does that kind of stuff on a production server. If
you are talking about a production SQL Server, it should be setup to have
Dynamic Memory Allocation and eat all the RAM and CPU that it needs.
Peace & happy computing,
Mike Labosh, MCSD MCT
Owner, vbSensei.Com
"Escriba coda ergo sum." -- vbSensei

Memory usage in RS(ASP.NET worker process)

Hi all,

We have been experiencing a problem with a couple of our reports that a
number of people seem to have hit previously. Basically the issue is if
the report is over a certain size the ASP.NET worker process hits its
threshold (60%) and the process gets shut down. We have followed the
advice listed in some of the posts in increasing this threshold which
manages to get the report through but we still have a few concerns.

1. Why won't the process use virtual memory. It seems to be limted to
physical memory available and when we increased the threshold, if that
physical memory runs out we get an out of memory exception.

2. The memory doesn't appear to be being released, I would have
throught the garbage collection would kick in pretty soon after the
report was finished but watching the process the memory stays in use
for a large amount of time after the report has finised rendering, with
no new activity on the server.

3. How does this scale at all? I have seen the argument that reports of
this size are unfeasable, and agree to an extent... unfortunately our
clients don't and they need a system capable of delivering them all the
data, regardless of the size of the report. I also read a suggestion to
use DTS to deliver a csv file to the client, but this sounds like a one
off workaround, more than an ongoing process that say an end user could
intiate once a month (for a thousand or so different companies).


This leads me to my final concern.... We have observed that the memory
will pile up
, ie if the user kicks off one report it uses x amount...
if another user kicks off another report that will use an additional
amount of memory.... so even if the report isn't too big, it would only
take ten users running medium size reports to run the server out of
memory.... does anyone have any suggestions as to how we should cater
for this?

Thanks in advance
Greg

We are still having issues in this regard, does anyone have any insights?

Monday, March 12, 2012

memory usage - pages or KB?

I have read conflicting reports that the number in the memory usage column under Current Processes is the number of pages and that it is the number of KB of allocated memory. Which one is correct? Thanks
It's (8 KB) pages. See the documentation for sysprocesses (from which the
information in Enterprise Manager is derived) in BOL.
Where did you read the information that it was KB instead of pages btw?
Jacco Schalkwijk
SQL Server MVP
"J Jetson" <JJetson@.discussions.microsoft.com> wrote in message
news:37D533A5-479A-48E6-A12A-7CF2E83883FB@.microsoft.com...
>I have read conflicting reports that the number in the memory usage column
>under Current Processes is the number of pages and that it is the number of
>KB of allocated memory. Which one is correct? Thanks
|||A couple of people had told me that, and one of them referenced this page:
http://www.microsoft.com/technet/pro.../c03ppcsq.mspx
but more sources say it is the number of pages so I will stick with that. Thanks.
"Jacco Schalkwijk" wrote:

> It's (8 KB) pages. See the documentation for sysprocesses (from which the
> information in Enterprise Manager is derived) in BOL.
> Where did you read the information that it was KB instead of pages btw?
> --
> Jacco Schalkwijk
> SQL Server MVP
>
> "J Jetson" <JJetson@.discussions.microsoft.com> wrote in message
> news:37D533A5-479A-48E6-A12A-7CF2E83883FB@.microsoft.com...
>
>

memory usage - pages or KB?

I have read conflicting reports that the number in the memory usage column u
nder Current Processes is the number of pages and that it is the number of K
B of allocated memory. Which one is correct? ThanksIt's (8 KB) pages. See the documentation for sysprocesses (from which the
information in Enterprise Manager is derived) in BOL.
Where did you read the information that it was KB instead of pages btw?
Jacco Schalkwijk
SQL Server MVP
"J Jetson" <JJetson@.discussions.microsoft.com> wrote in message
news:37D533A5-479A-48E6-A12A-7CF2E83883FB@.microsoft.com...
>I have read conflicting reports that the number in the memory usage column
>under Current Processes is the number of pages and that it is the number of
>KB of allocated memory. Which one is correct? Thanks|||A couple of people had told me that, and one of them referenced this page:
http://www.microsoft.com/technet/pr...s/c03ppcsq.mspx
but more sources say it is the number of pages so I will stick with that. Th
anks.
"Jacco Schalkwijk" wrote:

> It's (8 KB) pages. See the documentation for sysprocesses (from which the
> information in Enterprise Manager is derived) in BOL.
> Where did you read the information that it was KB instead of pages btw?
> --
> Jacco Schalkwijk
> SQL Server MVP
>
> "J Jetson" <JJetson@.discussions.microsoft.com> wrote in message
> news:37D533A5-479A-48E6-A12A-7CF2E83883FB@.microsoft.com...
>
>

Friday, February 24, 2012

Memory Performance counter?

Can anyone tell me what is considered a bad number for the "Memory:
Pages/sec" counter? Microsoft indicates a number greater than zero by a small
amount is acceptable, but what number is a "small amount"?
Thanks RichDBA wrote:
> Can anyone tell me what is considered a bad number for the "Memory:
> Pages/sec" counter? Microsoft indicates a number greater than zero by a small
> amount is acceptable, but what number is a "small amount"?
> Thanks Rich
It depends - you first need to determine what is "normal" for your
server. A lot of paging activity usually, but not always, indicates
that something other than SQL is demanding memory. For instance, on my
servers, I have no page swapping during the majority of the day. During
the period of time when my tape backup agent is backing up the SQL
backups, then I'll get a flurry of paging activity. When backups
complete, the paging stops.
Tracy McKibben
MCDBA
http://www.realsqlguy.com|||The Memory:pages/sec counter indicates hard paging activities. On a box
dedicated to SQL Server, if its value is greater than zero for any sustained
period of time, you should look into it.
Linchi
"DBA" wrote:
> Can anyone tell me what is considered a bad number for the "Memory:
> Pages/sec" counter? Microsoft indicates a number greater than zero by a small
> amount is acceptable, but what number is a "small amount"?
> Thanks Rich|||Those pages are actually the backup files being written. The write
mechanism used by SQL Backup triggers this counter. This happens both for
local file or tape writes and network file writes. It isn't caused by
memory pressure, it is just an artifact of writing backup files. As such,
you have to disregard the non-zero counters when a SQL is running an active
backup. Yet another operating complication with SQL.
--
Geoff N. Hiten
Senior Database Administrator
Microsoft SQL Server MVP
"Tracy McKibben" <tracy@.realsqlguy.com> wrote in message
news:enjwmcBsGHA.2240@.TK2MSFTNGP04.phx.gbl...
> DBA wrote:
>> Can anyone tell me what is considered a bad number for the "Memory:
>> Pages/sec" counter? Microsoft indicates a number greater than zero by a
>> small amount is acceptable, but what number is a "small amount"? Thanks
>> Rich
> It depends - you first need to determine what is "normal" for your server.
> A lot of paging activity usually, but not always, indicates that something
> other than SQL is demanding memory. For instance, on my servers, I have
> no page swapping during the majority of the day. During the period of
> time when my tape backup agent is backing up the SQL backups, then I'll
> get a flurry of paging activity. When backups complete, the paging stops.
>
> --
> Tracy McKibben
> MCDBA
> http://www.realsqlguy.com|||Geoff N. Hiten wrote:
> Those pages are actually the backup files being written. The write
> mechanism used by SQL Backup triggers this counter. This happens both for
> local file or tape writes and network file writes. It isn't caused by
> memory pressure, it is just an artifact of writing backup files. As such,
> you have to disregard the non-zero counters when a SQL is running an active
> backup. Yet another operating complication with SQL.
>
That was basically the point I was trying to make. Also, I don't see
excessive paging when *SQL* is running a backup, I see paging when my
tape backup agent is backing up the SQL backups. I dump SQL backups to
disk, then back those dumps up to tape.
Tracy McKibben
MCDBA
http://www.realsqlguy.com|||We're running sql 2000 on 64bit itanium server with 12gig ram. We have batch
processes that run all hours of the day as well internet users hitting the db
via a web application. The memory Pages/Sec are consistently between 3000 and
6000. Is this reasonable or excessive?
Thanks Rich
"Linchi Shea" wrote:
> The Memory:pages/sec counter indicates hard paging activities. On a box
> dedicated to SQL Server, if its value is greater than zero for any sustained
> period of time, you should look into it.
> Linchi
> "DBA" wrote:
> > Can anyone tell me what is considered a bad number for the "Memory:
> > Pages/sec" counter? Microsoft indicates a number greater than zero by a small
> > amount is acceptable, but what number is a "small amount"?
> >
> > Thanks Rich

Memory Performance counter?

Can anyone tell me what is considered a bad number for the "Memory:
Pages/sec" counter? Microsoft indicates a number greater than zero by a smal
l
amount is acceptable, but what number is a "small amount"?
Thanks RichDBA wrote:
> Can anyone tell me what is considered a bad number for the "Memory:
> Pages/sec" counter? Microsoft indicates a number greater than zero by a sm
all
> amount is acceptable, but what number is a "small amount"?
> Thanks Rich
It depends - you first need to determine what is "normal" for your
server. A lot of paging activity usually, but not always, indicates
that something other than SQL is demanding memory. For instance, on my
servers, I have no page swapping during the majority of the day. During
the period of time when my tape backup agent is backing up the SQL
backups, then I'll get a flurry of paging activity. When backups
complete, the paging stops.
Tracy McKibben
MCDBA
http://www.realsqlguy.com|||The Memory:pages/sec counter indicates hard paging activities. On a box
dedicated to SQL Server, if its value is greater than zero for any sustained
period of time, you should look into it.
Linchi
"DBA" wrote:

> Can anyone tell me what is considered a bad number for the "Memory:
> Pages/sec" counter? Microsoft indicates a number greater than zero by a sm
all
> amount is acceptable, but what number is a "small amount"?
> Thanks Rich|||Those pages are actually the backup files being written. The write
mechanism used by SQL Backup triggers this counter. This happens both for
local file or tape writes and network file writes. It isn't caused by
memory pressure, it is just an artifact of writing backup files. As such,
you have to disregard the non-zero counters when a SQL is running an active
backup. Yet another operating complication with SQL.
Geoff N. Hiten
Senior Database Administrator
Microsoft SQL Server MVP
"Tracy McKibben" <tracy@.realsqlguy.com> wrote in message
news:enjwmcBsGHA.2240@.TK2MSFTNGP04.phx.gbl...
> DBA wrote:
> It depends - you first need to determine what is "normal" for your server.
> A lot of paging activity usually, but not always, indicates that something
> other than SQL is demanding memory. For instance, on my servers, I have
> no page swapping during the majority of the day. During the period of
> time when my tape backup agent is backing up the SQL backups, then I'll
> get a flurry of paging activity. When backups complete, the paging stops.
>
> --
> Tracy McKibben
> MCDBA
> http://www.realsqlguy.com|||Geoff N. Hiten wrote:
> Those pages are actually the backup files being written. The write
> mechanism used by SQL Backup triggers this counter. This happens both fo
r
> local file or tape writes and network file writes. It isn't caused by
> memory pressure, it is just an artifact of writing backup files. As such,
> you have to disregard the non-zero counters when a SQL is running an activ
e
> backup. Yet another operating complication with SQL.
>
That was basically the point I was trying to make. Also, I don't see
excessive paging when *SQL* is running a backup, I see paging when my
tape backup agent is backing up the SQL backups. I dump SQL backups to
disk, then back those dumps up to tape.
Tracy McKibben
MCDBA
http://www.realsqlguy.com|||We're running sql 2000 on 64bit itanium server with 12gig ram. We have batch
processes that run all hours of the day as well internet users hitting the d
b
via a web application. The memory Pages/Sec are consistently between 3000 an
d
6000. Is this reasonable or excessive?
Thanks Rich
"Linchi Shea" wrote:
[vbcol=seagreen]
> The Memory:pages/sec counter indicates hard paging activities. On a box
> dedicated to SQL Server, if its value is greater than zero for any sustain
ed
> period of time, you should look into it.
> Linchi
> "DBA" wrote:
>

Monday, February 20, 2012

Memory Leak?

Hello all,

I have recently encountered what looks like a memory leak within SQL server, but may be a number of other things as well - I'm hoping that some of you may have encountered this problem as well so I may be able to narrow down my list of possible culprits.

I noticed this morning that SQL Server was chewing up about 1.5 GB of memory - obviously way more than it should be. At first, I thought this may be because of a coding error, but I was unable to reproduce the problem on my development machine (running SQL Personal).

After re-starting the SQL service (which cleared up the memory use), I ran task manager on our SQL server machine, and noticed that when queries were executed (especially queries that returned fairly large recordsets), memory consumption used by the sql server process would jump up, but then would not be released (as my development machine was doing).

I'm not a DBA, so I'm hoping this may be happening because of some (unknown to me) option that is not currently enabled/disabled on the SQL Server. My only other thoughts at this time are that maybe it's a bad install of SQL, or perhaps bad RAM? Any supporting/disproving thoughts? Any similar situations?

Any help with this would be greatly appreciated.

Thank you in advance,
AtomicChipSQL Server will use as much memory as is available. Now, it'llrelease it as other processes need it, but remember that it truly is aserver, so it doesn't make sense for it to limit itself to a smallerportion of available RAM than it can use.
You *can* set a maximum amount of RAM that you never want it to exceed,if you so wish. There's a setting in the server properties forthis, but if it's not causing you any problems then I'd chalk it up toSQL Server doing what it's supposed to do and not worry about it.
|||SQL Server Perfmon and Profiler will give you better understanding ofthe processes and SQL statements using up resources. In Win2003you can limit the rams used by Windows but your total ram of 1.5gig israther small to use that configuration. The fixes maybe storedproc rewrites using more SELECT instead of SET statements and limitcursors. Hope this helps.
Kind regards,
Gift Peddie