Showing posts with label iwas. Show all posts
Showing posts with label iwas. Show all posts

Thursday, March 29, 2012

How replication works in this scenario.. Please help

Hello all,
I am a newbie when it comes to replication. I have read the BOL but I
was overwhilemed with the amount of information about replication.
We are planning to have a server with sql server 2005 and disconnected
laptops with sql server express. How would replication work in this
scenario assuming we are using merge replication:
Table AA [ a replicated table on the server and 9 columns]
User #1 has table AA on his laptop... and has added 3 records, deleted
1 and
update 1 record (5 transaction in total)...
Table AA has 3 new records added after AA last sync his replica...
Joe Admin comes and decided to make schema changes to table AA on the
server...
Q#1 can he do that even though the log has 3 transactions?
Q#2 can he does it if the log was empty?
Q#3 assume the admin did the schema changes to table AA...and Now user
#1 trying
to sync
does that mean User #1 will lose all her changes (the 5 transaction
above)...
Q#4: What is the normal best practice if you have sql express.. How
would handle such
scheduled schema change?
Thank you very much!
There are some complications with 'altering' the schema of merge replicated
tables while the subscriber does data changes, but from your description you
are just adding a column on the publisher and this scenario looks OK. The
laptop users should not lose their changes. Finally remember that
sp_repladdcolumn is run on the publisher only.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)

Wednesday, March 21, 2012

how many open connections?

How do I tell how many connections to the db there are? sp_who always has
lots of "backgrounds" and "sleeping" in it so thats not reall accurate. I
was thinking to open Profiler and use the "existing connections" option but
was wondering if there is a better way?
TIA, ChrisR
EXEC sp_who 'active'
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"ChrisR" <noemail@.bla.com> wrote in message
news:uJ%232hKDeFHA.3932@.TK2MSFTNGP12.phx.gbl...
> How do I tell how many connections to the db there are? sp_who always has
> lots of "backgrounds" and "sleeping" in it so thats not reall accurate. I
> was thinking to open Profiler and use the "existing connections" option
> but was wondering if there is a better way?
>
> TIA, ChrisR
>
|||That will show you the Active connections.
If you need to know the exact number, query sysprocesses.
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
news:e4uAgYDeFHA.580@.TK2MSFTNGP15.phx.gbl...
> EXEC sp_who 'active'
> --
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "ChrisR" <noemail@.bla.com> wrote in message
> news:uJ%232hKDeFHA.3932@.TK2MSFTNGP12.phx.gbl...
>
|||Thanks Mike... but heres what I dont get. I have a local sql server on my
desktop. No replication, the server agent isnt on, I have 2 open Query
Analyzer and 1 open Enterprise Manager. Both the sp_who 'active' and shows
13 connections, sysprocesses show 16. What is making up all these
connections?
"Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
news:OCTL4cDeFHA.3816@.TK2MSFTNGP10.phx.gbl...
> That will show you the Active connections.
> If you need to know the exact number, query sysprocesses.
> --
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
> news:e4uAgYDeFHA.580@.TK2MSFTNGP15.phx.gbl...
>
|||Client processes are those with spid > 50. The other ones are background
server processes e.g lazy writer, lock monitor, log writer etc. There can be
a variable number of these dependent on load an other factors. I fyou're
just interested in client connections then you need to filter on spid>50
HTH
Jasper Smith (SQL Server MVP)
http://www.sqldbatips.com
I support PASS - the definitive, global
community for SQL Server professionals -
http://www.sqlpass.org
"ChrisR" <noemail@.bla.com> wrote in message
news:e6fHU1DeFHA.4040@.TK2MSFTNGP14.phx.gbl...
> Thanks Mike... but heres what I dont get. I have a local sql server on my
> desktop. No replication, the server agent isnt on, I have 2 open Query
> Analyzer and 1 open Enterprise Manager. Both the sp_who 'active' and shows
> 13 connections, sysprocesses show 16. What is making up all these
> connections?
>
> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
> news:OCTL4cDeFHA.3816@.TK2MSFTNGP10.phx.gbl...
>
|||Awesome. Thanks to both of you.
"Jasper Smith" <jasper_smith9@.hotmail.com> wrote in message
news:%23n89iOEeFHA.3280@.TK2MSFTNGP09.phx.gbl...
> Client processes are those with spid > 50. The other ones are background
> server processes e.g lazy writer, lock monitor, log writer etc. There can
> be a variable number of these dependent on load an other factors. I
> fyou're just interested in client connections then you need to filter on
> spid>50
> --
> HTH
> Jasper Smith (SQL Server MVP)
> http://www.sqldbatips.com
> I support PASS - the definitive, global
> community for SQL Server professionals -
> http://www.sqlpass.org
> "ChrisR" <noemail@.bla.com> wrote in message
> news:e6fHU1DeFHA.4040@.TK2MSFTNGP14.phx.gbl...
>

how many open connections?

How do I tell how many connections to the db there are? sp_who always has
lots of "backgrounds" and "sleeping" in it so thats not reall accurate. I
was thinking to open Profiler and use the "existing connections" option but
was wondering if there is a better way?
TIA, ChrisREXEC sp_who 'active'
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"ChrisR" <noemail@.bla.com> wrote in message
news:uJ%232hKDeFHA.3932@.TK2MSFTNGP12.phx.gbl...
> How do I tell how many connections to the db there are? sp_who always has
> lots of "backgrounds" and "sleeping" in it so thats not reall accurate. I
> was thinking to open Profiler and use the "existing connections" option
> but was wondering if there is a better way?
>
> TIA, ChrisR
>|||That will show you the Active connections.
If you need to know the exact number, query sysprocesses.
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
news:e4uAgYDeFHA.580@.TK2MSFTNGP15.phx.gbl...
> EXEC sp_who 'active'
> --
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "ChrisR" <noemail@.bla.com> wrote in message
> news:uJ%232hKDeFHA.3932@.TK2MSFTNGP12.phx.gbl...
>|||Thanks Mike... but heres what I dont get. I have a local sql server on my
desktop. No replication, the server agent isnt on, I have 2 open Query
Analyzer and 1 open Enterprise Manager. Both the sp_who 'active' and shows
13 connections, sysprocesses show 16. What is making up all these
connections?
"Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
news:OCTL4cDeFHA.3816@.TK2MSFTNGP10.phx.gbl...
> That will show you the Active connections.
> If you need to know the exact number, query sysprocesses.
> --
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
> news:e4uAgYDeFHA.580@.TK2MSFTNGP15.phx.gbl...
>|||Client processes are those with spid > 50. The other ones are background
server processes e.g lazy writer, lock monitor, log writer etc. There can be
a variable number of these dependent on load an other factors. I fyou're
just interested in client connections then you need to filter on spid>50
HTH
Jasper Smith (SQL Server MVP)
http://www.sqldbatips.com
I support PASS - the definitive, global
community for SQL Server professionals -
http://www.sqlpass.org
"ChrisR" <noemail@.bla.com> wrote in message
news:e6fHU1DeFHA.4040@.TK2MSFTNGP14.phx.gbl...
> Thanks Mike... but heres what I dont get. I have a local sql server on my
> desktop. No replication, the server agent isnt on, I have 2 open Query
> Analyzer and 1 open Enterprise Manager. Both the sp_who 'active' and shows
> 13 connections, sysprocesses show 16. What is making up all these
> connections?
>
> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
> news:OCTL4cDeFHA.3816@.TK2MSFTNGP10.phx.gbl...
>|||Awesome. Thanks to both of you.
"Jasper Smith" <jasper_smith9@.hotmail.com> wrote in message
news:%23n89iOEeFHA.3280@.TK2MSFTNGP09.phx.gbl...
> Client processes are those with spid > 50. The other ones are background
> server processes e.g lazy writer, lock monitor, log writer etc. There can
> be a variable number of these dependent on load an other factors. I
> fyou're just interested in client connections then you need to filter on
> spid>50
> --
> HTH
> Jasper Smith (SQL Server MVP)
> http://www.sqldbatips.com
> I support PASS - the definitive, global
> community for SQL Server professionals -
> http://www.sqlpass.org
> "ChrisR" <noemail@.bla.com> wrote in message
> news:e6fHU1DeFHA.4040@.TK2MSFTNGP14.phx.gbl...
>