Showing posts with label text. Show all posts
Showing posts with label text. Show all posts

Wednesday, March 21, 2012

Post to a DB

Alright so here is what I am trying to do.

I have a form that someone fills out it has a text box as title, and a drop down box that is a category, and then a text area that is for their explanation.

On the back end I am using a stored procedure called sp_store_bkm. When I execute this it works just fine and puts the data that I put in it into the to table below is the Stored procedure code:

ALTER PROCEDURE sp_store_bkm
@.oID nvarchar OUTPUT,
@.oTitle nvarchar(50),
@.oCategory nvarchar(50),
@.obkmtext nvarchar(MAX)

AS BEGIN

INSERT INTO tbl_bkms(Title, Category, bkmtext)
VALUES(@.oTitle, @.oCategory, @.obkmtext)
Set @.oID= SCOPE_IDENTITY()
END

Now on my front end it comes up with an error in the lower left (erros on page). When I click on the error for details it seems like it is coming fromt he connection string. I cant find anything wrong with the connection string. Below is my code for the aspx page.

<%@. Page Language="VB" MasterPageFile="~/MasterPage.master" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">


<script>

function Submit2_onclick() {

Dim Connection As SqlConnection = "server=localhost;Database=BKM.mdf;integrated security=SSPI;"
connection.Open()
Try
Dim command As SqlCommand = New SqlCommand("sp_store_bkm", connection)

command.CommandType = CommandType.StoredProcedure
Dim oID As New SqlParameter("@.oID", SqlDbType.Int)
oID.Direction = ParameterDirection.Output

command.Parameters.Add(oID)
command.Parameters.Add("@.oTitle", title.text)
command.Parameters.Add("@.oCategory", category.text)
command.Parameters.Add("@.obkmtext", bkmtext.text)
command.ExecuteNonQuery()

Dim sOrderID As String = oID.Value }
</script>

<form method="post">
<table cellpadding="10" style="width: 100%">
<tr>
<td style="width: 100px">
<span style="font-size: 10pt; font-family: Verdana">
Login ID:
<br />
</span>
<asp:LoginName ID="LoginName1" runat="server" Font-Names="Verdana" Font-Size="10pt" ForeColor="Red" />
<span style="font-size: 10pt; font-family: Verdana">
<br />
<br />
Title:<br />
</span>
<input id="title" style="width: 374px" type="text" /><br />
<br />
<span style="font-size: 10pt; font-family: Verdana">
Category:<br />
</span>
<select id="Category" name="D1" size="1" language="javascript" onclick="return Select1_onclick()">
<option selected="selected">Office Applications</option>
<option>VPN</option>
<option>WLAN</option>
</select>

<br />
<span style="font-size: 10pt; font-family: Verdana">
<br />
Your BKM<br />
</span>
<textarea id="bkmtext" style="width: 378px; height: 196px"></textarea><br />
<br />
<input id="Reset1" type="reset" value="reset" />
<input id="Submit2" type="submit" value="submit" language="javascript" onclick="return Submit2_onclick()" /></td>
</tr>
</table>
</form>
</asp:Content>

Please help.

What,exactly is the error message?|||

Well I am closer now. I dont get errors on the page, but nothing gets posted into the DB. If there is an easier way to do this let me know. This is the way I was told to do it.

below is the aspx page, the stored procedure is still the same.

<%@. Page Language="VB" MasterPageFile="~/MasterPage.master" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">


<script language=vbscript type="text/vb">

function Submit2_onclick()

Dim Connection;As SqlConnection = 'Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\BKM.mdf;Integrated Security=True;User Instance=True'
connection.Open()
Try
Dim command As SqlCommand = New SqlCommand("sp_store_bkm", connection)

command.CommandType = CommandType.StoredProcedure
Dim oID As New SqlParameter("@.oID", SqlDbType.Int)
oID.Direction = ParameterDirection.Output

command.Parameters.Add(oID)
command.Parameters.Add("@.oTitle", title.text)
command.Parameters.Add("@.oCategory", category.text)
command.Parameters.Add("@.obkmtext", bkmtext.text)
command.ExecuteNonQuery()

Dim sOrderID As String = oID.Value
End function
</script>

<form method="post">
<table cellpadding="10" style="width: 100%">
<tr>
<td style="width: 100px">
<span style="font-size: 10pt; font-family: Verdana">
Login ID:
<br />
</span>
<asp:LoginName ID="LoginName1" runat="server" Font-Names="Verdana" Font-Size="10pt" ForeColor="Red" />
<span style="font-size: 10pt; font-family: Verdana">
<br />
<br />
Title:<br />
</span>
<input id="title" type="text" /><br />
<br />
<span style="font-size: 10pt; font-family: Verdana">
Category:<br />
</span> <select id="category">

<option selected="selected"></option>
<option>VPN</option>
</select>

<br />
<span style="font-size: 10pt; font-family: Verdana">
<br />
Your BKM<br />
</span>
<textarea id="bkmtext" style="width: 589px; height: 179px"></textarea><br />
<input id="Reset1" type="reset" value="reset" />
<input id="Submit2" type="submit" value="submit BKM" language=vbscript /></td>
</tr>
</table>
</form>
</asp:Content>

|||

now I get the error when I click submit that says

line 265
char: 1
Error: Type mismatch: 'Submit2_onclick'
Code: 0
URL: http://localhost:1755/rvosd_website/bkm/default.aspx

Tuesday, March 20, 2012

Post SP3 Full text performance degradation

Since upgrading to service pack 3a (from sql server with
no sp) I am experiencing performance issues with my full
text searches. Its hard to quantify the problem - but
since the upgrade I am definitely seeing significatnt
increase in duration for searches - especially when they
run concurrently.
As part of the upgrade the catalogs were rebuilt.
Any ideas would be appreciated
This is abnormal. There were some problems with the search algorithim prior
to SP 3 relating to ranking. If you are doing ordering you may experieince
some difference in performance.
I noticed a performance increase. How many simultaneous queries are you
running? You can get this metric by looking at the performance monitor
counter Microsoft Search:Queries
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
"rob" <anonymous@.discussions.microsoft.com> wrote in message
news:3ff201c4ab8e$5a1c3400$a301280a@.phx.gbl...
> Since upgrading to service pack 3a (from sql server with
> no sp) I am experiencing performance issues with my full
> text searches. Its hard to quantify the problem - but
> since the upgrade I am definitely seeing significatnt
> increase in duration for searches - especially when they
> run concurrently.
> As part of the upgrade the catalogs were rebuilt.
> Any ideas would be appreciated
|||Hilary,
Right now it is running at an average of about 300000, but
we are experiencing light load, and we are having no
problem. I'll keep the metric running and monitor what
happens when we do have problems.
The stored procedure that runs the various
containscontable commands uses dynamic sql, and also joins
on tables in other databases on the same server - do you
know if either of these aspects could have been affected
by SP3. I have made no code changes that would account
for the problems I am seeing.
THanks, Rob
>--Original Message--
>This is abnormal. There were some problems with the
search algorithim prior
>to SP 3 relating to ranking. If you are doing ordering
you may experieince
>some difference in performance.
>I noticed a performance increase. How many simultaneous
queries are you
>running? You can get this metric by looking at the
performance monitor
>counter Microsoft Search:Queries
>--
>Hilary Cotter
>Looking for a SQL Server replication book?
>http://www.nwsu.com/0974973602.html
>
>"rob" <anonymous@.discussions.microsoft.com> wrote in
message
>news:3ff201c4ab8e$5a1c3400$a301280a@.phx.gbl...
>
>.
>
|||Hilary,
I just saw the cpu flat-lining again, but the metric did
not really change.
Rob
>--Original Message--
>This is abnormal. There were some problems with the
search algorithim prior
>to SP 3 relating to ranking. If you are doing ordering
you may experieince
>some difference in performance.
>I noticed a performance increase. How many simultaneous
queries are you
>running? You can get this metric by looking at the
performance monitor
>counter Microsoft Search:Queries
>--
>Hilary Cotter
>Looking for a SQL Server replication book?
>http://www.nwsu.com/0974973602.html
>
>"rob" <anonymous@.discussions.microsoft.com> wrote in
message
>news:3ff201c4ab8e$5a1c3400$a301280a@.phx.gbl...
>
>.
>
|||are there any error messages in the event log from MSSearch or MSSCi?
When you say you saw the CPU flat lining I take it, that CPU is going to
100%, or it is remaining constant?
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
<anonymous@.discussions.microsoft.com> wrote in message
news:333301c4aba7$988ef3d0$a501280a@.phx.gbl...[vbcol=seagreen]
> Hilary,
> I just saw the cpu flat-lining again, but the metric did
> not really change.
> Rob
> search algorithim prior
> you may experieince
> queries are you
> performance monitor
> message
|||There are no errors or warnings - and the searches do
return after several seconds, but they run the cpu at 100%
until they return, and are much slower than before SP3 was
installed.
Do you think the problem could be related to cross-
database queries or dynamic sql?
Rob
>--Original Message--
>are there any error messages in the event log from
MSSearch or MSSCi?
>When you say you saw the CPU flat lining I take it, that
CPU is going to[vbcol=seagreen]
>100%, or it is remaining constant?
>--
>Hilary Cotter
>Looking for a SQL Server replication book?
>http://www.nwsu.com/0974973602.html
>
><anonymous@.discussions.microsoft.com> wrote in message
>news:333301c4aba7$988ef3d0$a501280a@.phx.gbl...
with[vbcol=seagreen]
full[vbcol=seagreen]
but[vbcol=seagreen]
they
>
>.
>
|||dynamic sql is often inefficient, but not always as in some cases the
execution plan will be cached and reused.
However, in the type of queries you would use with SQL FTS it is not cached.
It could be related to cross database queries, especially if you are not
fully qualifying your database and owner names.
Can you post your query here? Also how many queries are occuring per second
or minute? And how many rows are in your table?
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
<anonymous@.discussions.microsoft.com> wrote in message
news:36bb01c4abca$99400670$a501280a@.phx.gbl...[vbcol=seagreen]
> There are no errors or warnings - and the searches do
> return after several seconds, but they run the cpu at 100%
> until they return, and are much slower than before SP3 was
> installed.
> Do you think the problem could be related to cross-
> database queries or dynamic sql?
> Rob
> MSSearch or MSSCi?
> CPU is going to
> with
> full
> but
> they
|||Rob,
There were several MAJOR fixes related to FTS in SQL Server 2000 SP3 that
caused existing FT Catalogs to be automatically rebuilt (if you selected
them during the SP3 installation) or your could of deferred the rebuild if
the FT Catalogs were large and use the procedures in KB article Q240867 at a
later point in time. Do you know which option you selected during the SP3
upgrade?
Below are two KB articles that document these fixes related to FTS in SP3:
327217 (Q327217) INF: Installing SQL Server 2000 Service Pack 3 Rebuilds All
Full-Text Catalogs
http://support.microsoft.com/default...b;en-us;327217
312410 (Q312410) "FIX: Full Text RANK Results May Vary After Catalog
Repopulation"
http://support.microsoft.com/default...b;en-us;312410 (references
Q240867)
Regards,
John
<anonymous@.discussions.microsoft.com> wrote in message
news:36bb01c4abca$99400670$a501280a@.phx.gbl...[vbcol=seagreen]
> There are no errors or warnings - and the searches do
> return after several seconds, but they run the cpu at 100%
> until they return, and are much slower than before SP3 was
> installed.
> Do you think the problem could be related to cross-
> database queries or dynamic sql?
> Rob
> MSSearch or MSSCi?
> CPU is going to
> with
> full
> but
> they

post from text box to SQL insert

Hello,

I'm trying to update a single field of a record and i want to do it using a standard multi line text box but I'm not sure how to write the c# command to process the sql update. I would also like the entry to be added into the database with line breaks.

Thanks for your help

There is nothing to ask..... you can do it using the same way u r updating the others.... you do not need any c# command.... its the query on which all this depends...

you can use query... : update <table name> set <feild name>= textbox1.text where <condition>....

and about multi lines.... you do not need to worry about line breaks..... the data would be stored in the database just as the way it is in the multiline textbox.... and would be fetched in the same manner...

and do tell me if its any worthy 4 u or not.

|||

Ok - In theroy I get what your saying but then I have VisStudio post out the code I need to make the text box and the supporting data source and I get all of this:

----------------

<asp:TextBox ID="txtNotes" runat="server"></asp:TextBox>
<asp:SqlDataSource ID="sqlUpdateNotes" runat="server" ConnectionString="<%$ ConnectionStrings:dbNetOps %>" DeleteCommand="DELETE FROM [MasterServerlist] WHERE [ID] = ?" InsertCommand="INSERT INTO [MasterServerlist] ([ID], [Notes]) VALUES (?, ?)" ProviderName="<%$ ConnectionStrings:dbNetOps.ProviderName %>" SelectCommand="SELECT [ID], [Notes] FROM [MasterServerlist] WHERE ([ID] = ?)" UpdateCommand="UPDATE [MasterServerlist] SET [Notes] = ? WHERE [ID] = ?">
<DeleteParameters>
<asp:Parameter Name="ID" Type="Int32" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="Notes" Type="String" />
<asp:Parameter Name="ID" Type="Int32" />
</UpdateParameters>
<SelectParameters>
<asp:ControlParameter ControlID="gvServers" Name="ID" PropertyName="SelectedValue"
Type="Int32" />
</SelectParameters>
<InsertParameters>
<asp:Parameter Name="ID" Type="Int32" />
<asp:Parameter Name="Notes" Type="String" />
</InsertParameters>
</asp:SqlDataSource>
------------------

What I'm trying to do is :

1: display the contents of the notes field in the text box where the record matches the record selected in a gridview element

2: have the onchange event of the notes field then post back an update to the database and redisplay the new notes in the text field

I'm very new to ASP and appriciate your help.

Thank you

|||

I cannot find anything wrong in your code... could you please describe your problem in details...... or what kind of errors you are receiving(if any).....

And also you wanted to store all the data in the textbox to the database with the line breaks.... you should set the textmode attribute of textbox to multiline...

Monday, March 12, 2012

possible undetected deadlock

This is a multi-part message in MIME format.
--=_NextPart_000_0009_01C42850.46616820
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I'm receiving this in my SQL server event log. Although I have trace = flag 2004 enabled, this is all that I see in the SQL log.
Victim Resource Owner:
ResType:ExchangeId Stype:'AND' SPID:80 ECID:175 Ec:(0x2DD8A098) = Value:0x2d5a8c98 Cost:(0/270F)
I am running SQL 2000, build 840, on Windows server 2003. Also, I have = SQL
configured to use 14GB from a total of 16GB on the server.
Does anyone have any suggestions for how to address this?
--=_NextPart_000_0009_01C42850.46616820
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
&
I'm receiving this in my SQL server = event log. Although I have trace flag 2004 enabled, this is all that I see in = the SQL log.

Victim Resource = Owner: ResType:ExchangeId Stype:'AND' SPID:80 ECID:175 Ec:(0x2DD8A098) Value:0x2d5a8c98 Cost:(0/270F)


I am running SQL 2000, build 840, on Windows server 2003. Also, I have = SQLconfigured to use 14GB from a total of 16GB on the server.Does anyone have any = suggestions for how to address this?
--=_NextPart_000_0009_01C42850.46616820--I'm no expert on the log entry, but the word 'Victim' suggests to me that
this is not a deadlock, since SQL Server has chosen one of the transactions
as victim?
"ET" <et@.et.com> wrote in message
news:e2wuOHHKEHA.3944@.tk2msftngp13.phx.gbl...
I'm receiving this in my SQL server event log. Although I have trace flag
2004 enabled, this is all that I see in the SQL log.
Victim Resource Owner:
ResType:ExchangeId Stype:'AND' SPID:80 ECID:175 Ec:(0x2DD8A098)
Value:0x2d5a8c98 Cost:(0/270F)
I am running SQL 2000, build 840, on Windows server 2003. Also, I have SQL
configured to use 14GB from a total of 16GB on the server.
Does anyone have any suggestions for how to address this?|||This is a multi-part message in MIME format.
--=_NextPart_000_0061_01C4284F.80380960
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
ET,
What made you work with hotfix build 840? With hotfix builds you can =never be sure what you are getting.
Chris Wood
Alberta Department of Energy
CANADA
"ET" <et@.et.com> wrote in message =news:e2wuOHHKEHA.3944@.tk2msftngp13.phx.gbl...
I'm receiving this in my SQL server event log. Although I have trace =flag 2004 enabled, this is all that I see in the SQL log.
Victim Resource Owner:
ResType:ExchangeId Stype:'AND' SPID:80 ECID:175 Ec:(0x2DD8A098) =Value:0x2d5a8c98 Cost:(0/270F)
I am running SQL 2000, build 840, on Windows server 2003. Also, I have =SQL
configured to use 14GB from a total of 16GB on the server.
Does anyone have any suggestions for how to address this?
--=_NextPart_000_0061_01C4284F.80380960
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
&

ET,
What made you work with hotfix build =840? With hotfix builds you can never be sure what you are getting.
Chris Wood
Alberta Department of =Energy
CANADA
"ET" wrote in =message news:e2wuOHHKEHA.3944=@.tk2msftngp13.phx.gbl...
I'm receiving this in my SQL server =event log. Although I have trace flag 2004 enabled, this is all that I =see in the SQL log.

Victim Resource Owner: ResType:ExchangeId Stype:'AND' SPID:80 ECID:175 Ec:(0x2DD8A098) Value:0x2d5a8c98 Cost:(0/270F)


I am running SQL 2000, build 840, on Windows server 2003. Also, I have =SQLconfigured to use 14GB from a total of 16GB on the server.Does anyone have =any suggestions for how to address this?


--=_NextPart_000_0061_01C4284F.80380960--|||This is a multi-part message in MIME format.
--=_NextPart_000_0111_01C4284A.1FA2A420
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
What do you think you are getting with traceflag 2004? The flag for =trapping deadlocks is 1204. What exactly are you trying to address?
-- HTH
--
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"ET" <et@.et.com> wrote in message =news:e2wuOHHKEHA.3944@.tk2msftngp13.phx.gbl...
I'm receiving this in my SQL server event log. Although I have trace =flag 2004 enabled, this is all that I see in the SQL log.
Victim Resource Owner:
ResType:ExchangeId Stype:'AND' SPID:80 ECID:175 Ec:(0x2DD8A098) =Value:0x2d5a8c98 Cost:(0/270F)
I am running SQL 2000, build 840, on Windows server 2003. Also, I have =SQL
configured to use 14GB from a total of 16GB on the server.
Does anyone have any suggestions for how to address this?
--=_NextPart_000_0111_01C4284A.1FA2A420
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
&

What do you think you are getting with =traceflag 2004? The flag for trapping deadlocks is 1204.
What exactly are you trying to address?
-- HTH--Kalen DelaneySQL Server =MVPhttp://www.SolidQualityLearning.com">www.SolidQualityLearning.com=
"ET" wrote in =message news:e2wuOHHKEHA.3944=@.tk2msftngp13.phx.gbl...
I'm receiving this in my SQL server =event log. Although I have trace flag 2004 enabled, this is all that I =see in the SQL log.

Victim Resource Owner: ResType:ExchangeId Stype:'AND' SPID:80 ECID:175 Ec:(0x2DD8A098) Value:0x2d5a8c98 Cost:(0/270F)


I am running SQL 2000, build 840, on Windows server 2003. Also, I have =SQLconfigured to use 14GB from a total of 16GB on the server.Does anyone have =any suggestions for how to address this?


--=_NextPart_000_0111_01C4284A.1FA2A420--|||This is a multi-part message in MIME format.
--=_NextPart_000_003E_01C42865.2A7057B0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Sorry. That was a typo on my part. I meant 1204.
"Kalen Delaney" <replies@.public_newsgroups.com> wrote in message =news:#h#bTTIKEHA.2716@.tk2msftngp13.phx.gbl...
What do you think you are getting with traceflag 2004? The flag for =trapping deadlocks is 1204. What exactly are you trying to address?
-- HTH
--
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"ET" <et@.et.com> wrote in message =news:e2wuOHHKEHA.3944@.tk2msftngp13.phx.gbl...
I'm receiving this in my SQL server event log. Although I have trace =flag 2004 enabled, this is all that I see in the SQL log.
Victim Resource Owner:
ResType:ExchangeId Stype:'AND' SPID:80 ECID:175 Ec:(0x2DD8A098) =Value:0x2d5a8c98 Cost:(0/270F)
I am running SQL 2000, build 840, on Windows server 2003. Also, I =have SQL
configured to use 14GB from a total of 16GB on the server.
Does anyone have any suggestions for how to address this?
--=_NextPart_000_003E_01C42865.2A7057B0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
&

Sorry. That was a typo on my part. I =meant 1204.
"Kalen Delaney" wrote in message news:#h#bTTIKEHA.2716=@.tk2msftngp13.phx.gbl...
What do you think you are getting =with traceflag 2004? The flag for trapping deadlocks is 1204.
What exactly are you trying to address?
-- HTH--Kalen DelaneySQL Server = MVPhttp://www.SolidQualityLearning.com">www.SolidQualityLearning.com=

"ET" wrote =in message news:e2wuOHHKEHA.3944=@.tk2msftngp13.phx.gbl...
I'm receiving this in my SQL server =event log. Although I have trace flag 2004 enabled, this is all that I =see in the SQL log.

Victim Resource Owner: ResType:ExchangeId Stype:'AND' SPID:80 ECID:175 Ec:(0x2DD8A098) Value:0x2d5a8c98 Cost:(0/270F)


I am running SQL 2000, build 840, on Windows server 2003. Also, I have SQLconfigured to use 14GB from a total of 16GB on the server.Does anyone have any suggestions for how to address this?


--=_NextPart_000_003E_01C42865.2A7057B0--|||This is a multi-part message in MIME format.
--=_NextPart_000_0044_01C42865.7EDCBD20
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
It was given to me by Microsoft some time ago to resolve an issue we =were having at the time.
"Chris Wood" <anonymous@.discussions.microsoft.com> wrote in message =news:ORk$LHIKEHA.2888@.TK2MSFTNGP09.phx.gbl...
ET,
What made you work with hotfix build 840? With hotfix builds you can =never be sure what you are getting.
Chris Wood
Alberta Department of Energy
CANADA
"ET" <et@.et.com> wrote in message =news:e2wuOHHKEHA.3944@.tk2msftngp13.phx.gbl...
I'm receiving this in my SQL server event log. Although I have trace =flag 2004 enabled, this is all that I see in the SQL log.
Victim Resource Owner:
ResType:ExchangeId Stype:'AND' SPID:80 ECID:175 Ec:(0x2DD8A098) =Value:0x2d5a8c98 Cost:(0/270F)
I am running SQL 2000, build 840, on Windows server 2003. Also, I =have SQL
configured to use 14GB from a total of 16GB on the server.
Does anyone have any suggestions for how to address this?
--=_NextPart_000_0044_01C42865.7EDCBD20
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
&

It was given to me by Microsoft some =time ago to resolve an issue we were having at the time.
"Chris Wood" wrote in message news:ORk$LHIKEHA.2888=@.TK2MSFTNGP09.phx.gbl...
ET,

What made you work with hotfix build =840? With hotfix builds you can never be sure what you are getting.

Chris Wood
Alberta Department of =Energy
CANADA
"ET" wrote =in message news:e2wuOHHKEHA.3944=@.tk2msftngp13.phx.gbl...
I'm receiving this in my SQL server =event log. Although I have trace flag 2004 enabled, this is all that I =see in the SQL log.

Victim Resource Owner: ResType:ExchangeId Stype:'AND' SPID:80 ECID:175 Ec:(0x2DD8A098) Value:0x2d5a8c98 Cost:(0/270F)


I am running SQL 2000, build 840, on Windows server 2003. Also, I have SQLconfigured to use 14GB from a total of 16GB on the server.Does anyone have any suggestions for how to address this?


--=_NextPart_000_0044_01C42865.7EDCBD20--|||This is a multi-part message in MIME format.
--=_NextPart_000_008E_01C4285C.70769B60
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
You must be using replication.
Chris
"ET" <et@.et.com> wrote in message =news:%23ZgYHcIKEHA.3592@.TK2MSFTNGP09.phx.gbl...
It was given to me by Microsoft some time ago to resolve an issue we =were having at the time.
"Chris Wood" <anonymous@.discussions.microsoft.com> wrote in message =news:ORk$LHIKEHA.2888@.TK2MSFTNGP09.phx.gbl...
ET,
What made you work with hotfix build 840? With hotfix builds you can =never be sure what you are getting.
Chris Wood
Alberta Department of Energy
CANADA
"ET" <et@.et.com> wrote in message =news:e2wuOHHKEHA.3944@.tk2msftngp13.phx.gbl...
I'm receiving this in my SQL server event log. Although I have =trace flag 2004 enabled, this is all that I see in the SQL log.
Victim Resource Owner:
ResType:ExchangeId Stype:'AND' SPID:80 ECID:175 Ec:(0x2DD8A098) =Value:0x2d5a8c98 Cost:(0/270F)
I am running SQL 2000, build 840, on Windows server 2003. Also, I =have SQL
configured to use 14GB from a total of 16GB on the server.
Does anyone have any suggestions for how to address this?
--=_NextPart_000_008E_01C4285C.70769B60
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>You must be using =replication.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Chris</FONT></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"ET" <<A href=3D"mailto:et@.et.com">et@.et.com</A>> wrote in =message <A =href=3D"news:%23ZgYHcIKEHA.3592@.TK2MSFTNGP09.phx.gbl">news:%23ZgYHcIKEHA.=3592@.TK2MSFTNGP09.phx.gbl</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>It was given to me by Microsoft some =time ago to resolve an issue we were having at the time.</FONT></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Chris Wood" <<A =href=3D"mailto:anonymous@.discussions.microsoft.com">anonymous@.discussions=.microsoft.com</A>> wrote in message <A =href=3D"news:ORk$LHIKEHA.2888@.TK2MSFTNGP09.phx.gbl">news:ORk$LHIKEHA.2888=@.TK2MSFTNGP09.phx.gbl</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>ET,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>What made you work with hotfix =build 840? With hotfix builds you can never be sure what you are =getting.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Chris Wood</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Alberta Department of =Energy</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>CANADA</FONT></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"ET" <<A href=3D"mailto:et@.et.com">et@.et.com</A>> wrote =in message <A =href=3D"news:e2wuOHHKEHA.3944@.tk2msftngp13.phx.gbl">news:e2wuOHHKEHA.3944=@.tk2msftngp13.phx.gbl</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>I'm receiving this in my SQL =server event log. Although I have trace flag 2004 enabled, this is all that I see in the SQL log.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Victim Resource Owner:<BR> ResType:ExchangeId Stype:'AND' SPID:80 ECID:175 Ec:(0x2DD8A098) Value:0x2d5a8c98 Cost:(0/270F)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3DArial size=3D2></FONT></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3D"Times New Roman" =size=3D3>I am running SQL 2000, build 840, on Windows server 2003. Also, I have SQL<BR>configured to use 14GB from a total of 16GB on the server.<BR><BR>Does anyone have any suggestions for how to address =
this?</FONT><BR></DIV>
=<DIV><BR><BR></DIV></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></FONT></BODY><=/HTML>
--=_NextPart_000_008E_01C4285C.70769B60--|||This is a multi-part message in MIME format.
--=_NextPart_000_0082_01C4286E.7E3DA7E0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
No
"Chris Wood" <anonymous@.discussions.microsoft.com> wrote in message =news:u4yS86IKEHA.1388@.TK2MSFTNGP09.phx.gbl...
You must be using replication.
Chris
"ET" <et@.et.com> wrote in message =news:%23ZgYHcIKEHA.3592@.TK2MSFTNGP09.phx.gbl...
It was given to me by Microsoft some time ago to resolve an issue we =were having at the time.
"Chris Wood" <anonymous@.discussions.microsoft.com> wrote in =message news:ORk$LHIKEHA.2888@.TK2MSFTNGP09.phx.gbl...
ET,
What made you work with hotfix build 840? With hotfix builds you =can never be sure what you are getting.
Chris Wood
Alberta Department of Energy
CANADA
"ET" <et@.et.com> wrote in message =news:e2wuOHHKEHA.3944@.tk2msftngp13.phx.gbl...
I'm receiving this in my SQL server event log. Although I have =trace flag 2004 enabled, this is all that I see in the SQL log.
Victim Resource Owner:
ResType:ExchangeId Stype:'AND' SPID:80 ECID:175 Ec:(0x2DD8A098) =Value:0x2d5a8c98 Cost:(0/270F)
I am running SQL 2000, build 840, on Windows server 2003. Also, =I have SQL
configured to use 14GB from a total of 16GB on the server.
Does anyone have any suggestions for how to address this?
--=_NextPart_000_0082_01C4286E.7E3DA7E0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
&

No
"Chris Wood" wrote in message news:u4yS86IKEHA.1388=@.TK2MSFTNGP09.phx.gbl...
You must be using =replication.

Chris
"ET" wrote =in message news:%23ZgYHcIKEHA.=3592@.TK2MSFTNGP09.phx.gbl...
It was given to me by Microsoft =some time ago to resolve an issue we were having at the time.
"Chris Wood" wrote in message news:ORk$LHIKEHA.2888=@.TK2MSFTNGP09.phx.gbl...
ET,

What made you work with hotfix =build 840? With hotfix builds you can never be sure what you are getting.

Chris Wood
Alberta Department of =Energy
CANADA
"ET" =wrote in message news:e2wuOHHKEHA.3944=@.tk2msftngp13.phx.gbl...
I'm receiving this in my SQL =server event log. Although I have trace flag 2004 enabled, this is all that I = see in the SQL log.

Victim Resource Owner: ResType:ExchangeId Stype:'AND' SPID:80 ECID:175 Ec:(0x2DD8A098) Value:0x2d5a8c98 Cost:(0/270F)


I am running SQL 2000, build 840, on Windows server 2003. Also, I =have SQLconfigured to use 14GB from a total of 16GB on the server.Does anyone have any suggestions for how to =address this?
=

--=_NextPart_000_0082_01C4286E.7E3DA7E0--|||This is a multi-part message in MIME format.
--=_NextPart_000_00A8_01C4285C.1BA6B930
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Ok, so what are you trying to address? Do you know you have a deadlock? How? How are you checking the errorlog?
-- HTH
--
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"ET" <et@.et.com> wrote in message =news:#KRAzaIKEHA.3628@.TK2MSFTNGP12.phx.gbl...
Sorry. That was a typo on my part. I meant 1204.
"Kalen Delaney" <replies@.public_newsgroups.com> wrote in message =news:#h#bTTIKEHA.2716@.tk2msftngp13.phx.gbl...
What do you think you are getting with traceflag 2004? The flag for =trapping deadlocks is 1204. What exactly are you trying to address?
-- HTH
--
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"ET" <et@.et.com> wrote in message =news:e2wuOHHKEHA.3944@.tk2msftngp13.phx.gbl...
I'm receiving this in my SQL server event log. Although I have =trace flag 2004 enabled, this is all that I see in the SQL log.
Victim Resource Owner:
ResType:ExchangeId Stype:'AND' SPID:80 ECID:175 Ec:(0x2DD8A098) =Value:0x2d5a8c98 Cost:(0/270F)
I am running SQL 2000, build 840, on Windows server 2003. Also, I =have SQL
configured to use 14GB from a total of 16GB on the server.
Does anyone have any suggestions for how to address this?
--=_NextPart_000_00A8_01C4285C.1BA6B930
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Ok, so what are you trying to address? </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Do you know you have a deadlock? How? =</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>How are you checking the =errorlog?</FONT><BR>-- <BR>HTH<BR>--<BR>Kalen Delaney<BR>SQL Server MVP<BR><A href=3D"www.solidqualitylearning.com=/">http://www.SolidQualityLearning.com">www.SolidQualityLearning.com=
</A></DIV>
<DIV> </DIV>
<DIV> </DIV>
<BLOCKQUOTE dir=3Dltr style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"ET" <<A href=3D"mailto:et@.et.com">et@.et.com</A>> wrote in =message <A =href=3D"news:#KRAzaIKEHA.3628@.TK2MSFTNGP12.phx.gbl">news:#KRAzaIKEHA.3628=@.TK2MSFTNGP12.phx.gbl</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>Sorry. That was a typo on my part. I =meant 1204.</FONT></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Kalen Delaney" <<A =href=3D"mailto:replies@.public_newsgroups.com">replies@.public_newsgroups.c=om</A>> wrote in message <A =href=3D"news:#h#bTTIKEHA.2716@.tk2msftngp13.phx.gbl">news:#h#bTTIKEHA.2716=@.tk2msftngp13.phx.gbl</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>What do you think you are getting =with traceflag 2004? The flag for trapping deadlocks is 1204. =</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>What exactly are you trying to address?</FONT></DIV>
<DIV><BR>-- <BR>HTH<BR>--<BR>Kalen Delaney<BR>SQL =Server MVP<BR><A =href=3D"www.solidqualitylearning.com=/">http://www.SolidQualityLearning.com">www.SolidQualityLearning.com=
</A></DIV>
<DIV> </DIV>
<DIV> </DIV>
<BLOCKQUOTE dir=3Dltr style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"ET" <<A href=3D"mailto:et@.et.com">et@.et.com</A>> wrote =in message <A =href=3D"news:e2wuOHHKEHA.3944@.tk2msftngp13.phx.gbl">news:e2wuOHHKEHA.3944=@.tk2msftngp13.phx.gbl</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>I'm receiving this in my SQL =server event log. Although I have trace flag 2004 enabled, this is all that I see in the SQL log.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Victim Resource Owner:<BR> ResType:ExchangeId Stype:'AND' SPID:80 ECID:175 Ec:(0x2DD8A098) Value:0x2d5a8c98 Cost:(0/270F)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3DArial size=3D2></FONT></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3D"Times New Roman" =size=3D3>I am running SQL 2000, build 840, on Windows server 2003. Also, I have SQL<BR>configured to use 14GB from a total of 16GB on the server.<BR><BR>Does anyone have any suggestions for how to address =
this?</FONT><BR></DIV>
=<DIV><BR><BR></DIV></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></FONT></BODY><=/HTML>
--=_NextPart_000_00A8_01C4285C.1BA6B930--|||This is a multi-part message in MIME format.
--=_NextPart_000_00B4_01C4287E.EC873210
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I was reading the errorlog using xp_readerrorlog when I noticed thse =entries.
I am trying to determine if this is some type of undetected deadlock =that may be degrading performance in some way.
"Kalen Delaney" <replies@.public_newsgroups.com> wrote in message =news:esu8SbJKEHA.3920@.TK2MSFTNGP10.phx.gbl...
Ok, so what are you trying to address? Do you know you have a deadlock? How? How are you checking the errorlog?
-- HTH
--
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"ET" <et@.et.com> wrote in message =news:#KRAzaIKEHA.3628@.TK2MSFTNGP12.phx.gbl...
Sorry. That was a typo on my part. I meant 1204.
"Kalen Delaney" <replies@.public_newsgroups.com> wrote in message =news:#h#bTTIKEHA.2716@.tk2msftngp13.phx.gbl...
What do you think you are getting with traceflag 2004? The flag =for trapping deadlocks is 1204. What exactly are you trying to address?
-- HTH
--
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"ET" <et@.et.com> wrote in message =news:e2wuOHHKEHA.3944@.tk2msftngp13.phx.gbl...
I'm receiving this in my SQL server event log. Although I have =trace flag 2004 enabled, this is all that I see in the SQL log.
Victim Resource Owner:
ResType:ExchangeId Stype:'AND' SPID:80 ECID:175 Ec:(0x2DD8A098) =Value:0x2d5a8c98 Cost:(0/270F)
I am running SQL 2000, build 840, on Windows server 2003. Also, =I have SQL
configured to use 14GB from a total of 16GB on the server.
Does anyone have any suggestions for how to address this?
--=_NextPart_000_00B4_01C4287E.EC873210
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
&

I was reading the errorlog using =xp_readerrorlog when I noticed thse entries.
I am trying to determine if this is =some type of undetected deadlock that may be degrading performance in some =way.
"Kalen Delaney" wrote in message news:esu8SbJKEHA.3920=@.TK2MSFTNGP10.phx.gbl...
Ok, so what are you trying to =address?
Do you know you have a deadlock? How? =
How are you checking the =errorlog?-- HTH--Kalen DelaneySQL Server MVPhttp://www.SolidQualityLearning.com">www.SolidQualityLearning.com=

"ET" wrote =in message news:#KRAzaIKEHA.3628=@.TK2MSFTNGP12.phx.gbl...
Sorry. That was a typo on my part. =I meant 1204.
"Kalen Delaney" wrote in message news:#h#bTTIKEHA.2716=@.tk2msftngp13.phx.gbl...
What do you think you are getting =with traceflag 2004? The flag for trapping deadlocks is 1204. = What exactly are you trying to address?
-- HTH--Kalen DelaneySQL =Server MVPhttp://www.SolidQualityLearning.com">www.SolidQualityLearning.com=

"ET" =wrote in message news:e2wuOHHKEHA.3944=@.tk2msftngp13.phx.gbl...
I'm receiving this in my SQL =server event log. Although I have trace flag 2004 enabled, this is all that I = see in the SQL log.

Victim Resource Owner: ResType:ExchangeId Stype:'AND' SPID:80 ECID:175 Ec:(0x2DD8A098) Value:0x2d5a8c98 Cost:(0/270F)


I am running SQL 2000, build 840, on Windows server 2003. Also, I =have SQLconfigured to use 14GB from a total of 16GB on the server.Does anyone have any suggestions for how to =address this?
=

--=_NextPart_000_00B4_01C4287E.EC873210--|||This is a multi-part message in MIME format.
--=_NextPart_000_01E0_01C42874.FD574990
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Why don't you just open up the errorlog in notepad and see if there is =more?
-- HTH
--
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"ET" <et@.et.com> wrote in message =news:#aq00BKKEHA.2024@.TK2MSFTNGP11.phx.gbl...
I was reading the errorlog using xp_readerrorlog when I noticed thse =entries.
I am trying to determine if this is some type of undetected deadlock =that may be degrading performance in some way.
"Kalen Delaney" <replies@.public_newsgroups.com> wrote in message =news:esu8SbJKEHA.3920@.TK2MSFTNGP10.phx.gbl...
Ok, so what are you trying to address? Do you know you have a deadlock? How? How are you checking the errorlog?
-- HTH
--
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"ET" <et@.et.com> wrote in message =news:#KRAzaIKEHA.3628@.TK2MSFTNGP12.phx.gbl...
Sorry. That was a typo on my part. I meant 1204.
"Kalen Delaney" <replies@.public_newsgroups.com> wrote in message =news:#h#bTTIKEHA.2716@.tk2msftngp13.phx.gbl...
What do you think you are getting with traceflag 2004? The flag =for trapping deadlocks is 1204. What exactly are you trying to address?
-- HTH
--
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"ET" <et@.et.com> wrote in message =news:e2wuOHHKEHA.3944@.tk2msftngp13.phx.gbl...
I'm receiving this in my SQL server event log. Although I have =trace flag 2004 enabled, this is all that I see in the SQL log.
Victim Resource Owner:
ResType:ExchangeId Stype:'AND' SPID:80 ECID:175 =Ec:(0x2DD8A098) Value:0x2d5a8c98 Cost:(0/270F)
I am running SQL 2000, build 840, on Windows server 2003. =Also, I have SQL
configured to use 14GB from a total of 16GB on the server.
Does anyone have any suggestions for how to address this?
--=_NextPart_000_01E0_01C42874.FD574990
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
&

Why don't you just open up the errorlog =in notepad and see if there is more?
-- HTH--Kalen DelaneySQL Server =MVPhttp://www.SolidQualityLearning.com">www.SolidQualityLearning.com=
"ET" wrote in =message news:#aq00BKKEHA.2024=@.TK2MSFTNGP11.phx.gbl...
I was reading the errorlog using =xp_readerrorlog when I noticed thse entries.

I am trying to determine if this is =some type of undetected deadlock that may be degrading performance in some way.
"Kalen Delaney" wrote in message news:esu8SbJKEHA.3920=@.TK2MSFTNGP10.phx.gbl...
Ok, so what are you trying to =address?
Do you know you have a deadlock? =How?
How are you checking the =errorlog?-- HTH--Kalen DelaneySQL Server MVPhttp://www.SolidQualityLearning.com">www.SolidQualityLearning.com=

"ET" wrote =in message news:#KRAzaIKEHA.3628=@.TK2MSFTNGP12.phx.gbl...
Sorry. That was a typo on my =part. I meant 1204.
"Kalen Delaney" wrote in message news:#h#bTTIKEHA.2716=@.tk2msftngp13.phx.gbl...
What do you think you are =getting with traceflag 2004? The flag for trapping deadlocks is 1204. = What exactly are you trying to address?
-- HTH--Kalen DelaneySQL =Server MVPhttp://www.SolidQualityLearning.com">www.SolidQualityLearning.com=

"ET" =wrote in message news:e2wuOHHKEHA.3944=@.tk2msftngp13.phx.gbl...
I'm receiving this in my SQL =server event log. Although I have trace flag 2004 enabled, this is all that =I see in the SQL log.

Victim Resource Owner: ResType:ExchangeId Stype:'AND' SPID:80 =ECID:175 Ec:(0x2DD8A098) Value:0x2d5a8c98 Cost:(0/270F)


I am running SQL 2000, build 840, on Windows server 2003. Also, I =have SQLconfigured to use 14GB from a total of 16GB on the server.Does anyone have any suggestions for how to =address this?
=

--=_NextPart_000_01E0_01C42874.FD574990--|||This is a multi-part message in MIME format.
--=_NextPart_000_000B_01C428FF.EE350480
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
There is no more. That's my point. Whether I look at it using =xp_readerrorlog or notepad, the only 2 events happening at that point in =time are the ones I listed.
"Kalen Delaney" <replies@.public_newsgroups.com> wrote in message =news:#n#g4#KKEHA.3728@.TK2MSFTNGP12.phx.gbl...
Why don't you just open up the errorlog in notepad and see if there is =more?
-- HTH
--
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"ET" <et@.et.com> wrote in message =news:#aq00BKKEHA.2024@.TK2MSFTNGP11.phx.gbl...
I was reading the errorlog using xp_readerrorlog when I noticed thse =entries.
I am trying to determine if this is some type of undetected deadlock =that may be degrading performance in some way.
"Kalen Delaney" <replies@.public_newsgroups.com> wrote in message =news:esu8SbJKEHA.3920@.TK2MSFTNGP10.phx.gbl...
Ok, so what are you trying to address? Do you know you have a deadlock? How? How are you checking the errorlog?
-- HTH
--
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"ET" <et@.et.com> wrote in message =news:#KRAzaIKEHA.3628@.TK2MSFTNGP12.phx.gbl...
Sorry. That was a typo on my part. I meant 1204.
"Kalen Delaney" <replies@.public_newsgroups.com> wrote in =message news:#h#bTTIKEHA.2716@.tk2msftngp13.phx.gbl...
What do you think you are getting with traceflag 2004? The =flag for trapping deadlocks is 1204. What exactly are you trying to address?
-- HTH
--
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"ET" <et@.et.com> wrote in message =news:e2wuOHHKEHA.3944@.tk2msftngp13.phx.gbl...
I'm receiving this in my SQL server event log. Although I =have trace flag 2004 enabled, this is all that I see in the SQL log.
Victim Resource Owner:
ResType:ExchangeId Stype:'AND' SPID:80 ECID:175 =Ec:(0x2DD8A098) Value:0x2d5a8c98 Cost:(0/270F)
I am running SQL 2000, build 840, on Windows server 2003. =Also, I have SQL
configured to use 14GB from a total of 16GB on the server.
Does anyone have any suggestions for how to address this?
--=_NextPart_000_000B_01C428FF.EE350480
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
&

There is no more. That's my point. =Whether I look at it using xp_readerrorlog or notepad, the only 2 events happening =at that point in time are the ones I listed.
"Kalen Delaney" wrote in message news:#n#g4#KKEHA.3728=@.TK2MSFTNGP12.phx.gbl...
Why don't you just open up the =errorlog in notepad and see if there is more?
-- HTH--Kalen DelaneySQL Server = MVPhttp://www.SolidQualityLearning.com">www.SolidQualityLearning.com=

"ET" wrote =in message news:#aq00BKKEHA.2024=@.TK2MSFTNGP11.phx.gbl...
I was reading the errorlog using xp_readerrorlog when I noticed thse entries.

I am trying to determine if this is =some type of undetected deadlock that may be degrading performance in some way.
"Kalen Delaney" wrote in message news:esu8SbJKEHA.3920=@.TK2MSFTNGP10.phx.gbl...
Ok, so what are you trying to =address?
Do you know you have a deadlock? =How?
How are you checking the errorlog?-- HTH--Kalen =DelaneySQL Server MVPhttp://www.SolidQualityLearning.com">www.SolidQualityLearning.com=

"ET" =wrote in message news:#KRAzaIKEHA.3628=@.TK2MSFTNGP12.phx.gbl...
Sorry. That was a typo on my =part. I meant 1204.
"Kalen Delaney" wrote in message news:#h#bTTIKEHA.2716=@.tk2msftngp13.phx.gbl...
What do you think you are =getting with traceflag 2004? The flag for trapping deadlocks is 1204. = What exactly are you trying =to address?
-- HTH--Kalen =DelaneySQL Server MVPhttp://www.SolidQualityLearning.com">www.SolidQualityLearning.com=

"ET" =wrote in message news:e2wuOHHKEHA.3944=@.tk2msftngp13.phx.gbl...
I'm receiving this in my =SQL server event log. Although I have trace flag 2004 enabled, this is =all that I see in the SQL log.

Victim Resource Owner: ResType:ExchangeId Stype:'AND' SPID:80 =ECID:175 Ec:(0x2DD8A098) Value:0x2d5a8c98 Cost:(0/270F)


I am running SQL 2000, build 840, on Windows server 2003. =Also, I have SQLconfigured to use 14GB from a total of 16GB on the server.Does anyone have any suggestions for how to =address this?
=

--=_NextPart_000_000B_01C428FF.EE350480--|||This is a multi-part message in MIME format.
--=_NextPart_000_00E8_01C4291A.A9327000
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Ok, I think I get it now, not that I know what it means. So there is no =error 1205 showing up in the log? Is there any error number showing in =the log anywhere near the time of this message?
How often are these messages occurring? If they're frequent, could you =set up a trace to capture the statements being submitted?
-- HTH
--
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"ET" <et@.et.com> wrote in message =news:#uHT3FSKEHA.2380@.TK2MSFTNGP09.phx.gbl...
There is no more. That's my point. Whether I look at it using =xp_readerrorlog or notepad, the only 2 events happening at that point in =time are the ones I listed.
"Kalen Delaney" <replies@.public_newsgroups.com> wrote in message =news:#n#g4#KKEHA.3728@.TK2MSFTNGP12.phx.gbl...
Why don't you just open up the errorlog in notepad and see if there =is more?
-- HTH
--
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"ET" <et@.et.com> wrote in message =news:#aq00BKKEHA.2024@.TK2MSFTNGP11.phx.gbl...
I was reading the errorlog using xp_readerrorlog when I noticed =thse entries.
I am trying to determine if this is some type of undetected =deadlock that may be degrading performance in some way.
"Kalen Delaney" <replies@.public_newsgroups.com> wrote in message =news:esu8SbJKEHA.3920@.TK2MSFTNGP10.phx.gbl...
Ok, so what are you trying to address? Do you know you have a deadlock? How? How are you checking the errorlog?
-- HTH
--
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"ET" <et@.et.com> wrote in message =news:#KRAzaIKEHA.3628@.TK2MSFTNGP12.phx.gbl...
Sorry. That was a typo on my part. I meant 1204.
"Kalen Delaney" <replies@.public_newsgroups.com> wrote in =message news:#h#bTTIKEHA.2716@.tk2msftngp13.phx.gbl...
What do you think you are getting with traceflag 2004? The =flag for trapping deadlocks is 1204. What exactly are you trying to address?
-- HTH
--
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"ET" <et@.et.com> wrote in message =news:e2wuOHHKEHA.3944@.tk2msftngp13.phx.gbl...
I'm receiving this in my SQL server event log. Although I =have trace flag 2004 enabled, this is all that I see in the SQL log.
Victim Resource Owner:
ResType:ExchangeId Stype:'AND' SPID:80 ECID:175 =Ec:(0x2DD8A098) Value:0x2d5a8c98 Cost:(0/270F)
I am running SQL 2000, build 840, on Windows server 2003. =Also, I have SQL
configured to use 14GB from a total of 16GB on the server.
Does anyone have any suggestions for how to address this?
--=_NextPart_000_00E8_01C4291A.A9327000
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
&

Ok, I think I get it now, not that I =know what it means. So there is no error 1205 showing up in the log? Is there any =error number showing in the log anywhere near the time of this =message?
How often are these =messages occurring? If they're frequent, could you set up a trace to capture the statements =being submitted?
-- HTH--Kalen DelaneySQL Server =MVPhttp://www.SolidQualityLearning.com">www.SolidQualityLearning.com=
"ET" wrote in =message news:#uHT3FSKEHA.2380=@.TK2MSFTNGP09.phx.gbl...
There is no more. That's my point. =Whether I look at it using xp_readerrorlog or notepad, the only 2 events =happening at that point in time are the ones I listed.
"Kalen Delaney" wrote in message news:#n#g4#KKEHA.3728=@.TK2MSFTNGP12.phx.gbl...
Why don't you just open up the =errorlog in notepad and see if there is more?
-- HTH--Kalen DelaneySQL =Server MVPhttp://www.SolidQualityLearning.com">www.SolidQualityLearning.com=

"ET" wrote =in message news:#aq00BKKEHA.2024=@.TK2MSFTNGP11.phx.gbl...
I was reading the errorlog using xp_readerrorlog when I noticed thse entries.

I am trying to determine if this =is some type of undetected deadlock that may be degrading performance in some way.
"Kalen Delaney" wrote in message news:esu8SbJKEHA.3920=@.TK2MSFTNGP10.phx.gbl...
Ok, so what are you trying to =address?
Do you know you have a =deadlock? How?
How are you checking the errorlog?-- HTH--Kalen DelaneySQL Server MVPhttp://www.SolidQualityLearning.com">www.SolidQualityLearning.com=

"ET" =wrote in message news:#KRAzaIKEHA.3628=@.TK2MSFTNGP12.phx.gbl...
Sorry. That was a typo on my =part. I meant 1204.
"Kalen Delaney" wrote in message news:#h#bTTIKEHA.2716=@.tk2msftngp13.phx.gbl...
What do you think you are =getting with traceflag 2004? The flag for trapping deadlocks is 1204.
What exactly are you trying =to address?
-- HTH--Kalen =DelaneySQL Server MVPhttp://www.SolidQualityLearning.com">www.SolidQualityLearning.com=

"ET" wrote in message news:e2wuOHHKEHA.3944=@.tk2msftngp13.phx.gbl...
I'm receiving this in my =SQL server event log. Although I have trace flag 2004 enabled, this =is all that I see in the SQL log.

Victim Resource Owner: ResType:ExchangeId Stype:'AND' SPID:80 =ECID:175 Ec:(0x2DD8A098) Value:0x2d5a8c98 =Cost:(0/270F)


I am running SQL 2000, build 840, on Windows server 2003. =Also, I have SQLconfigured to use 14GB from a total of 16GB on =the server.Does anyone have any suggestions for how to =address this?
=

--=_NextPart_000_00E8_01C4291A.A9327000--|||This is a multi-part message in MIME format.
--=_NextPart_000_000D_01C42944.AC7ACB20
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Correct, there is no error associated with this event showing up in the =log. There are literally no other events in the SQL log for 20-30 =minutes before & after this event.
This event hasn't happened since 4/21 at 9 AM. Prior to that it would =happen 2-3 times a day on most days.
Due to the spurious nature of the event, I don't want to leave a trace =running at this point.
"Kalen Delaney" <replies@.public_newsgroups.com> wrote in message =news:O5sqXVVKEHA.1144@.TK2MSFTNGP12.phx.gbl...
Ok, I think I get it now, not that I know what it means. So there is =no error 1205 showing up in the log? Is there any error number showing =in the log anywhere near the time of this message?
How often are these messages occurring? If they're frequent, could you =set up a trace to capture the statements being submitted?
-- HTH
--
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"ET" <et@.et.com> wrote in message =news:#uHT3FSKEHA.2380@.TK2MSFTNGP09.phx.gbl...
There is no more. That's my point. Whether I look at it using =xp_readerrorlog or notepad, the only 2 events happening at that point in =time are the ones I listed.
"Kalen Delaney" <replies@.public_newsgroups.com> wrote in message =news:#n#g4#KKEHA.3728@.TK2MSFTNGP12.phx.gbl...
Why don't you just open up the errorlog in notepad and see if =there is more?
-- HTH
--
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"ET" <et@.et.com> wrote in message =news:#aq00BKKEHA.2024@.TK2MSFTNGP11.phx.gbl...
I was reading the errorlog using xp_readerrorlog when I noticed =thse entries.
I am trying to determine if this is some type of undetected =deadlock that may be degrading performance in some way.
"Kalen Delaney" <replies@.public_newsgroups.com> wrote in =message news:esu8SbJKEHA.3920@.TK2MSFTNGP10.phx.gbl...
Ok, so what are you trying to address? Do you know you have a deadlock? How? How are you checking the errorlog?
-- HTH
--
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"ET" <et@.et.com> wrote in message =news:#KRAzaIKEHA.3628@.TK2MSFTNGP12.phx.gbl...
Sorry. That was a typo on my part. I meant 1204.
"Kalen Delaney" <replies@.public_newsgroups.com> wrote in =message news:#h#bTTIKEHA.2716@.tk2msftngp13.phx.gbl...
What do you think you are getting with traceflag 2004? The =flag for trapping deadlocks is 1204. What exactly are you trying to address?
-- HTH
--
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"ET" <et@.et.com> wrote in message =news:e2wuOHHKEHA.3944@.tk2msftngp13.phx.gbl...
I'm receiving this in my SQL server event log. Although =I have trace flag 2004 enabled, this is all that I see in the SQL log.
Victim Resource Owner:
ResType:ExchangeId Stype:'AND' SPID:80 ECID:175 =Ec:(0x2DD8A098) Value:0x2d5a8c98 Cost:(0/270F)
I am running SQL 2000, build 840, on Windows server =2003. Also, I have SQL
configured to use 14GB from a total of 16GB on the =server.
Does anyone have any suggestions for how to address =this?
--=_NextPart_000_000D_01C42944.AC7ACB20
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
&

Correct, there is no error associated =with this event showing up in the log. There are literally no other events in the =SQL log for 20-30 minutes before & after this event.
This event hasn't happened since 4/21 =at 9 AM. Prior to that it would happen 2-3 times a day on most days.
Due to the spurious nature of the =event, I don't want to leave a trace running at this point.
"Kalen Delaney" wrote in message news:O5sqXVVKEHA.1144=@.TK2MSFTNGP12.phx.gbl...
Ok, I think I get it now, not that I =know what it means. So there is no error 1205 showing up in the log? Is there any =error number showing in the log anywhere near the time of this =message?

How often are these =messages occurring? If they're frequent, could you set up a trace to capture the statements =being submitted?
-- HTH--Kalen DelaneySQL Server = MVPhttp://www.SolidQualityLearning.com">www.SolidQualityLearning.com=

"ET" wrote =in message news:#uHT3FSKEHA.2380=@.TK2MSFTNGP09.phx.gbl...
There is no more. That's my point. =Whether I look at it using xp_readerrorlog or notepad, the only 2 events happening at that point in time are the ones I listed.
"Kalen Delaney" wrote in message news:#n#g4#KKEHA.3728=@.TK2MSFTNGP12.phx.gbl...
Why don't you just open up the =errorlog in notepad and see if there is more?
-- HTH--Kalen DelaneySQL =Server MVPhttp://www.SolidQualityLearning.com">www.SolidQualityLearning.com=

"ET" =wrote in message news:#aq00BKKEHA.2024=@.TK2MSFTNGP11.phx.gbl...
I was reading the errorlog =using xp_readerrorlog when I noticed thse entries.

I am trying to determine if =this is some type of undetected deadlock that may be degrading performance in =some way.
"Kalen Delaney" wrote in message news:esu8SbJKEHA.3920=@.TK2MSFTNGP10.phx.gbl...
Ok, so what are you trying to =address?
Do you know you have a =deadlock? How?
How are you checking the errorlog?-- HTH--Kalen DelaneySQL Server MVPhttp://www.SolidQualityLearning.com">www.SolidQualityLearning.com=

"ET" =wrote in message news:#KRAzaIKEHA.3628=@.TK2MSFTNGP12.phx.gbl...
Sorry. That was a typo on =my part. I meant 1204.
"Kalen Delaney" wrote in message news:#h#bTTIKEHA.2716=@.tk2msftngp13.phx.gbl...
What do you think you are =getting with traceflag 2004? The flag for trapping deadlocks is =1204.
What exactly are you =trying to address?
-- HTH--Kalen =DelaneySQL Server MVPhttp://www.SolidQualityLearning.com">www.SolidQualityLearning.com=

"ET" wrote in message news:e2wuOHHKEHA.3944=@.tk2msftngp13.phx.gbl...
I'm receiving this in =my SQL server event log. Although I have trace flag 2004 enabled, this =is all that I see in the SQL log.

Victim Resource Owner: ResType:ExchangeId Stype:'AND' SPID:80 =ECID:175 Ec:(0x2DD8A098) Value:0x2d5a8c98 =Cost:(0/270F)


I am running SQL 2000, build 840, on Windows =server 2003. Also, I have SQLconfigured to use 14GB from a total =of 16GB on the server.Does anyone have any suggestions =for how to address this?
=

--=_NextPart_000_000D_01C42944.AC7ACB20--

Friday, March 9, 2012

Possible to perform mathematical functions on two or more text boxes?

I am looking to take the sum of the values displayed in a couple text
boxes and display the result in another text box. Is it at all
possible to include the values displayed in other text boxes in
expressions in other text boxes?On Jul 11, 8:19 am, mtnbiker419 <rdrace...@.gmail.com> wrote:
> I am looking to take the sum of the values displayed in a couple text
> boxes and display the result in another text box. Is it at all
> possible to include the values displayed in other text boxes in
> expressions in other text boxes?
If I'm understanding you correctly and you want field values displayed
in textboxes (i.e., table control cells/text boxes, etc), you can
reference them within the dataset itself (if they are aggregates or
can be aggregated):
=Fields!FieldName.Value + Sum(Fields!FieldNameInOtherDataset.Value,
"DatasetNameUsedInTextboxB")
-or similarly -
=Fields!FieldName.Value + Avg(Fields!FieldNameInOtherDataset.Value,
"DatasetNameUsedInTextboxB")
Hope this helps.
Regards,
Enrique Martinez
Sr. Software Consultant

Possible to insert a page break?

I have a question regarding page break. Is there a way to add a page break
before a text box?
I know you can do this with tables, but I need to have the textbox which
contains the table title to start at the top of the page, instead of the
table itself. Thanks.
-JosephI'm not sure I understand the issue correctly, but did you try putting the
textbox inside a rectangle and add the page break on the rectangle?
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Joseph" <Joseph@.discussions.microsoft.com> wrote in message
news:72370566-0AAA-435C-B376-F16064A3D9EF@.microsoft.com...
> I have a question regarding page break. Is there a way to add a page
break
> before a text box?
> I know you can do this with tables, but I need to have the textbox which
> contains the table title to start at the top of the page, instead of the
> table itself. Thanks.
> -Joseph|||Rectangle solves my needs. Thanks Robert.
Joseph
"Robert Bruckner [MSFT]" wrote:
> I'm not sure I understand the issue correctly, but did you try putting the
> textbox inside a rectangle and add the page break on the rectangle?
> --
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "Joseph" <Joseph@.discussions.microsoft.com> wrote in message
> news:72370566-0AAA-435C-B376-F16064A3D9EF@.microsoft.com...
> > I have a question regarding page break. Is there a way to add a page
> break
> > before a text box?
> >
> > I know you can do this with tables, but I need to have the textbox which
> > contains the table title to start at the top of the page, instead of the
> > table itself. Thanks.
> >
> > -Joseph
>
>

possible to inline text fields?

I have a report that looks something like the below.
Hello ______,
Your current interest rate is _____%.
SIgned,
___________
How can I inline all of these _______ fields with textbox's so I can
populate them from a sproc. Is there an easy way to do this? There
has to be...
ThanksHi,
Add a rectangle control in the layout. then add the textboxes inside
the Rectangle control. if you want to show the inline, then right click
on the textbox --> go to properties --> text decoration --> underline.
add the field to the corresponding textbox.
petejk wrote:
> I have a report that looks something like the below.
> Hello ______,
> Your current interest rate is _____%.
> SIgned,
> ___________
>
> How can I inline all of these _______ fields with textbox's so I can
> populate them from a sproc. Is there an easy way to do this? There
> has to be...
>
> Thanks|||I meant to say that there is text being populatd in the _______ fields.

Wednesday, March 7, 2012

Possible to display RTF from db? Is there a control?

I'd like to save RTF (or html, possibly) in a memo field of a table then display that as formatted text on a report. Can this be done? I've used a control (RTFedit) in Access to do this, though the results were mixed. I need to display tables with formatting.

Thanks in advance

Hello,

There is currently no way to do this with Reporting Services. We are considering adding a rich-text report control in a future version.

Thanks,
Chris

|||

Ok, so this is a really late reply, but in the event you still need it, or someone else out there is having the same problem, refer to my walkthrough in this thread http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=738557&SiteID=1

Possible to display RTF from db? Is there a control?

I'd like to save RTF (or html, possibly) in a memo field of a table then display that as formatted text on a report. Can this be done? I've used a control (RTFedit) in Access to do this, though the results were mixed. I need to display tables with formatting.

Thanks in advance

Hello,

There is currently no way to do this with Reporting Services. We are considering adding a rich-text report control in a future version.

Thanks,
Chris

|||

Ok, so this is a really late reply, but in the event you still need it, or someone else out there is having the same problem, refer to my walkthrough in this thread http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=738557&SiteID=1

Possible to disable welll-formedness checking when inserting XML data.

Hi All,

Can anyone help with the following problem? I have a database which
contains a table with a 'text' field, and the text field contains an
xml document - typically 50-100K. Now I'd like to make use of SQL
Server 2005s XMLData type. To do this I have created a new field of
the 'xmldata' datatype, and run an SQL statement to update the contents
from one field to another - hoping to end up with a complete table of
xml (based on the old text field).

The problem I have is after a minute or so, it must come across an
badly-formed xml fragment because I get the following message:

Msg 9436, Level 16, State 1, Line 1
XML parsing: line 1, character 67640, end tag does not match start tag

Can I turn off the checking during the update, or is it not possible to
add badly formed data to the xmldata field. Any help appreciated as
the table runs into tens of thousands of rows, so I can't really check
the contents of each!

Many thanks,

Duncan.(DSmith1974@.googlemail.com) writes:
> Can anyone help with the following problem? I have a database which
> contains a table with a 'text' field, and the text field contains an
> xml document - typically 50-100K. Now I'd like to make use of SQL
> Server 2005s XMLData type. To do this I have created a new field of
> the 'xmldata' datatype, and run an SQL statement to update the contents
> from one field to another - hoping to end up with a complete table of
> xml (based on the old text field).
> The problem I have is after a minute or so, it must come across an
> badly-formed xml fragment because I get the following message:
> Msg 9436, Level 16, State 1, Line 1
> XML parsing: line 1, character 67640, end tag does not match start tag
> Can I turn off the checking during the update, or is it not possible to
> add badly formed data to the xmldata field. Any help appreciated as
> the table runs into tens of thousands of rows, so I can't really check
> the contents of each!

Indeed, you can only pass valid XML fragments to the xml data type. They
don't have to be valid documents, that is have exactly one top-level tag,
but apart from that they must follow the XML syntax. The reason is that
the XML is stored an internal format, so SQL Server have no idea of what
do with the poorly formed XML.

--
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pr...oads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodin...ions/books.mspx

possible to concatenate text to Where clause?

declare @.s varchar(300)
set @.s = ' recID = 100'
Select * from tbl1 Where + @.s
This returns a syntax error. Is it possible to concatenate text like this
to the Where clause? What does the correct syntax look like?
Thanks,
Richbetter yet - is it possible to use If/Else or select case in a where clause?
"Rich" wrote:

> declare @.s varchar(300)
> set @.s = ' recID = 100'
> Select * from tbl1 Where + @.s
> This returns a syntax error. Is it possible to concatenate text like this
> to the Where clause? What does the correct syntax look like?
> Thanks,
> Rich|||I seriously doubt this will help, but here is a small sample.
Any/every time I've tried to put a case statement in the where clause, I
fall flat.
But here is a small sample anyways.
You might want to check my article at:
http://www.sqlservercentral.com/col...lem.as
p
also.
declare @.price float
select @.price = 0.00
select @.price = 2.9900
--select @.price = null
select top 5 * , title, price
from pubs.dbo.titles
where
case
when @.price = 0 then price --here i am saying.. i didn't actually supply a
price.. so match the price with the price (aka, it gets everything because
price will always match price )
when @.price is null then price
else @.price -- aka, since i actually supplied a @.price, then match
the @.price with the price
end
= price -- the db field
----
---
-- the CASE statement above will translated into 1 of the two items below
select top 5 * , title, price
from pubs.dbo.titles where price = price -- aka, will always match, so you
get everything
select top 5 * , title, price
from pubs.dbo.titles where @.price = price --aka, only if the db value for
price matches the variable value for @.price
"Rich" <Rich@.discussions.microsoft.com> wrote in message
news:00B5807B-9AE6-4F4D-827E-63E926690110@.microsoft.com...
> better yet - is it possible to use If/Else or select case in a where
clause?
> "Rich" wrote:
>
this|||Thanks for your reply. This does help actually. What I was trying to do
was to use an SP as a recordsource for a form, but I changed my mind and
decided to go with an inline function. This works, and I can still use the
case statement inside the function.
May I ask, how do you make arguments optional for a function?
"sloan" wrote:

> I seriously doubt this will help, but here is a small sample.
> Any/every time I've tried to put a case statement in the where clause, I
> fall flat.
> But here is a small sample anyways.
> You might want to check my article at:
> http://www.sqlservercentral.com/col...lem.
asp
> also.
>
>
> declare @.price float
> select @.price = 0.00
> select @.price = 2.9900
> --select @.price = null
> select top 5 * , title, price
> from pubs.dbo.titles
>
> where
> case
> when @.price = 0 then price --here i am saying.. i didn't actually supply
a
> price.. so match the price with the price (aka, it gets everything because
> price will always match price )
> when @.price is null then price
> else @.price -- aka, since i actually supplied a @.price, then match
> the @.price with the price
> end
> = price -- the db field
> ----
--
> ---
> -- the CASE statement above will translated into 1 of the two items below
> select top 5 * , title, price
> from pubs.dbo.titles where price = price -- aka, will always match, so y
ou
> get everything
> select top 5 * , title, price
> from pubs.dbo.titles where @.price = price --aka, only if the db value fo
r
> price matches the variable value for @.price
>
> "Rich" <Rich@.discussions.microsoft.com> wrote in message
> news:00B5807B-9AE6-4F4D-827E-63E926690110@.microsoft.com...
> clause?
> this
>
>|||Rich
Unless I am completely wrong, I feel its fairly straightforward. try this.
declare @.s varchar(300)
set @.s = ' recID = 100'
exec('Select * from tbl1 Where ' + @.s)|||You can do this, but it's a horrible idea if @.s is
user-input or based on user-supplied data or metadata.
If @.s is something like '1=1; drop table tbl1' and the
code is executed with sufficient privilege, boom! Bye,
bye table 1. Worse and less noticeable things can
happen, too.
Read
http://www.*sommarskog*.se/dynamic_sql.html
http://www.unixwiz.net/techtips/sql-injection.html
Steve Kass
Drew University
Omnibuzz wrote:

>Rich
> Unless I am completely wrong, I feel its fairly straightforward. try this
.
>declare @.s varchar(300)
>set @.s = ' recID = 100'
>exec('Select * from tbl1 Where ' + @.s)
>
>

Monday, February 20, 2012

positioning text object dynamically

I want to set the position of a text / field object in a Crystal reports during runtimeu can do it with the help of front end.|||create object of textobject type and use their properties in front end application