Showing posts with label orphaned. Show all posts
Showing posts with label orphaned. Show all posts

Monday, February 20, 2012

Orphaned Users - Spreading

Came into work this morning and found several database on different servers
had orphaned DBO users.
We can fix using sp_changedbowner, but I'm more concerned with HOW this is
happening.
We have serveral database servers, and over 100 databases.
Scripting a solution per server isnt a problem - but I dont want to find out
some virus-type script is running through the servers.
Has anyone else had any similar issues ?
There are no database restores bring carried out - these are mainly stable
working production servers.
There only two boxes (a development and production box) that has so far
escaped any issues.
Machines that are not in the domain are also being effected.
All machines run on non-standard ports (not 1433) - but most servers can see
each other (for replication etc).
The main account to be orphaned at the moment is the DBO one, but there have
been another couple without consistancy..
Any help/comments appreciated
TIA
JonathanA likely cause is that the databases were owned by Windows accounts that
were removed. This will cause the database owner SID to be invalid.
Hope this helps.
Dan Guzman
SQL Server MVP
"Jonathan Christie" <jonathan.christie@.ed-coll.ac.uk> wrote in message
news:%23wEVcxXbEHA.3476@.tk2msftngp13.phx.gbl...
> Came into work this morning and found several database on different
servers
> had orphaned DBO users.
> We can fix using sp_changedbowner, but I'm more concerned with HOW this is
> happening.
> We have serveral database servers, and over 100 databases.
> Scripting a solution per server isnt a problem - but I dont want to find
out
> some virus-type script is running through the servers.
> Has anyone else had any similar issues ?
> There are no database restores bring carried out - these are mainly stable
> working production servers.
> There only two boxes (a development and production box) that has so far
> escaped any issues.
> Machines that are not in the domain are also being effected.
> All machines run on non-standard ports (not 1433) - but most servers can
see
> each other (for replication etc).
> The main account to be orphaned at the moment is the DBO one, but there
have
> been another couple without consistancy..
> Any help/comments appreciated
> TIA
> Jonathan
>|||Hi Dan
I agree - and I would spot these ones.
However, these are all the dbo users /sa logins
All maintained/created under my own account - which hasn't been removed ;)
It is a bit worrying that it has spread over the last few days - almost
virus like.
Thanks anyway
J
"Dan Guzman" <danguzman@.nospam-earthlink.net> wrote in message
news:%23kYRzPZbEHA.1292@.TK2MSFTNGP11.phx.gbl...
> A likely cause is that the databases were owned by Windows accounts that
> were removed. This will cause the database owner SID to be invalid.
> --
> Hope this helps.
> Dan Guzman
> SQL Server MVP
> "Jonathan Christie" <jonathan.christie@.ed-coll.ac.uk> wrote in message
> news:%23wEVcxXbEHA.3476@.tk2msftngp13.phx.gbl...
> servers
is[vbcol=seagreen]
> out
stable[vbcol=seagreen]
> see
> have
>|||Was there a restore done over the weekend?
Thanks,
Kevin McDonnell
Microsoft Corporation
This posting is provided AS IS with no warranties, and confers no rights.|||> However, these are all the dbo users /sa logins
I'm not sure what you mean by this. You may experience problems with the
'dbo' user in the following cases.
1) The sid in sysdatabases doesn't match the 'dbo' user sid in sysusers.
These should be the same.
2) The sid in sysdatabases (or sysusers) is invalid (SUSER_SNAME(sid)
returns NULL).
A restore can cause #1 and perhaps #2 and is probably why Kevin mentioned
this in his response. Deleting the owner's account can cause #2.
sp_changedbowner can fix the problem in either case.

> It is a bit worrying that it has spread over the last few days - almost
> virus like.
I'm not aware of any malicious code that deliberately orphans database
owners. This seems like a strange thing to do since code that exploits a
vulnerability that allows system tables to be hacked would presumably do a
lot more.
Hope this helps.
Dan Guzman
SQL Server MVP
"Jonathan Christie" <jonathan.christie@.ed-coll.ac.uk> wrote in message
news:Okmt1ZZbEHA.1656@.TK2MSFTNGP09.phx.gbl...
> Hi Dan
> I agree - and I would spot these ones.
> However, these are all the dbo users /sa logins
> All maintained/created under my own account - which hasn't been removed ;)
> It is a bit worrying that it has spread over the last few days - almost
> virus like.
> Thanks anyway
> J
>
>
> "Dan Guzman" <danguzman@.nospam-earthlink.net> wrote in message
> news:%23kYRzPZbEHA.1292@.TK2MSFTNGP11.phx.gbl...
this[vbcol=seagreen]
> is
find[vbcol=seagreen]
> stable
far[vbcol=seagreen]
can[vbcol=seagreen]
there[vbcol=seagreen]
>

Orphaned user owns objects as dbo and cannot be dropped.

Hi,
Hope someone can give me a hint. I restored a database from the Development
SQL server to the production server. Normally, the database dbo user is
associated with sa login name, but this database's dbo user is associated
with NULL. The developer had dbo permission on this database in the Dev
environment. Now I am trying to drop his orphaned user name from this
database on the production server, but I got an error message: "The selected
user cannot be dropped because the user owns objects. However, I checked all
tables, views, and stored procedures they are all owned by the dbo not this
user. How can I get rid of this use name in this database?
Thank you in advance.
Jack.Jack
EXEC sp_change_users_login 'Report'
What do you get?
"Jack" <Jack@.discussions.microsoft.com> wrote in message
news:856F9A25-73B3-4668-8E8F-68E3CBD70C57@.microsoft.com...
> Hi,
> Hope someone can give me a hint. I restored a database from the
> Development
> SQL server to the production server. Normally, the database dbo user is
> associated with sa login name, but this database's dbo user is associated
> with NULL. The developer had dbo permission on this database in the Dev
> environment. Now I am trying to drop his orphaned user name from this
> database on the production server, but I got an error message: "The
> selected
> user cannot be dropped because the user owns objects. However, I checked
> all
> tables, views, and stored procedures they are all owned by the dbo not
> this
> user. How can I get rid of this use name in this database?
> Thank you in advance.
> Jack.|||> Normally, the database dbo user is
> associated with sa login name, but this database's dbo user is associated
> with NULL.
You can fix the database owner with:
USE MyDatabase
EXEC sp_changedbowner 'sa'

> "The selected
> user cannot be dropped because the user owns objects. However, I checked
> all
> tables, views, and stored procedures they are all owned by the dbo not
> this
> user. How can I get rid of this use name in this database?
I suspect this is a different problem than the database owner. The script
below will identify objects owned by the problem user:
SELECT name, xtype
FROM dbo.sysobjects
WHERE uid = USER_ID('DevUser')
Uri mentioned that you can use sp_change_users_login to identify problem
user/login mapping.
Hope this helps.
Dan Guzman
SQL Server MVP
"Jack" <Jack@.discussions.microsoft.com> wrote in message
news:856F9A25-73B3-4668-8E8F-68E3CBD70C57@.microsoft.com...
> Hi,
> Hope someone can give me a hint. I restored a database from the
> Development
> SQL server to the production server. Normally, the database dbo user is
> associated with sa login name, but this database's dbo user is associated
> with NULL. The developer had dbo permission on this database in the Dev
> environment. Now I am trying to drop his orphaned user name from this
> database on the production server, but I got an error message: "The
> selected
> user cannot be dropped because the user owns objects. However, I checked
> all
> tables, views, and stored procedures they are all owned by the dbo not
> this
> user. How can I get rid of this use name in this database?
> Thank you in advance.
> Jack.|||Thank you Dan and Uri,
I did run the sp_change_users_login 'Report' but the DevUser was not listed
as an orphaned user. When I run:
select name, xtype from dbo.sysobjects where uid = USER_ID('DevUser')
I got following result:
Name xtype
current_date D
empty_string D
zero D
Those three object are default constraints. I don't how this could happen? I
tried to use sp_changeobjectowner to change the owership on these objects,
but got the following message:
Object 'zero' does not exist or is not a valid object for this operation.
So I had to directly update the dbo.sysobjects system table to chane the uid
to 1 for these three objects, then I dropped the DevUser successfully. What
I
did might not be a safe way to solve this problem. Do you have any other
better ways to get this problem corrected?
Thank you so much for your help.
Jack
"Dan Guzman" wrote:

> You can fix the database owner with:
> USE MyDatabase
> EXEC sp_changedbowner 'sa'
>
> I suspect this is a different problem than the database owner. The script
> below will identify objects owned by the problem user:
> SELECT name, xtype
> FROM dbo.sysobjects
> WHERE uid = USER_ID('DevUser')
> Uri mentioned that you can use sp_change_users_login to identify problem
> user/login mapping.
> --
> Hope this helps.
> Dan Guzman
> SQL Server MVP
> "Jack" <Jack@.discussions.microsoft.com> wrote in message
> news:856F9A25-73B3-4668-8E8F-68E3CBD70C57@.microsoft.com...
>
>|||I haven't run into orphaned default constraints before. You might try DBCC
CHECKCATALOG to see if turns up anything else.
Hope this helps.
Dan Guzman
SQL Server MVP
"Jack" <Jack@.discussions.microsoft.com> wrote in message
news:A1CCBE29-5946-4235-A8FC-C53D7058853F@.microsoft.com...[vbcol=seagreen]
> Thank you Dan and Uri,
> I did run the sp_change_users_login 'Report' but the DevUser was not
> listed
> as an orphaned user. When I run:
> select name, xtype from dbo.sysobjects where uid = USER_ID('DevUser')
> I got following result:
> Name xtype
> current_date D
> empty_string D
> zero D
> Those three object are default constraints. I don't how this could happen?
> I
> tried to use sp_changeobjectowner to change the owership on these objects,
> but got the following message:
> Object 'zero' does not exist or is not a valid object for this operation.
> So I had to directly update the dbo.sysobjects system table to chane the
> uid
> to 1 for these three objects, then I dropped the DevUser successfully.
> What I
> did might not be a safe way to solve this problem. Do you have any other
> better ways to get this problem corrected?
> Thank you so much for your help.
> Jack
>
> "Dan Guzman" wrote:
>

Orphaned transaction in sql 2005

Once in a while we end up with an orphaned transaction in sql 2005 around
the same application and it holds locks and the only way to get rid of it is
kill it.
So what causes it ? According to the app owner, they close the connection
and I have to say they do because the app is called so often and 99% of the
time it works fine and then once in 2 or 3 months, it leaves the orphaned
transaction.
The driver is a Java driver.. But I've seen this behavior on non Java
drivers as well.
So does SQL have any way of automatically killing orphaned transactions
Thank youRomeo,
The problem is that the SQL Server does not know it is an orphaned
transaction. If it knew, it would drop the transaction.
My anecdotal experience has been, if the machine that initiated the orphaned
transaction is logged off the domain, then logged back in the orphaned
transaction will ofter terminate. Apparently (real non-technical here) the
login back into the domain lets the SQL Server say to itself, "Hey, this
transaction must be orphaned because the machine I am doing it for just
logged in." But, I don't think I have ever seen this documented. (And it
is still a pain in the neck to track down the user and get them to log out,
then log back in.)
For orphaned DTC transactions, the SPID is -2, which you can find and kill.
This is documented in sp_who.
http://msdn2.microsoft.com/en-us/library/ms174313.aspx
RLF
"Romeo" <romeo@.juliet.com> wrote in message
news:e2mfGWVZIHA.208@.TK2MSFTNGP02.phx.gbl...
> Once in a while we end up with an orphaned transaction in sql 2005 around
> the same application and it holds locks and the only way to get rid of it
> is kill it.
> So what causes it ? According to the app owner, they close the connection
> and I have to say they do because the app is called so often and 99% of
> the time it works fine and then once in 2 or 3 months, it leaves the
> orphaned transaction.
> The driver is a Java driver.. But I've seen this behavior on non Java
> drivers as well.
> So does SQL have any way of automatically killing orphaned transactions
> Thank you|||> So does SQL have any way of automatically killing orphaned transactions
SQL Server will rollback an open transaction when the client disconnects so
I suspect that network connection is still open. Get the value of
client_tcp_port from sys,dm_exec_connections and check against a netstat
list on the client machine. If you see that the port is in use according to
netstat, then the connection is still open as far as the network layer and
SQL Server are concerned.
I don't know anything about your application other than you are using a java
driver with a SQL 2005 back end. Most drivers support some form of
connection pooling which means that a connection isn't actually closed when
the application closes the connection; the connection is simply returned to
the pool and is available for reuse. If a transaction is open when a pooled
connection is closed, it could remain open until the connection is either
reused or removed from the pool. The exact behavior depends on a number of
factors, such as the specific driver and how the transaction was initiated
(server vs. client API).
> So what causes it ? According to the app owner, they close the connection
> and I have to say they do because the app is called so often and 99% of
> the time it works fine and then once in 2 or 3 months, it leaves the
> orphaned transaction.
It may be than all is fine as long as the expected code path is executed.
Make sure that the application cleans up (e;g; WHILE @.@.TRANCOUNT > 0
ROLLBACK and close connection) following exceptions.
Hope this helps.
Dan Guzman
SQL Server MVP
"Romeo" <romeo@.juliet.com> wrote in message
news:e2mfGWVZIHA.208@.TK2MSFTNGP02.phx.gbl...
> Once in a while we end up with an orphaned transaction in sql 2005 around
> the same application and it holds locks and the only way to get rid of it
> is kill it.
> So what causes it ? According to the app owner, they close the connection
> and I have to say they do because the app is called so often and 99% of
> the time it works fine and then once in 2 or 3 months, it leaves the
> orphaned transaction.
> The driver is a Java driver.. But I've seen this behavior on non Java
> drivers as well.
> So does SQL have any way of automatically killing orphaned transactions
> Thank you

Orphaned Table Footers

Hello.
I have a report that uses one table in the body. The actual report header is
empty and the actual report footer only shows the page number. I use the
Table header and have "Repeat on New Page" set to True. I use the table
header instead because I need to display some summary data at the top of each
page.
I have 4 groups total and the header of the outermost group (table1_group1)
is the one that repeats on each page.
The reports display fine most of the time and the Table1_group1 table header
repeats as it should, but whenever the spacing works out that the
Table1_Footer1 table footer needs to start on a new page, the footer prints
on its own without the table header. The table1_Group1 table footer does not
repeat on each page and only shows up as the last page for each group as it
shows some totals/sums.
Any ideas on how to fix this so the Table_1Group1 table header will print
even when only the Table1Group1 table footer is being printed?
Thanks,
Brian.Hi Brian,
I'd like to get a clear understanding of your issue to
be able to assist you better.
>I have a report that uses one table in the body. The
actual report header is
>empty and the actual report footer only shows the page
number. I use the
1. In Reporting Services there is no sections called
Report Header or Report Footer although the black space
above/below the data region can be regarded as Report
Header/Report Footer. Since "the actual report footer
only shows the page number", I'd like to confirm if you
mean Page Header/Page Footer by saying Report
Header/Report Footer.
>Table header and have "Repeat on New Page" set to True.
I use the table
>header instead because I need to display some summary
data at the top of each
>page.
2. This is the second one I'd like to confirm. You set
the "RepeatOnNewPage" property of the Table Header
rather than the Group Header to true.
>I have 4 groups total and the header of the outermost
group (table1_group1)
>is the one that repeats on each page.
3. How did you do with the outermost group named
table1_group1 so that it repeats on each page? Did you
set the "RepeatOnNewPage" property of the Group Header
of this group to true or place a "Page Break at end" of
the group?
>The reports display fine most of the time and the
Table1_group1 table header
4. Here by saying "the Table1_group1 table header" do
you mean the "group header of Table1_group1"?
>repeats as it should, but whenever the spacing works
out that the
>Table1_Footer1 table footer needs to start on a new
page,
5. A Table Footer only appears at the end of a table.
I'd like to confirm if you mean Table Footer or Group
Footer of Table1_group1.
>the footer prints
>on its own without the table header. The table1_Group1
table footer does not
>repeat on each page and only shows up as the last page
for each group as it
>shows some totals/sums.
>Any ideas on how to fix this so the Table_1Group1 table
header will print
>even when only the Table1Group1 table footer is being
printed?
6. Setting the "RepeatOnNewPage" property of the Group
Header to true should have no such a problem. By doing
this the group header repeats on each page.
For us, the most efficient troubleshooting method would
be reproducing this issue on our end. If the issue
persists, please try to reproduce the issue with a
sample database and post the detailed reproduce steps.
If anything is unclear, get in touch.
Sincerely,
William Wang
Microsoft Online Partner Support
Get Secure! - <www.microsoft.com/security>
=====================================================When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from your issue.
=====================================================This posting is provided "AS IS" with no warranties, and
confers no rights.
--
>Thread-Topic: Orphaned Table Footers
>thread-index: AcUCWF6Szxan+iN7TLGB155pQjDGbg==>X-WBNR-Posting-Host: 204.92.98.25
>From: "=?Utf-8?B?QnJpYW4=?=" <Bri-Guy@.nospam.nospam>
>Subject: Orphaned Table Footers
>Date: Mon, 24 Jan 2005 13:05:01 -0800
>Lines: 20
>Message-ID:
<C6FB5F66-C1CB-41A0-A449-620826ECF7D7@.microsoft.com>
>MIME-Version: 1.0
>Content-Type: text/plain;
> charset="Utf-8"
>Content-Transfer-Encoding: 7bit
>X-Newsreader: Microsoft CDO for Windows 2000
>Content-Class: urn:content-classes:message
>Importance: normal
>Priority: normal
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
>Newsgroups: microsoft.public.sqlserver.reportingsvcs
>NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
>Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
>Xref: cpmsftngxa10.phx.gbl
microsoft.public.sqlserver.reportingsvcs:40664
>X-Tomcat-NG: microsoft.public.sqlserver.reportingsvcs
>Hello.
>I have a report that uses one table in the body. The
actual report header is
>empty and the actual report footer only shows the page
number. I use the
>Table header and have "Repeat on New Page" set to True.
I use the table
>header instead because I need to display some summary
data at the top of each
>page.
>I have 4 groups total and the header of the outermost
group (table1_group1)
>is the one that repeats on each page.
>The reports display fine most of the time and the
Table1_group1 table header
>repeats as it should, but whenever the spacing works
out that the
>Table1_Footer1 table footer needs to start on a new
page, the footer prints
>on its own without the table header. The table1_Group1
table footer does not
>repeat on each page and only shows up as the last page
for each group as it
>shows some totals/sums.
>Any ideas on how to fix this so the Table_1Group1 table
header will print
>even when only the Table1Group1 table footer is being
printed?
>Thanks,
>Brian.
>|||Hello.
Sorry, I used some wrong terminology. Here are the clarifications.
1) -Page header is empty.
- it is the page footer that only shows the page number
2) -Table header row is deleted (I don't use it).
- RepeatOnNewPage property of the Table1_Group1 header is set to true. This
is the header that contains some summary data and I want it to repeat on each
page.
- Table Footer is included. RepeatOnNewPage property is set to TRUE. This is
just an empty row with a bottom border. This repeats on each page to give the
table a bottom border on each page.
3) -Table1_Group1 Header RepeatOnNewPage Property is TRUE
-When I go "Edit Group", Page break at start, include group header, include
group footer, AND repeat group header are checked off. So both "Repeat Group
Header" is checked and RepeatOnNewPage property is TRUE.
4) - Yes, I mean the Group Header of Table1_Group1
5) - Yes, I mean the Group Footer of Table1_Group1
I think this might be the problem:
The Group Headers will repeat on each page in the print preview and when
exporting to PDF as long as the page displays data from the Table Details
section or data from inner groups. But if the Outermost group footer is
squeezed onto the next page by itself then the group header does not show.
I was able to replicate this problem using a very simple report.
Steps:
1) Create a new report. have the data set return only 1 row to make things
simple (.EG Select Top 1 * from table).
2) Create a table in the body of the report
3) Get rid of the table header and the table footer. so only the table
details section remains.
4) Add a group. Group on anything since only 1 row is returned by the query.
-so now there's 3 rows in the layout. Table1_Group1 Header, Detail, and
Table1_Group1 Footer.
5) Type something into the table1_group1 header,
-Edit the group and check off
6) Drag a field into the body.
7) type something into the table1_Group1 footer. footer only shows up at the
end of each group change and does not repeat on each page.
8) Now, make the detail row long, so that it just squeezes the table1_Group1
footer onto the next page in the print preview.
The Table1_Group1 Header will show up on the first page along with the
detail row, but in the next page, only the table1_Group1 footer row shows.
The table1_Group1 header does not appear even though it should repeat on each
page.
This happens in the Print Preview (NOT THE PREVIEW TAB OR WHEN VIEWING
ONLINE) and also when you export the report to PDF. Viewing the report just
online is fine.
For my real report, the table1_Group1 header always repeats fine except on
pages where only the table1_Group1 footer has been squeezed onto the next
page by itself.
Like I said, my report has 4 groups, each group gives subtotals at various
levels and the table1_Group1 Footer gives a grand total for each set.
Hopefully the problem is clear now.
Thanks!
Brian.
"William Wang[MSFT]" wrote:
> Hi Brian,
> I'd like to get a clear understanding of your issue to
> be able to assist you better.
> >I have a report that uses one table in the body. The
> actual report header is
> >empty and the actual report footer only shows the page
> number. I use the
> 1. In Reporting Services there is no sections called
> Report Header or Report Footer although the black space
> above/below the data region can be regarded as Report
> Header/Report Footer. Since "the actual report footer
> only shows the page number", I'd like to confirm if you
> mean Page Header/Page Footer by saying Report
> Header/Report Footer.
>
> >Table header and have "Repeat on New Page" set to True.
> I use the table
> >header instead because I need to display some summary
> data at the top of each
> >page.
> 2. This is the second one I'd like to confirm. You set
> the "RepeatOnNewPage" property of the Table Header
> rather than the Group Header to true.
>
> >I have 4 groups total and the header of the outermost
> group (table1_group1)
> >is the one that repeats on each page.
> 3. How did you do with the outermost group named
> table1_group1 so that it repeats on each page? Did you
> set the "RepeatOnNewPage" property of the Group Header
> of this group to true or place a "Page Break at end" of
> the group?
>
> >The reports display fine most of the time and the
> Table1_group1 table header
> 4. Here by saying "the Table1_group1 table header" do
> you mean the "group header of Table1_group1"?
>
> >repeats as it should, but whenever the spacing works
> out that the
> >Table1_Footer1 table footer needs to start on a new
> page,
> 5. A Table Footer only appears at the end of a table.
> I'd like to confirm if you mean Table Footer or Group
> Footer of Table1_group1.
>
> >the footer prints
> >on its own without the table header. The table1_Group1
> table footer does not
> >repeat on each page and only shows up as the last page
> for each group as it
> >shows some totals/sums.
> >Any ideas on how to fix this so the Table_1Group1 table
> header will print
> >even when only the Table1Group1 table footer is being
> printed?
> 6. Setting the "RepeatOnNewPage" property of the Group
> Header to true should have no such a problem. By doing
> this the group header repeats on each page.
> For us, the most efficient troubleshooting method would
> be reproducing this issue on our end. If the issue
> persists, please try to reproduce the issue with a
> sample database and post the detailed reproduce steps.
> If anything is unclear, get in touch.
> Sincerely,
> William Wang
> Microsoft Online Partner Support
> Get Secure! - <www.microsoft.com/security>
> =====================================================> When responding to posts, please "Reply to Group" via
> your newsreader so that others may learn and benefit
> from your issue.
> =====================================================> This posting is provided "AS IS" with no warranties, and
> confers no rights.
> --
> >Thread-Topic: Orphaned Table Footers
> >thread-index: AcUCWF6Szxan+iN7TLGB155pQjDGbg==> >X-WBNR-Posting-Host: 204.92.98.25
> >From: "=?Utf-8?B?QnJpYW4=?=" <Bri-Guy@.nospam.nospam>
> >Subject: Orphaned Table Footers
> >Date: Mon, 24 Jan 2005 13:05:01 -0800
> >Lines: 20
> >Message-ID:
> <C6FB5F66-C1CB-41A0-A449-620826ECF7D7@.microsoft.com>
> >MIME-Version: 1.0
> >Content-Type: text/plain;
> > charset="Utf-8"
> >Content-Transfer-Encoding: 7bit
> >X-Newsreader: Microsoft CDO for Windows 2000
> >Content-Class: urn:content-classes:message
> >Importance: normal
> >Priority: normal
> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
> >Newsgroups: microsoft.public.sqlserver.reportingsvcs
> >NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
> >Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
> >Xref: cpmsftngxa10.phx.gbl
> microsoft.public.sqlserver.reportingsvcs:40664
> >X-Tomcat-NG: microsoft.public.sqlserver.reportingsvcs
> >
> >Hello.
> >
> >I have a report that uses one table in the body. The
> actual report header is
> >empty and the actual report footer only shows the page
> number. I use the
> >Table header and have "Repeat on New Page" set to True.
> I use the table
> >header instead because I need to display some summary
> data at the top of each
> >page.
> >I have 4 groups total and the header of the outermost
> group (table1_group1)
> >is the one that repeats on each page.
> >The reports display fine most of the time and the
> Table1_group1 table header
> >repeats as it should, but whenever the spacing works
> out that the
> >Table1_Footer1 table footer needs to start on a new
> page, the footer prints
> >on its own without the table header. The table1_Group1
> table footer does not
> >repeat on each page and only shows up as the last page
> for each group as it
> >shows some totals/sums.
> >Any ideas on how to fix this so the Table_1Group1 table
> header will print
> >even when only the Table1Group1 table footer is being
> printed?
> >
> >Thanks,
> >Brian.
> >
>|||Hi Brian,
I will be looking into this issue and I will update you
once I have more information.
Sincerely,
William Wang
Microsoft Online Partner Support
When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from your issue.
=====================================================
Business-Critical Phone Support (BCPS) provides you with
technical phone support at no charge during critical LAN
outages or "business down" situations. This benefit is
available 24 hours a day, 7 days a week to all Microsoft
technology partners in the United States and Canada.
This and other support options are available here:
BCPS:
https://partner.microsoft.com/US/technicalsupport/support
overview/40010469
Others:
https://partner.microsoft.com/US/technicalsupport/support
overview/
If you are outside the United States, please visit our
International Support page:
http://support.microsoft.com/default.aspx?scid=%2finterna
tional.aspx.
=====================================================
This posting is provided "AS IS" with no warranties, and
confers no rights.
--
>Thread-Topic: Orphaned Table Footers
>thread-index: AcUDE9iY3e1yULFPQLmd8LylZ4RFtQ==>X-WBNR-Posting-Host: 204.92.98.25
>From: "=?Utf-8?B?QnJpYW4=?=" <Bri-Guy@.nospam.nospam>
>References:
<C6FB5F66-C1CB-41A0-A449-620826ECF7D7@.microsoft.com>
<QmipjprAFHA.2768@.cpmsftngxa10.phx.gbl>
>Subject: RE: Orphaned Table Footers
>Date: Tue, 25 Jan 2005 11:27:02 -0800
>Lines: 228
>Message-ID:
<F2866859-4257-41B1-9F2F-FAACB7EEC085@.microsoft.com>
>MIME-Version: 1.0
>Content-Type: text/plain;
> charset="Utf-8"
>Content-Transfer-Encoding: 7bit
>X-Newsreader: Microsoft CDO for Windows 2000
>Content-Class: urn:content-classes:message
>Importance: normal
>Priority: normal
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
>Newsgroups: microsoft.public.sqlserver.reportingsvcs
>NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
>Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
>Xref: cpmsftngxa10.phx.gbl
microsoft.public.sqlserver.reportingsvcs:40795
>X-Tomcat-NG: microsoft.public.sqlserver.reportingsvcs
>Hello.
>Sorry, I used some wrong terminology. Here are the
clarifications.
>1) -Page header is empty.
>- it is the page footer that only shows the page number
>2) -Table header row is deleted (I don't use it).
>- RepeatOnNewPage property of the Table1_Group1 header
is set to true. This
>is the header that contains some summary data and I
want it to repeat on each
>page.
>- Table Footer is included. RepeatOnNewPage property is
set to TRUE. This is
>just an empty row with a bottom border. This repeats on
each page to give the
>table a bottom border on each page.
>
>3) -Table1_Group1 Header RepeatOnNewPage Property is
TRUE
>-When I go "Edit Group", Page break at start, include
group header, include
>group footer, AND repeat group header are checked off.
So both "Repeat Group
>Header" is checked and RepeatOnNewPage property is TRUE.
>4) - Yes, I mean the Group Header of Table1_Group1
>5) - Yes, I mean the Group Footer of Table1_Group1
>I think this might be the problem:
>The Group Headers will repeat on each page in the print
preview and when
>exporting to PDF as long as the page displays data from
the Table Details
>section or data from inner groups. But if the Outermost
group footer is
>squeezed onto the next page by itself then the group
header does not show.
>I was able to replicate this problem using a very
simple report.
>Steps:
>1) Create a new report. have the data set return only 1
row to make things
>simple (.EG Select Top 1 * from table).
>2) Create a table in the body of the report
>3) Get rid of the table header and the table footer. so
only the table
>details section remains.
>4) Add a group. Group on anything since only 1 row is
returned by the query.
> -so now there's 3 rows in the layout. Table1_Group1
Header, Detail, and
>Table1_Group1 Footer.
>5) Type something into the table1_group1 header,
> -Edit the group and check off
>6) Drag a field into the body.
>7) type something into the table1_Group1 footer. footer
only shows up at the
>end of each group change and does not repeat on each
page.
>8) Now, make the detail row long, so that it just
squeezes the table1_Group1
>footer onto the next page in the print preview.
>The Table1_Group1 Header will show up on the first page
along with the
>detail row, but in the next page, only the
table1_Group1 footer row shows.
>The table1_Group1 header does not appear even though it
should repeat on each
>page.
>This happens in the Print Preview (NOT THE PREVIEW TAB
OR WHEN VIEWING
>ONLINE) and also when you export the report to PDF.
Viewing the report just
>online is fine.
>For my real report, the table1_Group1 header always
repeats fine except on
>pages where only the table1_Group1 footer has been
squeezed onto the next
>page by itself.
>Like I said, my report has 4 groups, each group gives
subtotals at various
>levels and the table1_Group1 Footer gives a grand total
for each set.
>Hopefully the problem is clear now.
>Thanks!
>Brian.
>"William Wang[MSFT]" wrote:
>> Hi Brian,
>> I'd like to get a clear understanding of your issue
to
>> be able to assist you better.
>> >I have a report that uses one table in the body. The
>> actual report header is
>> >empty and the actual report footer only shows the
page
>> number. I use the
>> 1. In Reporting Services there is no sections called
>> Report Header or Report Footer although the black
space
>> above/below the data region can be regarded as Report
>> Header/Report Footer. Since "the actual report footer
>> only shows the page number", I'd like to confirm if
you
>> mean Page Header/Page Footer by saying Report
>> Header/Report Footer.
>>
>> >Table header and have "Repeat on New Page" set to
True.
>> I use the table
>> >header instead because I need to display some
summary
>> data at the top of each
>> >page.
>> 2. This is the second one I'd like to confirm. You
set
>> the "RepeatOnNewPage" property of the Table Header
>> rather than the Group Header to true.
>>
>> >I have 4 groups total and the header of the
outermost
>> group (table1_group1)
>> >is the one that repeats on each page.
>> 3. How did you do with the outermost group named
>> table1_group1 so that it repeats on each page? Did
you
>> set the "RepeatOnNewPage" property of the Group
Header
>> of this group to true or place a "Page Break at end"
of
>> the group?
>>
>> >The reports display fine most of the time and the
>> Table1_group1 table header
>> 4. Here by saying "the Table1_group1 table header" do
>> you mean the "group header of Table1_group1"?
>>
>> >repeats as it should, but whenever the spacing works
>> out that the
>> >Table1_Footer1 table footer needs to start on a new
>> page,
>> 5. A Table Footer only appears at the end of a table.
>> I'd like to confirm if you mean Table Footer or Group
>> Footer of Table1_group1.
>>
>> >the footer prints
>> >on its own without the table header. The
table1_Group1
>> table footer does not
>> >repeat on each page and only shows up as the last
page
>> for each group as it
>> >shows some totals/sums.
>> >Any ideas on how to fix this so the Table_1Group1
table
>> header will print
>> >even when only the Table1Group1 table footer is
being
>> printed?
>> 6. Setting the "RepeatOnNewPage" property of the
Group
>> Header to true should have no such a problem. By
doing
>> this the group header repeats on each page.
>> For us, the most efficient troubleshooting method
would
>> be reproducing this issue on our end. If the issue
>> persists, please try to reproduce the issue with a
>> sample database and post the detailed reproduce steps.
>> If anything is unclear, get in touch.
>> Sincerely,
>> William Wang
>> Microsoft Online Partner Support
>> Get Secure! - <www.microsoft.com/security>
>> =====================================================>> When responding to posts, please "Reply to Group" via
>> your newsreader so that others may learn and benefit
>> from your issue.
>> =====================================================>> This posting is provided "AS IS" with no warranties,
and
>> confers no rights.
>> --
>> >Thread-Topic: Orphaned Table Footers
>> >thread-index: AcUCWF6Szxan+iN7TLGB155pQjDGbg==>> >X-WBNR-Posting-Host: 204.92.98.25
>> >From: "=?Utf-8?B?QnJpYW4=?=" <Bri-Guy@.nospam.nospam>
>> >Subject: Orphaned Table Footers
>> >Date: Mon, 24 Jan 2005 13:05:01 -0800
>> >Lines: 20
>> >Message-ID:
>> <C6FB5F66-C1CB-41A0-A449-620826ECF7D7@.microsoft.com>
>> >MIME-Version: 1.0
>> >Content-Type: text/plain;
>> > charset="Utf-8"
>> >Content-Transfer-Encoding: 7bit
>> >X-Newsreader: Microsoft CDO for Windows 2000
>> >Content-Class: urn:content-classes:message
>> >Importance: normal
>> >Priority: normal
>> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
>> >Newsgroups: microsoft.public.sqlserver.reportingsvcs
>> >NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
>> >Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
>> >Xref: cpmsftngxa10.phx.gbl
>> microsoft.public.sqlserver.reportingsvcs:40664
>> >X-Tomcat-NG: microsoft.public.sqlserver.reportingsvcs
>> >
>> >Hello.
>> >
>> >I have a report that uses one table in the body. The
>> actual report header is
>> >empty and the actual report footer only shows the
page
>> number. I use the
>> >Table header and have "Repeat on New Page" set to
True.
>> I use the table
>> >header instead because I need to display some
summary
>> data at the top of each
>> >page.
>> >I have 4 groups total and the header of the
outermost
>> group (table1_group1)
>> >is the one that repeats on each page.
>> >The reports display fine most of the time and the
>> Table1_group1 table header
>> >repeats as it should, but whenever the spacing works
>> out that the
>> >Table1_Footer1 table footer needs to start on a new
>> page, the footer prints
>> >on its own without the table header. The
table1_Group1
>> table footer does not
>> >repeat on each page and only shows up as the last
page
>> for each group as it
>> >shows some totals/sums.
>> >Any ideas on how to fix this so the Table_1Group1
table
>> header will print
>> >even when only the Table1Group1 table footer is
being
>> printed?
>> >
>> >Thanks,
>> >Brian.
>> >
>>
>|||Hi Brian,
From the product team's feedback, in this case we've
made the detail row tall enough that the header row plus
the detail row plus the footer row is simply too big for
a page.
In the case of HTML and Preview, we use a flexible
pagination algorithm that allows pages to grow somewhat
to accommodate this sort of layout.
In the case of PDF or Print Preview, we must respect the
page size settings precisely.
This is by design in Reporting Services. As an end user
too, I can truly understand your concern about it.
Currently we have some options for you regarding this
issue:
a. You may want to send a feature change request to
mswish@.microsoft.com. By submitting your concern to
mswish@.microsoft.com you can get your voice into the
design plans for upcoming versions. Microsoft takes
customer requests and suggestions very seriously. MSWISH
is your voice to the development team. A significant
number of the design change requests come from our
customers through the MSWISH alias and the MSWISH web
site. http://www.microsoft.com/mswish. I encourage you
to submit this request.
b. You can talk to the support engineers directly in
Microsoft Product Support Services (PSS) to see if they
can find a workaround or offer a fix. For a complete
list of Microsoft Product Support Services phone
numbers, please go to the following address on the World
Wide Web:
<http://support.microsoft.com/directory/overview.asp>
If you are outside the US please see
http://support.microsoft.com for regional support phone
numbers.
HTH!
Sincerely,
William Wang
Microsoft Online Partner Support
When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from your issue.
This posting is provided "AS IS" with no warranties, and
confers no rights.
--
>X-Tomcat-ID: 215340416
>References:
<C6FB5F66-C1CB-41A0-A449-620826ECF7D7@.microsoft.com>
<QmipjprAFHA.2768@.cpmsftngxa10.phx.gbl>
<F2866859-4257-41B1-9F2F-FAACB7EEC085@.microsoft.com>
>MIME-Version: 1.0
>Content-Type: text/plain
>Content-Transfer-Encoding: 7bit
>From: v-rxwang@.online.microsoft.com (William Wang[MSFT])
>Organization: Microsoft
>Date: Wed, 26 Jan 2005 10:18:13 GMT
>Subject: RE: Orphaned Table Footers
>X-Tomcat-NG: microsoft.public.sqlserver.reportingsvcs
>Message-ID: <8rTWYB5AFHA.2504@.cpmsftngxa10.phx.gbl>
>Newsgroups: microsoft.public.sqlserver.reportingsvcs
>Lines: 273
>Path: cpmsftngxa10.phx.gbl
>Xref: cpmsftngxa10.phx.gbl
microsoft.public.sqlserver.reportingsvcs:40883
>NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
>Hi Brian,
>I will be looking into this issue and I will update you
>once I have more information.
>Sincerely,
>William Wang
>Microsoft Online Partner Support
>When responding to posts, please "Reply to Group" via
>your newsreader so that others may learn and benefit
>from your issue.
>=====================================================>Business-Critical Phone Support (BCPS) provides you
with
>technical phone support at no charge during critical
LAN
>outages or "business down" situations. This benefit is
>available 24 hours a day, 7 days a week to all
Microsoft
>technology partners in the United States and Canada.
>This and other support options are available here:
>BCPS:
>https://partner.microsoft.com/US/technicalsupport/suppor
t
>overview/40010469
>Others:
>https://partner.microsoft.com/US/technicalsupport/suppor
t
>overview/
>If you are outside the United States, please visit our
>International Support page:
>http://support.microsoft.com/default.aspx?scid=%2fintern
a
>tional.aspx.
>=====================================================>This posting is provided "AS IS" with no warranties,
and
>confers no rights.
>--
>>Thread-Topic: Orphaned Table Footers
>>thread-index: AcUDE9iY3e1yULFPQLmd8LylZ4RFtQ==>>X-WBNR-Posting-Host: 204.92.98.25
>>From: "=?Utf-8?B?QnJpYW4=?=" <Bri-Guy@.nospam.nospam>
>>References:
><C6FB5F66-C1CB-41A0-A449-620826ECF7D7@.microsoft.com>
><QmipjprAFHA.2768@.cpmsftngxa10.phx.gbl>
>>Subject: RE: Orphaned Table Footers
>>Date: Tue, 25 Jan 2005 11:27:02 -0800
>>Lines: 228
>>Message-ID:
><F2866859-4257-41B1-9F2F-FAACB7EEC085@.microsoft.com>
>>MIME-Version: 1.0
>>Content-Type: text/plain;
>> charset="Utf-8"
>>Content-Transfer-Encoding: 7bit
>>X-Newsreader: Microsoft CDO for Windows 2000
>>Content-Class: urn:content-classes:message
>>Importance: normal
>>Priority: normal
>>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
>>Newsgroups: microsoft.public.sqlserver.reportingsvcs
>>NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
>>Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
>>Xref: cpmsftngxa10.phx.gbl
>microsoft.public.sqlserver.reportingsvcs:40795
>>X-Tomcat-NG: microsoft.public.sqlserver.reportingsvcs
>>Hello.
>>Sorry, I used some wrong terminology. Here are the
>clarifications.
>>1) -Page header is empty.
>>- it is the page footer that only shows the page number
>>2) -Table header row is deleted (I don't use it).
>>- RepeatOnNewPage property of the Table1_Group1 header
>is set to true. This
>>is the header that contains some summary data and I
>want it to repeat on each
>>page.
>>- Table Footer is included. RepeatOnNewPage property
is
>set to TRUE. This is
>>just an empty row with a bottom border. This repeats
on
>each page to give the
>>table a bottom border on each page.
>>
>>3) -Table1_Group1 Header RepeatOnNewPage Property is
>TRUE
>>-When I go "Edit Group", Page break at start, include
>group header, include
>>group footer, AND repeat group header are checked off.
>So both "Repeat Group
>>Header" is checked and RepeatOnNewPage property is
TRUE.
>>4) - Yes, I mean the Group Header of Table1_Group1
>>5) - Yes, I mean the Group Footer of Table1_Group1
>>I think this might be the problem:
>>The Group Headers will repeat on each page in the
print
>preview and when
>>exporting to PDF as long as the page displays data
from
>the Table Details
>>section or data from inner groups. But if the
Outermost
>group footer is
>>squeezed onto the next page by itself then the group
>header does not show.
>>I was able to replicate this problem using a very
>simple report.
>>Steps:
>>1) Create a new report. have the data set return only
1
>row to make things
>>simple (.EG Select Top 1 * from table).
>>2) Create a table in the body of the report
>>3) Get rid of the table header and the table footer.
so
>only the table
>>details section remains.
>>4) Add a group. Group on anything since only 1 row is
>returned by the query.
>> -so now there's 3 rows in the layout. Table1_Group1
>Header, Detail, and
>>Table1_Group1 Footer.
>>5) Type something into the table1_group1 header,
>> -Edit the group and check off
>>6) Drag a field into the body.
>>7) type something into the table1_Group1 footer.
footer
>only shows up at the
>>end of each group change and does not repeat on each
>page.
>>8) Now, make the detail row long, so that it just
>squeezes the table1_Group1
>>footer onto the next page in the print preview.
>>The Table1_Group1 Header will show up on the first
page
>along with the
>>detail row, but in the next page, only the
>table1_Group1 footer row shows.
>>The table1_Group1 header does not appear even though
it
>should repeat on each
>>page.
>>This happens in the Print Preview (NOT THE PREVIEW TAB
>OR WHEN VIEWING
>>ONLINE) and also when you export the report to PDF.
>Viewing the report just
>>online is fine.
>>For my real report, the table1_Group1 header always
>repeats fine except on
>>pages where only the table1_Group1 footer has been
>squeezed onto the next
>>page by itself.
>>Like I said, my report has 4 groups, each group gives
>subtotals at various
>>levels and the table1_Group1 Footer gives a grand
total
>for each set.
>>Hopefully the problem is clear now.
>>Thanks!
>>Brian.
>>"William Wang[MSFT]" wrote:
>> Hi Brian,
>> I'd like to get a clear understanding of your issue
>to
>> be able to assist you better.
>> >I have a report that uses one table in the body.
The
>> actual report header is
>> >empty and the actual report footer only shows the
>page
>> number. I use the
>> 1. In Reporting Services there is no sections called
>> Report Header or Report Footer although the black
>space
>> above/below the data region can be regarded as
Report
>> Header/Report Footer. Since "the actual report
footer
>> only shows the page number", I'd like to confirm if
>you
>> mean Page Header/Page Footer by saying Report
>> Header/Report Footer.
>>
>> >Table header and have "Repeat on New Page" set to
>True.
>> I use the table
>> >header instead because I need to display some
>summary
>> data at the top of each
>> >page.
>> 2. This is the second one I'd like to confirm. You
>set
>> the "RepeatOnNewPage" property of the Table Header
>> rather than the Group Header to true.
>>
>> >I have 4 groups total and the header of the
>outermost
>> group (table1_group1)
>> >is the one that repeats on each page.
>> 3. How did you do with the outermost group named
>> table1_group1 so that it repeats on each page? Did
>you
>> set the "RepeatOnNewPage" property of the Group
>Header
>> of this group to true or place a "Page Break at end"
>of
>> the group?
>>
>> >The reports display fine most of the time and the
>> Table1_group1 table header
>> 4. Here by saying "the Table1_group1 table header"
do
>> you mean the "group header of Table1_group1"?
>>
>> >repeats as it should, but whenever the spacing
works
>> out that the
>> >Table1_Footer1 table footer needs to start on a new
>> page,
>> 5. A Table Footer only appears at the end of a
table.
>> I'd like to confirm if you mean Table Footer or
Group
>> Footer of Table1_group1.
>>
>> >the footer prints
>> >on its own without the table header. The
>table1_Group1
>> table footer does not
>> >repeat on each page and only shows up as the last
>page
>> for each group as it
>> >shows some totals/sums.
>> >Any ideas on how to fix this so the Table_1Group1
>table
>> header will print
>> >even when only the Table1Group1 table footer is
>being
>> printed?
>> 6. Setting the "RepeatOnNewPage" property of the
>Group
>> Header to true should have no such a problem. By
>doing
>> this the group header repeats on each page.
>> For us, the most efficient troubleshooting method
>would
>> be reproducing this issue on our end. If the issue
>> persists, please try to reproduce the issue with a
>> sample database and post the detailed reproduce
steps.
>> If anything is unclear, get in touch.
>> Sincerely,
>> William Wang
>> Microsoft Online Partner Support
>> Get Secure! - <www.microsoft.com/security>
>> =====================================================>> When responding to posts, please "Reply to Group"
via
>> your newsreader so that others may learn and benefit
>> from your issue.
>> =====================================================>> This posting is provided "AS IS" with no warranties,
>and
>> confers no rights.
>> --
>> >Thread-Topic: Orphaned Table Footers
>> >thread-index: AcUCWF6Szxan+iN7TLGB155pQjDGbg==>> >X-WBNR-Posting-Host: 204.92.98.25
>> >From: "=?Utf-8?B?QnJpYW4=?=" <Bri-Guy@.nospam.nospam>
>> >Subject: Orphaned Table Footers
>> >Date: Mon, 24 Jan 2005 13:05:01 -0800
>> >Lines: 20
>> >Message-ID:
>> <C6FB5F66-C1CB-41A0-A449-620826ECF7D7@.microsoft.com>
>> >MIME-Version: 1.0
>> >Content-Type: text/plain;
>> > charset="Utf-8"
>> >Content-Transfer-Encoding: 7bit
>> >X-Newsreader: Microsoft CDO for Windows 2000
>> >Content-Class: urn:content-classes:message
>> >Importance: normal
>> >Priority: normal
>> >X-MimeOLE: Produced By Microsoft MimeOLE
V6.00.3790.0
>> >Newsgroups: microsoft.public.sqlserver.reportingsvcs
>> >NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
>> >Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
>> >Xref: cpmsftngxa10.phx.gbl
>> microsoft.public.sqlserver.reportingsvcs:40664
>> >X-Tomcat-NG:
microsoft.public.sqlserver.reportingsvcs
>> >
>> >Hello.
>> >
>> >I have a report that uses one table in the body.
The
>> actual report header is
>> >empty and the actual report footer only shows the
>page
>> number. I use the
>> >Table header and have "Repeat on New Page" set to
>True.
>> I use the table
>> >header instead because I need to display some
>summary
>> data at the top of each
>> >page.
>> >I have 4 groups total and the header of the
>outermost
>> group (table1_group1)
>> >is the one that repeats on each page.
>> >The reports display fine most of the time and the
>> Table1_group1 table header
>> >repeats as it should, but whenever the spacing
works
>> out that the
>> >Table1_Footer1 table footer needs to start on a new
>> page, the footer prints
>> >on its own without the table header. The
>table1_Group1
>> table footer does not
>> >repeat on each page and only shows up as the last
>page
>> for each group as it
>> >shows some totals/sums.
>> >Any ideas on how to fix this so the Table_1Group1
>table
>> header will print
>> >even when only the Table1Group1 table footer is
>being
>> printed?
>> >
>> >Thanks,
>> >Brian.
>> >
>>
>|||Hi William,
I have the same problem as Brian and need to find a solution.
Whilst I accept that pagination dictates that the footer will be forced
onto a new page, it seems to me that, where one section of the
group/table is rendered on a new page (in this case the footer), then
the header should also be repeated on that page.
Can you or the product team suggest a workaround for this issue ?
Dave Martin
William Wang[MSFT] wrote:
> Hi Brian,
> From the product team's feedback, in this case we've
> made the detail row tall enough that the header row plus
> the detail row plus the footer row is simply too big for
> a page.
> In the case of HTML and Preview, we use a flexible
> pagination algorithm that allows pages to grow somewhat
> to accommodate this sort of layout.
> In the case of PDF or Print Preview, we must respect the
> page size settings precisely.
> This is by design in Reporting Services. As an end user
> too, I can truly understand your concern about it.
> Currently we have some options for you regarding this
> issue:
> a. You may want to send a feature change request to
> mswish@.microsoft.com. By submitting your concern to
> mswish@.microsoft.com you can get your voice into the
> design plans for upcoming versions. Microsoft takes
> customer requests and suggestions very seriously. MSWISH
> is your voice to the development team. A significant
> number of the design change requests come from our
> customers through the MSWISH alias and the MSWISH web
> site. http://www.microsoft.com/mswish. I encourage you
> to submit this request.
> b. You can talk to the support engineers directly in
> Microsoft Product Support Services (PSS) to see if they
> can find a workaround or offer a fix. For a complete
> list of Microsoft Product Support Services phone
> numbers, please go to the following address on the World
> Wide Web:
> <http://support.microsoft.com/directory/overview.asp>
> If you are outside the US please see
> http://support.microsoft.com for regional support phone
> numbers.
> HTH!
> Sincerely,
> William Wang
> Microsoft Online Partner Support
> When responding to posts, please "Reply to Group" via
> your newsreader so that others may learn and benefit
> from your issue.
> This posting is provided "AS IS" with no warranties, and
> confers no rights.
> --
>> X-Tomcat-ID: 215340416
>> References:
> <C6FB5F66-C1CB-41A0-A449-620826ECF7D7@.microsoft.com>
> <QmipjprAFHA.2768@.cpmsftngxa10.phx.gbl>
> <F2866859-4257-41B1-9F2F-FAACB7EEC085@.microsoft.com>
>> MIME-Version: 1.0
>> Content-Type: text/plain
>> Content-Transfer-Encoding: 7bit
>> From: v-rxwang@.online.microsoft.com (William Wang[MSFT])
>> Organization: Microsoft
>> Date: Wed, 26 Jan 2005 10:18:13 GMT
>> Subject: RE: Orphaned Table Footers
>> X-Tomcat-NG: microsoft.public.sqlserver.reportingsvcs
>> Message-ID: <8rTWYB5AFHA.2504@.cpmsftngxa10.phx.gbl>
>> Newsgroups: microsoft.public.sqlserver.reportingsvcs
>> Lines: 273
>> Path: cpmsftngxa10.phx.gbl
>> Xref: cpmsftngxa10.phx.gbl
> microsoft.public.sqlserver.reportingsvcs:40883
>> NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
>> Hi Brian,
>> I will be looking into this issue and I will update you
>> once I have more information.
>> Sincerely,
>> William Wang
>> Microsoft Online Partner Support
>> When responding to posts, please "Reply to Group" via
>> your newsreader so that others may learn and benefit
>>from your issue.
>> =====================================================>> Business-Critical Phone Support (BCPS) provides you
> with
>> technical phone support at no charge during critical
> LAN
>> outages or "business down" situations. This benefit is
>> available 24 hours a day, 7 days a week to all
> Microsoft
>> technology partners in the United States and Canada.
>> This and other support options are available here:
>> BCPS:
>> https://partner.microsoft.com/US/technicalsupport/suppor
> t
>> overview/40010469
>> Others:
>> https://partner.microsoft.com/US/technicalsupport/suppor
> t
>> overview/
>> If you are outside the United States, please visit our
>> International Support page:
>> http://support.microsoft.com/default.aspx?scid=%2fintern
> a
>> tional.aspx.
>> =====================================================>> This posting is provided "AS IS" with no warranties,
> and
>> confers no rights.
>> --
>> Thread-Topic: Orphaned Table Footers
>> thread-index: AcUDE9iY3e1yULFPQLmd8LylZ4RFtQ==>> X-WBNR-Posting-Host: 204.92.98.25
>> From: "=?Utf-8?B?QnJpYW4=?=" <Bri-Guy@.nospam.nospam>
>> References:
>> <C6FB5F66-C1CB-41A0-A449-620826ECF7D7@.microsoft.com>
>> <QmipjprAFHA.2768@.cpmsftngxa10.phx.gbl>
>> Subject: RE: Orphaned Table Footers
>> Date: Tue, 25 Jan 2005 11:27:02 -0800
>> Lines: 228
>> Message-ID:
>> <F2866859-4257-41B1-9F2F-FAACB7EEC085@.microsoft.com>
>> MIME-Version: 1.0
>> Content-Type: text/plain;
>> charset="Utf-8"
>> Content-Transfer-Encoding: 7bit
>> X-Newsreader: Microsoft CDO for Windows 2000
>> Content-Class: urn:content-classes:message
>> Importance: normal
>> Priority: normal
>> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
>> Newsgroups: microsoft.public.sqlserver.reportingsvcs
>> NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
>> Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
>> Xref: cpmsftngxa10.phx.gbl
>> microsoft.public.sqlserver.reportingsvcs:40795
>> X-Tomcat-NG: microsoft.public.sqlserver.reportingsvcs
>> Hello.
>> Sorry, I used some wrong terminology. Here are the
>> clarifications.
>> 1) -Page header is empty.
>> - it is the page footer that only shows the page number
>> 2) -Table header row is deleted (I don't use it).
>> - RepeatOnNewPage property of the Table1_Group1 header
>> is set to true. This
>> is the header that contains some summary data and I
>> want it to repeat on each
>> page.
>> - Table Footer is included. RepeatOnNewPage property
> is
>> set to TRUE. This is
>> just an empty row with a bottom border. This repeats
> on
>> each page to give the
>> table a bottom border on each page.
>>
>> 3) -Table1_Group1 Header RepeatOnNewPage Property is
>> TRUE
>> -When I go "Edit Group", Page break at start, include
>> group header, include
>> group footer, AND repeat group header are checked off.
>> So both "Repeat Group
>> Header" is checked and RepeatOnNewPage property is
> TRUE.
>> 4) - Yes, I mean the Group Header of Table1_Group1
>> 5) - Yes, I mean the Group Footer of Table1_Group1
>> I think this might be the problem:
>> The Group Headers will repeat on each page in the
> print
>> preview and when
>> exporting to PDF as long as the page displays data
> from
>> the Table Details
>> section or data from inner groups. But if the
> Outermost
>> group footer is
>> squeezed onto the next page by itself then the group
>> header does not show.
>> I was able to replicate this problem using a very
>> simple report.
>> Steps:
>> 1) Create a new report. have the data set return only
> 1
>> row to make things
>> simple (.EG Select Top 1 * from table).
>> 2) Create a table in the body of the report
>> 3) Get rid of the table header and the table footer.
> so
>> only the table
>> details section remains.
>> 4) Add a group. Group on anything since only 1 row is
>> returned by the query.
>> -so now there's 3 rows in the layout. Table1_Group1
>> Header, Detail, and
>> Table1_Group1 Footer.
>> 5) Type something into the table1_group1 header,
>> -Edit the group and check off
>> 6) Drag a field into the body.
>> 7) type something into the table1_Group1 footer.
> footer
>> only shows up at the
>> end of each group change and does not repeat on each
>> page.
>> 8) Now, make the detail row long, so that it just
>> squeezes the table1_Group1
>> footer onto the next page in the print preview.
>> The Table1_Group1 Header will show up on the first
> page
>> along with the
>> detail row, but in the next page, only the
>> table1_Group1 footer row shows.
>> The table1_Group1 header does not appear even though
> it
>> should repeat on each
>> page.
>> This happens in the Print Preview (NOT THE PREVIEW TAB
>> OR WHEN VIEWING
>> ONLINE) and also when you export the report to PDF.
>> Viewing the report just
>> online is fine.
>> For my real report, the table1_Group1 header always
>> repeats fine except on
>> pages where only the table1_Group1 footer has been
>> squeezed onto the next
>> page by itself.
>> Like I said, my report has 4 groups, each group gives
>> subtotals at various
>> levels and the table1_Group1 Footer gives a grand
> total
>> for each set.
>> Hopefully the problem is clear now.
>> Thanks!
>> Brian.
>> "William Wang[MSFT]" wrote:
>> Hi Brian,
>> I'd like to get a clear understanding of your issue
>> to
>> be able to assist you better.
>> I have a report that uses one table in the body.
> The
>> actual report header is
>> empty and the actual report footer only shows the
>> page
>> number. I use the
>> 1. In Reporting Services there is no sections called
>> Report Header or Report Footer although the black
>> space
>> above/below the data region can be regarded as
> Report
>> Header/Report Footer. Since "the actual report
> footer
>> only shows the page number", I'd like to confirm if
>> you
>> mean Page Header/Page Footer by saying Report
>> Header/Report Footer.
>>
>> Table header and have "Repeat on New Page" set to
>> True.
>> I use the table
>> header instead because I need to display some
>> summary
>> data at the top of each
>> page.
>> 2. This is the second one I'd like to confirm. You
>> set
>> the "RepeatOnNewPage" property of the Table Header
>> rather than the Group Header to true.
>>
>> I have 4 groups total and the header of the
>> outermost
>> group (table1_group1)
>> is the one that repeats on each page.
>> 3. How did you do with the outermost group named
>> table1_group1 so that it repeats on each page? Did
>> you
>> set the "RepeatOnNewPage" property of the Group
>> Header
>> of this group to true or place a "Page Break at end"
>> of
>> the group?
>>
>> The reports display fine most of the time and the
>> Table1_group1 table header
>> 4. Here by saying "the Table1_group1 table header"
> do
>> you mean the "group header of Table1_group1"?
>>
>> repeats as it should, but whenever the spacing
> works
>> out that the
>> Table1_Footer1 table footer needs to start on a new
>> page,
>> 5. A Table Footer only appears at the end of a
> table.
>> I'd like to confirm if you mean Table Footer or
> Group
>> Footer of Table1_group1.
>>
>> the footer prints
>> on its own without the table header. The
>> table1_Group1
>> table footer does not
>> repeat on each page and only shows up as the last
>> page
>> for each group as it
>> shows some totals/sums.
>> Any ideas on how to fix this so the Table_1Group1
>> table
>> header will print
>> even when only the Table1Group1 table footer is
>> being
>> printed?
>> 6. Setting the "RepeatOnNewPage" property of the
>> Group
>> Header to true should have no such a problem. By
>> doing
>> this the group header repeats on each page.
>> For us, the most efficient troubleshooting method
>> would
>> be reproducing this issue on our end. If the issue
>> persists, please try to reproduce the issue with a
>> sample database and post the detailed reproduce
> steps.
>> If anything is unclear, get in touch.
>> Sincerely,
>> William Wang
>> Microsoft Online Partner Support
>> Get Secure! - <www.microsoft.com/security>
>> =====================================================>> When responding to posts, please "Reply to Group"
> via
>> your newsreader so that others may learn and benefit
>> from your issue.
>> =====================================================>> This posting is provided "AS IS" with no warranties,
>> and
>> confers no rights.
>> --
>> Thread-Topic: Orphaned Table Footers
>> thread-index: AcUCWF6Szxan+iN7TLGB155pQjDGbg==>> X-WBNR-Posting-Host: 204.92.98.25
>> From: "=?Utf-8?B?QnJpYW4=?=" <Bri-Guy@.nospam.nospam>
>> Subject: Orphaned Table Footers
>> Date: Mon, 24 Jan 2005 13:05:01 -0800
>> Lines: 20
>> Message-ID:
>> <C6FB5F66-C1CB-41A0-A449-620826ECF7D7@.microsoft.com>
>> MIME-Version: 1.0
>> Content-Type: text/plain;
>> charset="Utf-8"
>> Content-Transfer-Encoding: 7bit
>> X-Newsreader: Microsoft CDO for Windows 2000
>> Content-Class: urn:content-classes:message
>> Importance: normal
>> Priority: normal
>> X-MimeOLE: Produced By Microsoft MimeOLE
> V6.00.3790.0
>> Newsgroups: microsoft.public.sqlserver.reportingsvcs
>> NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
>> Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
>> Xref: cpmsftngxa10.phx.gbl
>> microsoft.public.sqlserver.reportingsvcs:40664
>> X-Tomcat-NG:
> microsoft.public.sqlserver.reportingsvcs
>> Hello.
>> I have a report that uses one table in the body.
> The
>> actual report header is
>> empty and the actual report footer only shows the
>> page
>> number. I use the
>> Table header and have "Repeat on New Page" set to
>> True.
>> I use the table
>> header instead because I need to display some
>> summary
>> data at the top of each
>> page.
>> I have 4 groups total and the header of the
>> outermost
>> group (table1_group1)
>> is the one that repeats on each page.
>> The reports display fine most of the time and the
>> Table1_group1 table header
>> repeats as it should, but whenever the spacing
> works
>> out that the
>> Table1_Footer1 table footer needs to start on a new
>> page, the footer prints
>> on its own without the table header. The
>> table1_Group1
>> table footer does not
>> repeat on each page and only shows up as the last
>> page
>> for each group as it
>> shows some totals/sums.
>> Any ideas on how to fix this so the Table_1Group1
>> table
>> header will print
>> even when only the Table1Group1 table footer is
>> being
>> printed?
>> Thanks,
>> Brian.
>>
>

Orphaned Subscriptions

Running Win2k & SQL 2k
How do I remove orphaned subscriptions? I have several subscriptions that
appear in the distribution agent of the publisher that do not exist on the
subscriber.
Is there an SP to remove these? Is there a way I can do it manually?
TIA,
Larry...
It seems that ActiveX distribution and merge agents, as well as the merge
agents created with SQL CE subscribers are prone to not being cleaned up
correctly. Or perhpas I'm doing something incorrect.
First off make sure the agents aren't still running at the publisher. Use
sp_MSenum_replication_agents to determine the names of the active agents.
You have to pass the agent type
1=snapshot
2=logreader
3=distribution
4=merge
5=misc
9=queue reader
Then you have to determine the agent status, to do this change to the
distribution database and issue the following
sp_MSenum_distribution 'AgentName'
0=initializing
1=starting
2=stopped
3=running
4=idle
5=retry
6=failed
Once you have figured out the agent status you can begin to delete them.
In your subscription database issue an sp_helpsubscription or
sp_helpmergesubscription
Delete the subscription using sp_dropsubscription or
spdropmergesubscription. Use the values obtained from the above two
commands. Issue this in the publication database.
If this doesn't work you have to manually edit the system tables.
Hilary Cotter
Looking for a SQL Server replication book?
Now available for purchase at:
http://www.nwsu.com/0974973602.html
"Larry" <Larry@.discussions.microsoft.com> wrote in message
news:A1882E7A-AFCC-4A56-A07E-2B93BDDD6F6B@.microsoft.com...
> Running Win2k & SQL 2k
> How do I remove orphaned subscriptions? I have several subscriptions that
> appear in the distribution agent of the publisher that do not exist on the
> subscriber.
> Is there an SP to remove these? Is there a way I can do it manually?
> TIA,
> Larry...

Orphaned SQL Logins on the Mirror

Hi there,

I’ve recently set-up database mirroring between two servers in the same domain: DMZSQL01 and DMZSQL02 with a witness of DMZSQL03.

The mirroring as all gone according to plan.

Set up all the users/databases on the Mirror (DMZSQL02) and then do a back-up/restore to sync the databases and then enable the mirroring, this has all gone fine and we have lots of synchronised/mirrored databases now. However, if I do a failover the logins on the mirror are not valid, they are in SQL Server and also the database but they don’t work. I’ve read through other posts and found links to this SQL Server article:

http://support.microsoft.com/kb/918992/

This has had no effect though. Do I need to remove everything off my mirror and start again setting up the users first and then doing a backup/restore or is there some other way. Both servers are reporting the SID’s are the same for the logins which do not work. However the principle_ID is different, I'm quite sure if this is a problem or not?

Can anyone point me in the right direction of what to do next? Or have any ideas.

Thanks

Ed

I am quite sure the problem is just like your thread title orphaned logins

If you can, failover to the mirror server, and run this to list all orphaned logins in the database you want to fix (it's per-database level, not per-server-instance)

EXEC sp_change_users_login 'report'

I imagine you just have to fix them on the mirrored servers, and then failback to the primary server again after it's fixed and working on the mirror server

|||

Thanks,

I've just run that as you said and it's not showing the SQL Login I need in the database. Can you describe how I can fix/add that user?
The sp_change_users_login 'report' stored proc, does that list the users which should be there but aren't or those which are there which are supposed to be in the DB?

The SQL Login is showing in the User group for the database but not when I run the EXEC sp_change_users_login 'report' command?

Thanks
Ed

|||

Orphaned login is where the login exist at the server level, but they are not linked to the login credentials stored inside each database

I'd say first step is to open the login under Server -> Security -> pick the login -> User Mapping

if it's all blank, it's most likely orphaned. When you try to add permission on the database, it'll give you an error <- this almost guarantees it's orphaned

Then see this thread on how to auto-fix them

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=12615

|||

Search this forum for 'orphaned'.

|||

Hi, thanks for the help so far it’s much appreciated and very helpfull.

It appears the SP to fix the orphaned users did work; however, I now have a different problem.

The databases I am mirroring are used by our web site so in our web pages we have connection strings (and a few even use ODBC connections). In the connection strings we use an IP Address of the server (or server name) and database name/SQL Server login details.

Let’s say my principle server is 192.168.3.50 and my Mirror is 192.168.3.51 and my Witness is 192.168.3.52.

My web pages all use 192.168.3.50 as the server in their connection string, however when the database used is failed over, the active database now lives on 192.168.3.51, at this point the web page can’t find the database (as it isn’t active on the principle (192.168.3.50) any more) so reports a login failure. What I guess I need is some method for SQL server to automatically pull the data from 192.168.3.51 when 3.51 is active…. Does that make sense? So if the database on 192.168.3.50 is damaged the same server is still accessed by applications but data is pulled from 192.168.3.51 instead

If there any SQL Server mechanism I can set-up so the database continues to service requests seamlessly regardless to which server the database is currently active on?

Thanks

Ed

|||

this is off topic already, you should mark this one as answered, and create a new thread

in short, you should read more into mirroring and search a bit

other than .Net ADO which supports builtin failover server connection string, you have to handle the failover in the client side, on your own

it is beyond SQL server's scope.

We use DNS Alias so we can change the IP on the DNS without changing configurations for applications

but that means we don't have AUTOMATIC FAILOVER at all, but a manual failover with shorter down time (provided we get notified and react quickly)

Orphaned SPID

I have a spid that was killed in the middle of a
rollback. The status message states that the rollback is
100% complete. The query analyzer connection is not there
anymore.
I cannot kill that spid with the kill command. Is there
any way to kill it without bouncing the server?
"canaries" <anonymous@.discussions.microsoft.com> wrote in message
news:494701c47ff8$74a7d6b0$a401280a@.phx.gbl...
> I have a spid that was killed in the middle of a
> rollback. The status message states that the rollback is
> 100% complete. The query analyzer connection is not there
> anymore.
> I cannot kill that spid with the kill command. Is there
> any way to kill it without bouncing the server?
Assuming you're talking about bouncing the physical server, stopping and
restarting the mssqlserver service should do it for you...
Steve

Orphaned SPID

I have a spid that was killed in the middle of a
rollback. The status message states that the rollback is
100% complete. The query analyzer connection is not there
anymore.
I cannot kill that spid with the kill command. Is there
any way to kill it without bouncing the server?"canaries" <anonymous@.discussions.microsoft.com> wrote in message
news:494701c47ff8$74a7d6b0$a401280a@.phx.gbl...
> I have a spid that was killed in the middle of a
> rollback. The status message states that the rollback is
> 100% complete. The query analyzer connection is not there
> anymore.
> I cannot kill that spid with the kill command. Is there
> any way to kill it without bouncing the server?
Assuming you're talking about bouncing the physical server, stopping and
restarting the mssqlserver service should do it for you...
Steve

Orphaned Sessions and locks

Hi
We are using the transaction capabilities of ADO .Net. One of our tests was
to update a row in the database and break the network connection before the
transaction could be commited. This locks the row in the database for about
5 minutes before Sql Server realises that the communication has been broken,
times the transaction out and rolls it back. The question is, does anyone
know how to configure this timeout value?
Thanks
Craig
CB
Look at WAITFOR command in the BOL.
"CB" <craig.bryden@.derivco.com> wrote in message
news:enFjkvPOFHA.2748@.TK2MSFTNGP09.phx.gbl...
> Hi
> We are using the transaction capabilities of ADO .Net. One of our tests
was
> to update a row in the database and break the network connection before
the
> transaction could be commited. This locks the row in the database for
about
> 5 minutes before Sql Server realises that the communication has been
broken,
> times the transaction out and rolls it back. The question is, does anyone
> know how to configure this timeout value?
> Thanks
> Craig
>
|||Hi
How did you break the conenction? Unplug the network cable?
What is your command timeout setting (not connection)?
Regards
Mike
"CB" wrote:

> Hi
> We are using the transaction capabilities of ADO .Net. One of our tests was
> to update a row in the database and break the network connection before the
> transaction could be commited. This locks the row in the database for about
> 5 minutes before Sql Server realises that the communication has been broken,
> times the transaction out and rolls it back. The question is, does anyone
> know how to configure this timeout value?
> Thanks
> Craig
>
>
|||The network tells sql when the connection is broken. I beleive there is a
TCP option called Keepalive. This controls how frequently TCP checks each
connection to see if it is alive - perhaps setting the keepalive to a
smaller value...
Also, you might check about connection pooling - and see if that is having
an effect ( although it should not.)
Wayne Snyder, MCDBA, SQL Server MVP
Mariner, Charlotte, NC
www.mariner-usa.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"CB" <craig.bryden@.derivco.com> wrote in message
news:enFjkvPOFHA.2748@.TK2MSFTNGP09.phx.gbl...
> Hi
> We are using the transaction capabilities of ADO .Net. One of our tests
> was
> to update a row in the database and break the network connection before
> the
> transaction could be commited. This locks the row in the database for
> about
> 5 minutes before Sql Server realises that the communication has been
> broken,
> times the transaction out and rolls it back. The question is, does anyone
> know how to configure this timeout value?
> Thanks
> Craig
>
|||Yes, don't do this. This is old Client/Server technology and you should
migrate to n-Tier.
NEVER LET THE CLIENT CONTROL TRANSACTIONS. This is the number one
concurrency killer.
Batch up everything you want to do, including the BEGIN TRANS and COMMIT or
ROLLBACK logic and ship it to the SQL Server. Better yet, use nothing but
stored procedures for all of your CRUD operations.
Think through these two scenarios and tell me which one is more efficient
and faster.
Client-controlled transactions.
1. Client submits BEGIN TRAN request.
2. Request travels across network.
3. Server responds with success or failure.
4. Response travels across network.
5. Repeat process for each CRUD operation. Submit, traffic, response,
traffic.
6. Client does other processing.
7. Client submits COMMIT or ROLLBACK TRAN request.
8. Request travels across network.
9. Server responds.
10. Response travels across netowrk.
Server-controlled transactions.
1. Client submits parameters with stored procedure execution request.
2. Request travels across network.
3. Server executes transaction and all CRUD operations...very fast.
4. Response travels across network.
Hmmm? Which would you prefer? The point is about transaction processing is
that the DBMS must hold locks while the modifications are being made. You
DO NOT WANT those locks held simply because the client is having network
connections. If something should happen before the stored procedure and all
of the parameters reach the server, noting happens and the end user will
have to resubmit the request. If something should happen to the client
after the request was transmitted, the transaction still processes as if the
client were still connected. If someting happens to the server while
processing, then the ACID properties of the DBMS provide rollforward or
rollback functionality.
Sincerely,
Anthony Thomas
"CB" <craig.bryden@.derivco.com> wrote in message
news:enFjkvPOFHA.2748@.TK2MSFTNGP09.phx.gbl...
Hi
We are using the transaction capabilities of ADO .Net. One of our tests was
to update a row in the database and break the network connection before the
transaction could be commited. This locks the row in the database for about
5 minutes before Sql Server realises that the communication has been broken,
times the transaction out and rolls it back. The question is, does anyone
know how to configure this timeout value?
Thanks
Craig

Orphaned Sessions and locks

Hi
We are using the transaction capabilities of ADO .Net. One of our tests was
to update a row in the database and break the network connection before the
transaction could be commited. This locks the row in the database for about
5 minutes before Sql Server realises that the communication has been broken,
times the transaction out and rolls it back. The question is, does anyone
know how to configure this timeout value?
Thanks
CraigCB
Look at WAITFOR command in the BOL.
"CB" <craig.bryden@.derivco.com> wrote in message
news:enFjkvPOFHA.2748@.TK2MSFTNGP09.phx.gbl...
> Hi
> We are using the transaction capabilities of ADO .Net. One of our tests
was
> to update a row in the database and break the network connection before
the
> transaction could be commited. This locks the row in the database for
about
> 5 minutes before Sql Server realises that the communication has been
broken,
> times the transaction out and rolls it back. The question is, does anyone
> know how to configure this timeout value?
> Thanks
> Craig
>|||Hi
How did you break the conenction? Unplug the network cable?
What is your command timeout setting (not connection)?
Regards
Mike
"CB" wrote:
> Hi
> We are using the transaction capabilities of ADO .Net. One of our tests was
> to update a row in the database and break the network connection before the
> transaction could be commited. This locks the row in the database for about
> 5 minutes before Sql Server realises that the communication has been broken,
> times the transaction out and rolls it back. The question is, does anyone
> know how to configure this timeout value?
> Thanks
> Craig
>
>|||The network tells sql when the connection is broken. I beleive there is a
TCP option called Keepalive. This controls how frequently TCP checks each
connection to see if it is alive - perhaps setting the keepalive to a
smaller value...
Also, you might check about connection pooling - and see if that is having
an effect ( although it should not.)
Wayne Snyder, MCDBA, SQL Server MVP
Mariner, Charlotte, NC
www.mariner-usa.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"CB" <craig.bryden@.derivco.com> wrote in message
news:enFjkvPOFHA.2748@.TK2MSFTNGP09.phx.gbl...
> Hi
> We are using the transaction capabilities of ADO .Net. One of our tests
> was
> to update a row in the database and break the network connection before
> the
> transaction could be commited. This locks the row in the database for
> about
> 5 minutes before Sql Server realises that the communication has been
> broken,
> times the transaction out and rolls it back. The question is, does anyone
> know how to configure this timeout value?
> Thanks
> Craig
>|||Yes, don't do this. This is old Client/Server technology and you should
migrate to n-Tier.
NEVER LET THE CLIENT CONTROL TRANSACTIONS. This is the number one
concurrency killer.
Batch up everything you want to do, including the BEGIN TRANS and COMMIT or
ROLLBACK logic and ship it to the SQL Server. Better yet, use nothing but
stored procedures for all of your CRUD operations.
Think through these two scenarios and tell me which one is more efficient
and faster.
Client-controlled transactions.
1. Client submits BEGIN TRAN request.
2. Request travels across network.
3. Server responds with success or failure.
4. Response travels across network.
5. Repeat process for each CRUD operation. Submit, traffic, response,
traffic.
6. Client does other processing.
7. Client submits COMMIT or ROLLBACK TRAN request.
8. Request travels across network.
9. Server responds.
10. Response travels across netowrk.
Server-controlled transactions.
1. Client submits parameters with stored procedure execution request.
2. Request travels across network.
3. Server executes transaction and all CRUD operations...very fast.
4. Response travels across network.
Hmmm? Which would you prefer? The point is about transaction processing is
that the DBMS must hold locks while the modifications are being made. You
DO NOT WANT those locks held simply because the client is having network
connections. If something should happen before the stored procedure and all
of the parameters reach the server, noting happens and the end user will
have to resubmit the request. If something should happen to the client
after the request was transmitted, the transaction still processes as if the
client were still connected. If someting happens to the server while
processing, then the ACID properties of the DBMS provide rollforward or
rollback functionality.
Sincerely,
Anthony Thomas
--
"CB" <craig.bryden@.derivco.com> wrote in message
news:enFjkvPOFHA.2748@.TK2MSFTNGP09.phx.gbl...
Hi
We are using the transaction capabilities of ADO .Net. One of our tests was
to update a row in the database and break the network connection before the
transaction could be commited. This locks the row in the database for about
5 minutes before Sql Server realises that the communication has been broken,
times the transaction out and rolls it back. The question is, does anyone
know how to configure this timeout value?
Thanks
Craig

Orphaned Sessions and locks

Hi
We are using the transaction capabilities of ADO .Net. One of our tests was
to update a row in the database and break the network connection before the
transaction could be commited. This locks the row in the database for about
5 minutes before Sql Server realises that the communication has been broken,
times the transaction out and rolls it back. The question is, does anyone
know how to configure this timeout value?
Thanks
CraigCB
Look at WAITFOR command in the BOL.
"CB" <craig.bryden@.derivco.com> wrote in message
news:enFjkvPOFHA.2748@.TK2MSFTNGP09.phx.gbl...
> Hi
> We are using the transaction capabilities of ADO .Net. One of our tests
was
> to update a row in the database and break the network connection before
the
> transaction could be commited. This locks the row in the database for
about
> 5 minutes before Sql Server realises that the communication has been
broken,
> times the transaction out and rolls it back. The question is, does anyone
> know how to configure this timeout value?
> Thanks
> Craig
>|||Hi
How did you break the conenction? Unplug the network cable?
What is your command timeout setting (not connection)?
Regards
Mike
"CB" wrote:

> Hi
> We are using the transaction capabilities of ADO .Net. One of our tests wa
s
> to update a row in the database and break the network connection before th
e
> transaction could be commited. This locks the row in the database for abo
ut
> 5 minutes before Sql Server realises that the communication has been broke
n,
> times the transaction out and rolls it back. The question is, does anyone
> know how to configure this timeout value?
> Thanks
> Craig
>
>|||The network tells sql when the connection is broken. I beleive there is a
TCP option called Keepalive. This controls how frequently TCP checks each
connection to see if it is alive - perhaps setting the keepalive to a
smaller value...
Also, you might check about connection pooling - and see if that is having
an effect ( although it should not.)
Wayne Snyder, MCDBA, SQL Server MVP
Mariner, Charlotte, NC
www.mariner-usa.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"CB" <craig.bryden@.derivco.com> wrote in message
news:enFjkvPOFHA.2748@.TK2MSFTNGP09.phx.gbl...
> Hi
> We are using the transaction capabilities of ADO .Net. One of our tests
> was
> to update a row in the database and break the network connection before
> the
> transaction could be commited. This locks the row in the database for
> about
> 5 minutes before Sql Server realises that the communication has been
> broken,
> times the transaction out and rolls it back. The question is, does anyone
> know how to configure this timeout value?
> Thanks
> Craig
>|||Yes, don't do this. This is old Client/Server technology and you should
migrate to n-Tier.
NEVER LET THE CLIENT CONTROL TRANSACTIONS. This is the number one
concurrency killer.
Batch up everything you want to do, including the BEGIN TRANS and COMMIT or
ROLLBACK logic and ship it to the SQL Server. Better yet, use nothing but
stored procedures for all of your CRUD operations.
Think through these two scenarios and tell me which one is more efficient
and faster.
Client-controlled transactions.
1. Client submits BEGIN TRAN request.
2. Request travels across network.
3. Server responds with success or failure.
4. Response travels across network.
5. Repeat process for each CRUD operation. Submit, traffic, response,
traffic.
6. Client does other processing.
7. Client submits COMMIT or ROLLBACK TRAN request.
8. Request travels across network.
9. Server responds.
10. Response travels across netowrk.
Server-controlled transactions.
1. Client submits parameters with stored procedure execution request.
2. Request travels across network.
3. Server executes transaction and all CRUD operations...very fast.
4. Response travels across network.
Hmmm? Which would you prefer? The point is about transaction processing is
that the DBMS must hold locks while the modifications are being made. You
DO NOT WANT those locks held simply because the client is having network
connections. If something should happen before the stored procedure and all
of the parameters reach the server, noting happens and the end user will
have to resubmit the request. If something should happen to the client
after the request was transmitted, the transaction still processes as if the
client were still connected. If someting happens to the server while
processing, then the ACID properties of the DBMS provide rollforward or
rollback functionality.
Sincerely,
Anthony Thomas
"CB" <craig.bryden@.derivco.com> wrote in message
news:enFjkvPOFHA.2748@.TK2MSFTNGP09.phx.gbl...
Hi
We are using the transaction capabilities of ADO .Net. One of our tests was
to update a row in the database and break the network connection before the
transaction could be commited. This locks the row in the database for about
5 minutes before Sql Server realises that the communication has been broken,
times the transaction out and rolls it back. The question is, does anyone
know how to configure this timeout value?
Thanks
Craig