<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Toffer's WebLog</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/toffer/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/toffer/feed.xml</link>
    <description>A small place on the web for me to write about the adventures of my self education in coding</description>
    <lastBuildDate>Tue, 16 Apr 2019 05:32:24 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>using SpriteFont's in XNA</title>
      <link>https://docs.microsoft.com/archive/blogs/toffer/using-spritefonts-in-xna</link>
      <pubDate>Wed, 24 Oct 2007 13:50:00 GMT</pubDate>
      <dc:creator><![CDATA[Toffer]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/toffer/2007/10/24/using-spritefonts-in-xna/</guid>
      <description><![CDATA[So the quesiton of the day is when creating a SpriteFont to use for displaying text in an XNA app,...]]></description>
      <content:encoded><![CDATA[<P>So the quesiton of the day is when creating a SpriteFont to use for displaying text in an XNA app, is there a way to change the size or does a new SpriteFont have to be created for each desired size.</P>
<P>What I'm trying to do is have a single SpriteFont object exposed to all the child windows of a main window manager class, but for some windows I want the text displayed in a smaller size than others.&nbsp; I suppose what I could do to work around this is to create a generic collection of SpriteFont objects, one for each size that I want available...but I was hoping I didn't have to create multiple objects.</P>
<P>If anyone knows, let me know.&nbsp; If I figure out a definate answer I'll post an update.&nbsp; :)</P>
<P>UPDATE:<BR>Well, after I did some asking around...I found that a SpriteFont must be created for each individual size that is disired to be displayed in the game...so I'll have to make the generic collection as I was guessing.&nbsp; :(&nbsp; Ah well.&nbsp; hehehe.</P>]]></content:encoded>
    </item>
    <item>
      <title>random posting...</title>
      <link>https://docs.microsoft.com/archive/blogs/toffer/random-posting</link>
      <pubDate>Thu, 18 Oct 2007 13:31:00 GMT</pubDate>
      <dc:creator><![CDATA[Toffer]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/toffer/2007/10/18/random-posting/</guid>
      <description><![CDATA[WOW...it's been a while since I've posted.&nbsp; Luckily I my self eductions of coding hasn't been...]]></description>
      <content:encoded><![CDATA[<P>WOW...it's been a while since I've posted.&nbsp; Luckily I my self eductions of coding hasn't been as slow as my posting on this blog.&nbsp; heh.</P>
<P>I've been noticing that I get a lot of random comments over time on some of my posts and overall they seem to be helpful...so knowing that I've actually helped someone out there, I think that's inspired me to try post on here a little more often.&nbsp; Who knows, maybe I can help someone else.&nbsp; :)</P>
<P>To that end, I've gotten into XNA and game development lately.&nbsp; Interesting stuff.&nbsp; :)&nbsp; So the next time I come across something I can't figure out, I'll make a post.</P>]]></content:encoded>
    </item>
    <item>
      <title>multi-select drill-through reports...</title>
      <link>https://docs.microsoft.com/archive/blogs/toffer/multi-select-drill-through-reports</link>
      <pubDate>Tue, 28 Mar 2006 17:25:00 GMT</pubDate>
      <dc:creator><![CDATA[Toffer]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/toffer/2006/03/28/multi-select-drill-through-reports/</guid>
      <description><![CDATA[Today I'm trying to work on improving my Sql 2005 Reporting Services report based on all the...]]></description>
      <content:encoded><![CDATA[<P>Today I'm trying to work on improving my Sql 2005 Reporting Services report based on all the feedback I've been getting.</P>
<P>Basically this report currently provides a way to drill-through to get more detailed information, if someone clicks on an ID number for any of the given rows returned from the database.</P>
<P>One of the pieces of feedback was it would be nice to be able to flag all the rows a person wants more details on and to be able to click a button to retrieve those details on all the flagged rows.</P>
<P>So far I haven't had any luck in figuring out a way to do this.&nbsp; I've been looking all through Books Online and all over the internet, looking for "multi-select drill-through" but so far I haven't come up with anything.</P>
<P>If I figure it out I'll post the answer, but if anyone has any suggestion on how to do something like this (or an example of some sort) please speak up and share the knowledge.&nbsp; :)</P>]]></content:encoded>
    </item>
    <item>
      <title>displaying an entire table on one page with SQL RS2005</title>
      <link>https://docs.microsoft.com/archive/blogs/toffer/displaying-an-entire-table-on-one-page-with-sql-rs2005</link>
      <pubDate>Fri, 17 Mar 2006 11:23:00 GMT</pubDate>
      <dc:creator><![CDATA[Toffer]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/toffer/2006/03/17/displaying-an-entire-table-on-one-page-with-sql-rs2005/</guid>
      <description><![CDATA[Today I'm trying to figure this one out.&nbsp; I've got this report I put together for my team that...]]></description>
      <content:encoded><![CDATA[<P>Today I'm trying to figure this one out.&nbsp; I've got this report I put together for my team that has a table which returns records from a database.&nbsp; Currently, the report automatically creates a table with multiple pages which stores all the returned rows.&nbsp; What I'm being asked for is if I can get all the rows to show up on one page.</P>
<P>To my frustration I have not been able to get this to work.&nbsp; I haven't found a single piece of information on any way to set this.&nbsp; There's a ton of places to set Page Breaks, but they do not seem to affect how the table displays it's data, no matter what the combination.</P>
<P>Anyway, it's a new day and I'm absolutely sure I'll get different results from a search engine today with the answers I'm seaking...hehehe, wishful thinking.&nbsp; :)</P>
<P>Seriously though has anyone else ever tried anything like this with any success?</P>]]></content:encoded>
    </item>
    <item>
      <title>question of the evening...</title>
      <link>https://docs.microsoft.com/archive/blogs/toffer/question-of-the-evening</link>
      <pubDate>Fri, 17 Mar 2006 02:55:00 GMT</pubDate>
      <dc:creator><![CDATA[Toffer]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/toffer/2006/03/17/question-of-the-evening/</guid>
      <description><![CDATA[I've seen something in a couple of different databases that kind of confuses me.&nbsp; I've been...]]></description>
      <content:encoded><![CDATA[<P>I've seen something in a couple of different databases that kind of confuses me.&nbsp; I've been looking through books on line to see if there's any advantage to it, but haven't been able to find anything...</P>
<P>What I'm seeing is multi primary key's in one table.&nbsp; I can't really think of what the benefit of this would be...isn't the purpose of a primary key more or less to provide a unique identity for each record?&nbsp; If that's the case, why would you ever need 2 unique identity's?</P>
<P>Has anyone else seen this done before?</P>]]></content:encoded>
    </item>
    <item>
      <title>setting up a Sql Stored Procedure to accept an array as a parameter...</title>
      <link>https://docs.microsoft.com/archive/blogs/toffer/setting-up-a-sql-stored-procedure-to-accept-an-array-as-a-parameter</link>
      <pubDate>Wed, 15 Mar 2006 00:27:00 GMT</pubDate>
      <dc:creator><![CDATA[Toffer]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/toffer/2006/03/15/setting-up-a-sql-stored-procedure-to-accept-an-array-as-a-parameter/</guid>
      <description><![CDATA[Ok, I'm not sure the title is exactly right, so let me explain better what it is I'm trying to do...]]></description>
      <content:encoded><![CDATA[<P>Ok, I'm not sure the title is exactly right, so let me explain better what it is I'm trying to do this fine evening.&nbsp; :)</P>
<P>So I have this Sql Report Services report that takes a input parameter that is currently in a combobox at the top of the report.&nbsp; It then feeds the value of this drop down list into my stored procedure and produces the data.</P>
<P>One of the abilities of this combo box is to be a multi-select type.&nbsp; I want to setup my stored procedure to be able to take the mutli-select input...but I'm not sure how to go about doing it.</P>
<P>For example, if the multi-select Combobox has the values 1 through 3...if all of them selected, the string value of that Combobox would be "1, 2, 3" which is currently getting passed into my stored procedure, which blows up because it doesn't understand what to do with the comma's.</P>
<P>I want to make my stored&nbsp;procedure more intelligent and be able to handle a comma delimited array of values.&nbsp; The problem is I'm not sure what this type of thing is called so I don't what I'm looking for, hehehe...&nbsp; It's always comes down to just knowing where to look for info doesn't it...hehehe.</P>
<P>Well, as always if anyone has any suggestions for me, I'm all eyes.&nbsp; :)&nbsp; Until then I'll keep digging.</P>]]></content:encoded>
    </item>
    <item>
      <title>using the T-SQL OPENXML command</title>
      <link>https://docs.microsoft.com/archive/blogs/toffer/using-the-t-sql-openxml-command</link>
      <pubDate>Wed, 08 Mar 2006 15:17:00 GMT</pubDate>
      <dc:creator><![CDATA[Toffer]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/toffer/2006/03/08/using-the-t-sql-openxml-command/</guid>
      <description><![CDATA[Hello once again.&nbsp; :)&nbsp; I've been getting great feedback from everyone that stumbles across...]]></description>
      <content:encoded><![CDATA[<P>Hello once again.&nbsp; :)&nbsp; I've been getting great feedback from everyone that stumbles across my blog entries so I figured I'd post yet another of my great mysteries of coding...</P>
<P>Today I'm trying to use OPENXML to shread an Xml document for the data I need.&nbsp; For illustation purposes, here's an example of what I'm trying to do...</P>
<P>&nbsp;</P><FONT color=#0000ff size=2>
<P>DECLARE</FONT><FONT size=2> @docHandle </FONT><FONT color=#0000ff size=2>int<BR>EXEC</FONT><FONT size=2> </FONT><FONT color=#800000 size=2>sp_xml_preparedocument</FONT><FONT size=2> @docHandle </FONT><FONT color=#0000ff size=2>OUTPUT</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> <BR></FONT><FONT color=#ff0000 size=2>'&lt;Root&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;Property&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ID&gt;182467&lt;/ID&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ID&gt;189037&lt;/ID&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ID&gt;192100&lt;/ID&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ID&gt;192957&lt;/ID&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ID&gt;194785&lt;/ID&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;/Property&gt;<BR>&lt;/Root&gt;'<BR></FONT><FONT color=#0000ff size=2>SELECT</FONT><FONT size=2> </FONT><FONT color=#808080 size=2>*</FONT><FONT size=2> <BR></FONT><FONT color=#0000ff size=2>FROM</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>OPENXML</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>@docHandle</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> </FONT><FONT color=#ff0000 size=2>'Root/Property/ID'</FONT><FONT color=#808080 size=2>,</FONT><FONT size=2> 3</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>WITH</FONT><FONT size=2> </FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>ID </FONT><FONT color=#0000ff size=2>int</FONT><FONT color=#808080 size=2>)</FONT></P>
<P><FONT color=#808080 size=2>The return is...<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ID<BR>----------------------</FONT><FONT color=#808080 size=2><BR>1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;NULL<BR>2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;NULL<BR>3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;NULL<BR>4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;NULL<BR>5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;NULL</FONT></P>
<P><FONT color=#808080 size=2>The correct number of rows, but not the correct data in the inner text of the element.&nbsp; This is the first time I've used OPENXML and everything "looks" correct, but if anyone has a suggestion, as always I'm all eyes.&nbsp; :)</P></FONT>]]></content:encoded>
    </item>
    <item>
      <title>calling SqlConnection.Close() from class destructor causes exception</title>
      <link>https://docs.microsoft.com/archive/blogs/toffer/calling-sqlconnection-close-from-class-destructor-causes-exception</link>
      <pubDate>Tue, 07 Mar 2006 14:41:00 GMT</pubDate>
      <dc:creator><![CDATA[Toffer]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/toffer/2006/03/07/calling-sqlconnection-close-from-class-destructor-causes-exception/</guid>
      <description><![CDATA[Well, today I'm designing a class that's basically function is to talk to a database.&nbsp; I'm...]]></description>
      <content:encoded><![CDATA[<P>Well, today I'm designing a class that's basically function is to talk to a database.&nbsp; I'm having a SqlConnection member to share between all the methods and thought it would be a good idea to put a call to .Close in the class destructor.</P>
<P>This is causing an InvalidOperationException...I'm a little confused by that...isn't the destructor for code to be run when the object is being garbage collected?&nbsp; Wouldn't that be the right time to make sure a connection to a database is closed?&nbsp; If anyone has any input on the subject I'm all ears (well eyes, but you get the idea).</P>]]></content:encoded>
    </item>
    <item>
      <title>Sql 2005 and managed code...</title>
      <link>https://docs.microsoft.com/archive/blogs/toffer/sql-2005-and-managed-code</link>
      <pubDate>Thu, 02 Mar 2006 01:42:00 GMT</pubDate>
      <dc:creator><![CDATA[Toffer]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/toffer/2006/03/02/sql-2005-and-managed-code/</guid>
      <description><![CDATA[Today&nbsp; I proposed an idea to my boss which included using Sql 2005 in a manor that I "think" is...]]></description>
      <content:encoded><![CDATA[<P>Today&nbsp; I proposed an idea to my boss which included using Sql 2005 in a manor that I "think" is possible.</P>
<P>What I mean by that is I know Sql 2005 can store managed code as stored procedures...and I know to do that you compile the stored procedure, put it someplace that the database can find, and then make t-sql like statements to reference the .dll's static methods.</P>
<P>On a very high level, my idea involves an automation execution engine.&nbsp; Test case information is feed to this engine as C# compiled .dll's.&nbsp; What I would like is for these .dll's to be stored in a test case table in a database, and to be able to feed these to the engine from the database.</P>
<P>I'm going to begin research on the posibility of this tomorrow, but I thought I'd make a post on it and see if anyone had a suggestion on where to start investigating (or tell me it's flat out not possible).</P>
<P>Anyway, love to hear anyone's thoughts.&nbsp; :)</P>]]></content:encoded>
    </item>
    <item>
      <title>Using a ProgressBar control</title>
      <link>https://docs.microsoft.com/archive/blogs/toffer/using-a-progressbar-control</link>
      <pubDate>Sat, 28 Jan 2006 19:05:00 GMT</pubDate>
      <dc:creator><![CDATA[Toffer]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/toffer/2006/01/28/using-a-progressbar-control/</guid>
      <description><![CDATA[&nbsp;Hiya all.
I recenlty made a cheezy test program to just roll dice.&nbsp; I put a ProgressBar...]]></description>
      <content:encoded><![CDATA[<P>&nbsp;Hiya all.</P>
<P>I recenlty made a cheezy test program to just roll dice.&nbsp; I put a ProgressBar control to show give the end user an idea of how many rolls are left.</P>
<P>Well, I noticed that when I tried to do 10000 consecutive rolls, the program slows waaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaay down.&nbsp; When I had this all setup as a console app, it screamed no matter how many times I tried to roll the die.&nbsp; I'm guessing this perf hit is because of the UI in general, but is there anything I can do to speed this up?&nbsp; Is this something that someone would use threading on to improve perf?</P>
<P>Thanks in advance to anyone who answers.&nbsp; :)</P>]]></content:encoded>
    </item>
  </channel>
</rss>