Transaction Counter Ticketing System?

Nov 23, 2011

i am just trying to learn vb cause a friend advised me that this thing could be a big help to me. I have learned the basic but unfortunately, it would take me weeks or months perhaps to master this thing. Am a bit hesitant cause am a little bit shy but am taking my chances.

We would like to have our own ticketing system wherein it would give a seperate continuous number for our Three counters. Like if a click a certain button asking them what to do, it would print,referring them to the counter and what number they are in the que.

View 12 Replies


ADVERTISEMENT

VS 2008 Bus Ticketing System?

Jan 9, 2010

I am writing a program for a bus station which has nothing less than 20 different locations lets use different countries for instance. e.g UK,Ireland, Australia, USA, Indonesia, Singapore Malaysia, china, Venezuela, India, Thailand, Korea, japan, Yemen etc..In a dropdownlist u have to select your origin and destination (one of the 20 locations), and when you submit, the system should return in a dialog box,

the "bus " e.g.(BT132) and :bus fare:" e.g.($5) for all locations (origin and destination must be different).without using a database unless its impossible not to use a database.

View 10 Replies

Real Time Ticketing System

Jul 30, 2010

It is possible to create a real-time application where 2 or more pc will operate on it, for e.g, a cinema ticketing system, when a seat is occupied, all the other machine will be updated in realtime accordingly.

View 2 Replies

Oracle Transaction - Rollback Your Transaction If You Haven't Commit The Transaction

Oct 31, 2011

I want to know that do you still need to rollback your transaction if you haven't commit the transaction that was created earlier.

[Code]...

View 3 Replies

Transaction Error On Call To Commit() When Select Has Been Executed Inside Transaction?

May 9, 2011

I get this error at the Commit of a transaction in a desktop application:

This OleDbTransaction has completed; it is no longer usable.

Other posts I have seen with similar error suggests this can occur if it takes a long time, or contains large amounts of data. This is not the case here.Logging tells me it takes 140 ms from Begin to Commit and about 10 commands executed inside the transaction.It is using an Oracle database.This class is a simplified version of my database class:

Class MyDatabase
Private mConnection AS OleDbConnection
Private mTransaction AS OleDbTransaction

[code]....

Is it not allowed to run a select inside a transaction like this? Or can it be done by running the transaction in a specific isolation level (I see that the BeginTransaction method has an optional parameter for doing this) ? ..Or some other sollution..? In my case, it was not a problem to move the select to run before the transaction started, but what if you need to run selects that must run inside the transaction?

View 1 Replies

VS 2008 - Transaction SProc's In Code - Says That My Insertcommand's Transaction Object Is Null

Apr 29, 2009

I've seen plenty of examples of transactions in the actual store procedure's SQL. But I'm wanting to do the transaction and keep track of it in code. I tried this but it says that my insertcommand's transaction object is null. How can I fix this?

vb Dim conn As SqlConnection = DBConnections.SQLServerConnection
conn.Open()
Dim params(1) As SqlParameter

[CODE]....

View 3 Replies

Transaction Object - The Transaction Property Of The Command Has Not Been Initialized

Mar 5, 2009

What is this kind of exception?

Error : Execute requires the command to have a transaction object when the connection assigned to the command is in a pending local transaction. The transaction property of the command has not been initialized..

This one causes the error: Dim oOperation As COperationOutputTypeBS
oOperation = COperationOutputTypeBS.GetOperationOutputType(txtOperationCode.Text)

View 1 Replies

Create A System-wide Independent Universal Counter Object Primarily For Database Keys?

Apr 5, 2010

I would like to create/use a system-wide independent universal 'counter object' that can be called via COM in a thread-safe manner. The counter object will be passed an ID to identify which counter to return, handle the counting, 'persist' the count (occasionally), have reasonable performance (as fast as possible) perhaps capable of 1000 counts per second or better (1mS) and be accessible cross-process/out-of-process. The current count status must be persisted between object restarts/shutdowns.

The counter object is liklely to be a 'singleton' type object implemented in some form of free-threaded dictionary, containing maybe 10 counters (perhaps 50 max). The count needs to be monotonic and consistent, (ie: guaranteed unique sequential values).Each counter should have a few methods, like reset, inc, dec, set, clear, remove. As a luxury, I would like to have a variable-increment (ie: 'step by' value). To support thread-safefty, perhaps some sorm of critical-section or mutex call. It just needs to return a long/4byte signed integer.

I really want something that can be called from anywhere, including VBScript, so I figure COM is my preferred solution.The primary use of this is for database keys. I am unable to use autoinc or guid type keys and have ruled out database-generated counting systems at this point.I've spent days researching this and I have really struggled to find a solution. The best I can find is a free-threaded dictionary object that can be instantiated using COM+ from Motobit - it seems to offer all the 'basics' and I guess I could create some form of wrapper for this.

[Code]...

View 4 Replies

Project For AIRLINE Ticketing Through .NET?

Feb 4, 2010

wat shud i include in my PROJECT exactly n perfectly..

View 1 Replies

VS 2008 Error "The Requested Performance Counter Is Not A Custom Counter"

May 20, 2010

I have this code sample from a book I'm reading which looks to be incorrect:

Imports System.Diagnostics
Sub Main
Dim pc As New PerformanceCounter("PerfApp", "Clicks", False) 'excepiton here
pc.Increment()
counterLabel.Content = pc.NextValue().ToString()
End Sub

There excepion message I get is: The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly. I looked for a property to see if I can set it but couldn't find one.

View 3 Replies

Make A Small Program For Ticketing On A Parking For A Small Hotel?

Aug 27, 2010

I need to make a small programm for ticketing on a parking for a small hotel.So i have 2 Printers pariking In (for delivery of the tickets) and 2 Readers PArking Out.Both Printers and REaders are working Serial.So i need to poll the serial ports of the printers and readers every second.The data is stored on a SQL database so i need to read and write in the database.Can i do this with 1 PC and 1 programm or 1 PC and 4 programms that are runnning at the same time ?

View 2 Replies

Sql Transaction In ADO.Net

Sep 22, 2010

I am getting the following error while handling transaction(Isoloation level is serializable) in Ado.Net."Transaction (Process ID 75) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction."

View 3 Replies

Add Like A Counter?

Oct 26, 2008

how i could add like a counter sorta thing, like i know i would declare like lets say AttemptsDone as a integer then i say it = 0 then during my script do i just do like AttemptsDone = AttemptsDone+1 ?

and if thats correct then how do i have it display on my form? like what would i use? textbox? or what and how do i have it change everytime attemptsdone is changed

View 1 Replies

Add Transaction To Some Subs?

May 20, 2010

Can I code to add transaction for some subs? If there is an error in any sub will roll back.For example,

sub1 delete some tables

sub2 insert data into tables which just be deleted

sub3 send out confirmation email

sub4 make submit button disable

I knew that transaction will work for sub1 and sub2 but I do not know if transaction will work for all of subs

View 1 Replies

Two Connections Under One Transaction

May 24, 2012

I searched araound and having some difficulties in implementing one scenario with SQL Server 2000 and sybase.I have two SQL servers on different locations naming ServerA (MSSQL Server) and ServerB (Sybase server).I have a table called SALARY.Whenever I insert one record to customer SALARY in ServerA, I also will insert it into ServerB.If should any of them failed, both of them should be rolled back.I am using Asp .Net with VB for the programming.I do not have the right to change / add table in Server B. The only thing allowed in Server B is insert/delete/update record.I looked around and find a method to use TransactionScope but I am not quite sure it is the right way to do.url...

View 1 Replies

Use A Transaction To D Update?

Sep 27, 2011

I've found my current side project has become a great learning experience and have decided to keep it going that way. What I'm trying to do is update a table from a DataTable. The datatable has been created and isn't a direct result of a

query otherwise I'd just use a update and not learn anything new. This is what I have for code thus far[code]...

View 2 Replies

Using Transaction Then SQL DataAdapter

Jun 12, 2011

I'm having a hard time on using Transaction then after that I need to use sqldataadapter. When I tried the code below I'm having an error "ExecuteReader requires the command to have a transaction when the connection assigned to the command is in a pending local transaction. The Transaction property of the command has not been initialized." Pointing to this block.[code...]

View 1 Replies

.net - View Pending Changes On An SQL Transaction?

Mar 7, 2012

While working on some functions that update my database, I was writing some quick tests just to make sure my functions were executing properly. When it comes time to actually update the database I can pass a transaction to a function and then commit it:

user.Assignment("assignment value for some column in table", connection, transaction)
transaction.Commit()

I am curious if there is a way to write a quick test that can verify that the transaction will actually update certain rows before committing?

(pseudoish-code)
user.Assignment("assignment value for some column in table", connection, transaction)
If Not transaction["SomeColumn"] = "Expected value for SomeColumn"
assert("ColumnName was not going to be updated to the expected value!")
transaction.Rollback()

View 2 Replies

Alternative To Transaction Lock?

Mar 20, 2012

In my project i am using begin transaction commit or rollback changes. but this causes lock to the tables in that particular functionality.

So if the any other user does any other functionality those locked table are not available until the transaction is completed. I want to know if there is any alternative to transaction which insures data security but the tables are not locked out.

View 1 Replies

Build Classes For The Transaction?

Jun 21, 2010

i am building a transaction called client search the location of movie in store which mean client search the movie then get the direction of the movie where it is located in store. So now i need to build classes for this transaction which i am unable to find it because i am confuse about direction table .

View 1 Replies

Error1Property 'Transaction' Is 'ReadOnly'

Oct 8, 2011

I am using visual studio 2008. and i put dataset to use report wizard. but, when i compiled it, i got this errors.

Error1Property 'Transaction' is 'ReadOnly'.C:\Documents and Settings\mahalia\Desktop\NewProject\NewProject\DataSet2.Designer.vb292321NewProject
Error6'OracleDbTypeEx' is not a member of 'Oracle.DataAccess.Client.OracleParameter'.C:\Documents and Settings\mahalia\Desktop\NewProject\NewProject\DataSet2.Designer.vb299113NewProject

--- and when i locate it, i saw it in dataset.designer.vb.

View 4 Replies

Generate New Transaction Code?

Sep 5, 2011

I am generating new code for a transaction.

View 11 Replies

INSERT With Transaction And Parameters?

Mar 5, 2010

I'm learning about VB.Net and need to work with an SQLite database using the open-source System.Data.SQLite ADO.Net solution.The examples I found in the HOWTO section are only in C#. Would someone have a simple example in VB.Net that I could study to understand how to use transactions when INSERTing multiple parameters?[code]

View 2 Replies

Run SAP Transaction From Command Line App?

May 28, 2009

However, I've just inherited a problem and was wondering if anyone knows if I can solve it with a command line application written in .NET. Basically, we have a SAP transaction which has been written which imports data from a csv file.At the moment, it will be a manual process requiring someone to log in and run the transaction. Does anyone know if it's possible to action this from a command line app which we could then set up as a scheduled task?

View 1 Replies

Sql - Transaction Inside Of Code

May 4, 2012

We are developping an application VB.net 2.0 and SQL 2005. Users are allowed to cancel a reception based on a purchase which may contains many received goods. But, during the process of cancellation, some questions are asked to users such as "Do you want to cancel Good #1".

If yes, delete. Then, "Do you want to cancel Good #2", no, do not delete and one another question (if received item is issued, a process must be made manualy by the user). And, at the end, if all goods were successfully cancelled, we have to cancel the reception itself. But sometime, if an error occurs or some conditions occurs once asked to user in this process, we want to cancel any actions made from the beginning and make it back to his original state. So I thought about Transaction.

[Code]...

View 1 Replies

SQL Transaction Locking Whole Tables?

Mar 7, 2012

I am trying to use a transaction for the duration that the dialog is open and then commit the changes once the dialog has been ok�d or rollback'd if canceled by the user.My problem is when I use the transaction it is locking the whole of the tables that I�m using to update and insert new records too.I update the record in the first (current) table and insert a new record into the second (history) table. Obviously this is causing me problems as I only want the transaction to lock the specific records i'm updating and not allow a new insert record with my PK associated to my that I�m updating, not lock the whole of the 2 tables.This is my code[code]....

View 3 Replies

SQL Transaction Rollback Failure

Nov 11, 2011

I have 2 tables which I want to insert data into, table "CAM" and table "COut", after inserting data in "CAM" it shall return a retAutoID which will be hand to "COut" as one of the parameter required for it's insertion. I implemented a rollback in my Business Logic such that if "Cout" hits an exception error while inserting, the previous insertion for "CAM" will rollback even if successful.With the code below, I am getting this error after trying to do perform insertion:"ExecuteNonQuery requires the command to have a transaction when the connection assigned to the command is in a pending local transaction. The Transaction property of the command has not been initialized." [code]

View 2 Replies

SqlConnection Transaction Support?

Jan 4, 2012

I'm trying to add transaction support to our database object.This object is a Remoting object. (this to ensure that on the Windows Client, no database connection is required.)Now I want to add support for transactions;Basically, a client will need to use it like this;

BeginTransaction
ExecuteNonQuery("insert...")
ExecuteNonQuery("insert...")

[code].....

View 2 Replies

Updating Records Using Transaction

May 1, 2009

I am trying to update a link table with values from multiple datagrids, the field types in the link table are numbers and the value selected from the datagrids are also numbers.

I am getting the following error:

The OleDbParameterCollection only accepts non-null OleDbParameter type objects, not String objects.

In line : cmdCompany.Parameters.Add("@COMPANY_ID")

[Code].....

View 2 Replies

Use Transaction With Typed DataSets?

Apr 30, 2010

I have a DB application that I've created using the Datasources wizard. A particular insert requires that two inserts must be done at the same time meaning that it has got to use transaction. how to use transaction in this situation.Only performance counts!

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved