<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Generate  a transaction id' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Generate  a transaction id' posted on the 'VB.NET' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2012 Programmers Heaven</copyright>
    <pubDate>Wed, 23 May 2012 06:49:53 -0700</pubDate>
    <lastBuildDate>Wed, 23 May 2012 06:49:53 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Generate  a transaction id</title>
      <link>http://www.programmersheaven.com/mb/VBNET/410777/410777/generate--a-transaction-id/</link>
      <description>Hi please i would like to generate a transaction id  for my application something like TR1234 and i want it to be serially. The application is a server/client application. How do i go about it???&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/410777/410777/generate--a-transaction-id/</guid>
      <pubDate>Tue, 15 Dec 2009 08:27:48 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>Re: Generate  a transaction id</title>
      <link>http://www.programmersheaven.com/mb/VBNET/410777/410780/re-generate--a-transaction-id/#410780</link>
      <description>Serially? As in you would like the number to be a series? &lt;br /&gt;
&lt;br /&gt;
Not sure exactly what you are looking for, but from my experience, Transaction IDs have some form of "smart number" capabilities, and usually involve a structure.&lt;br /&gt;
&lt;br /&gt;
For instance, a number like 063-554-4958582 could mean: 063 is a store location, 554 is the money type for the transaction, 4958582 is the transaction # for this year (the first transaction being xxx-xxx-0000001)&lt;br /&gt;
&lt;br /&gt;
In this case, I would first identify all information I want to get from my conf-number, I would then create a smart number system for each part of the transaction ID, (00A = Monday, 4R = UTAH, 001 = JANUARY) these sorts of things...&lt;br /&gt;
&lt;br /&gt;
Next I would identify a place to keep a running total of the transactions and store additional information about them (whatever I needed for my scenario).&lt;br /&gt;
&lt;br /&gt;
Each section of the transaction ID should be a separate field in the TRANSACTION_ID table, and they should be all combined into one line in the TransID Field of any table refering to that information&lt;br /&gt;
&lt;br /&gt;
Hope this helps,&lt;br /&gt;
Sean</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/410777/410780/re-generate--a-transaction-id/#410780</guid>
      <pubDate>Tue, 15 Dec 2009 09:54:51 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>Re: Generate  a transaction id</title>
      <link>http://www.programmersheaven.com/mb/VBNET/410777/410834/re-generate--a-transaction-id/#410834</link>
      <description>Well i thought of selecting the last inserted transaction id and probably add one to it when the form loads but its a client/server app running on several machines so i figured it wont be a bad idea cos it will over work the server creating unnecessary connections and so on.&lt;br /&gt;
Your idea seems ok but i dont really have a criteria for the transid. i just want a bunch of unique numbers.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/410777/410834/re-generate--a-transaction-id/#410834</guid>
      <pubDate>Thu, 17 Dec 2009 02:01:17 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>Re: Generate  a transaction id</title>
      <link>http://www.programmersheaven.com/mb/VBNET/410777/410848/re-generate--a-transaction-id/#410848</link>
      <description>If you are looking for a unique identifier, a field that can declare a record in a database unique, you can try using a GUID.&lt;br /&gt;
&lt;br /&gt;
Globally Unique ID - GUID&lt;br /&gt;
&lt;br /&gt;
GUIDs are 36 characters long (32 numbers 4 dashes I think), and can be stored in nvarchar fields or in Unique Identifier fields in the database. If you are using SQL Server you can create a field, and set it to UniqueIdentifier, then in the properties set "isRowGuid" to True and it will automatically generate a GUID for that row when a record is added.&lt;br /&gt;
&lt;br /&gt;
You can generate GUIDs with Vb.Net as well:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
Dim MyGuid As String = Guid.NewGuid.ToString()
'OR
Dim MySecondGuid As Guid = Guid.NewGuid()
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
hope this helps,&lt;br /&gt;
Sean C</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/410777/410848/re-generate--a-transaction-id/#410848</guid>
      <pubDate>Thu, 17 Dec 2009 06:24:03 -0700</pubDate>
      <category>VB.NET</category>
    </item>
  </channel>
</rss>
