I have installed SQL Server 2005 Express and VB 2008 Express.
For testing, I created a database with 1 table with 4 columns. I used SQL Server to add 2 records. I then created a new project with 2 forms. On one form, I put a DataGridView control. On the other, I used bound text boxes. Both had a ToolStrip. I made changes to the data through the forms. Both forms seemed to work properly, except when I looked at the data again using SQL Server, the data had not changed. Opening the forms again, the data had reverted to the original data.
I am using the code created by controls, so it should work. When I use the Database Explorer in VB, it shows the table and the data and I can make changes to that data. So why is my code not committing the transactions?[code]...
I'm trying to make a tool to view and modify a SQL database that contains our financial investments. The database I have works fine, ans sorts it every which way I want. However, I've been modifying the database after sales and purchases, through Management Studio, which is a bit laborious and potentially prone to error. So, I'd like a simple VB tool to view the accounts and allow changes.
I found a nice tutorial on how to assemble a tool that's pretty much what I want. Using the Add Connection Wizard, I connected to a test database through a User instance, added the datatables and produced a form that allows display and modification using a DataGridView.
I have a checked listbox which is populated with names(firstname & Surname), I also have a form that has been designed (layoutwise but with no code) to be populated with personal info such as name address,postcode,email address, sql database defined in the program that has a table called members that has the same column headings as the members form.
What i am trying to figure out is how i can commit personal information on my form to that database and copy the firstname and surname from that form to the checklist box if they dont exist? how do i go about this codewise?
I am trying to use SqlTransaction object in my vb code for an application to insert vendor info.The code runs till inserting a transaction and then gives following exception:
"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."
I wanted to know what (if any) differences there are to using the SQL Transaction within the application versus written into the stored procedure using TSQL statement. We would need to restructure the stored procs and vb code to get this to work and I'm not sure it would be worth the effort at this time.
Public Sub RetrieveTData(ByVal cID As String, ByVal cnn As SqlConnection) As Boolean Dim sqlTran As SqlTransaction cnn.Open() sqlTran = cnn.BeginTransaction
[code].....
We aren't certain whether the timeout is occurring in DataAlreadyTransferred() or usp_BigNasty_CopyDataFromDB1toDB2 due to how the try/catch is written. We can restructure this code, but will take a week or so to get it to production (no errors occur on test/dev today)
DB1 - permanent storage, used by other applications as well DB2 - working set, used only by Web App
DataAlreadyTransferred(cID) first checks to see if DB2 has any copies of the records, if DB2 does and those records are clean it deletes them (data could have changed in DB1 and we want the most up-to-date version). If DB2's data is dirty it is left alone and no data is deleted.
usp_BigNasty_CopyDataFromDB1toDB2 copies rows from approximately 20-30 different tables and copies over the perm copies from DB1 into DB2, essentially creating a working set from which the Web App can access
We are aware this is inefficient and are examining ways to improve it, just haven't had time yet... I believe by having the transactions in the app code it's locking many more tables than is really needed. If we move them to the stored procs, less tables will be locked at one time thus improving our chances of removing deadlock conditions/timeout issues we're seeing today. Just not sure on this..
I am looking at re-writing an application (currently in C) which uses HIS 2004 (Could use 2009 if required) to access mainframe transactions. Is there a decent framework which I could use to connect and call mainframe transactions and relay any infromation into the existing system? ( I am developing in a .Net 4 environment) to remove the c coded requirement?
I am using the SQL Server and DB2 in my application. The DB2 transactions do not work with the DBProviderFactory Class but SQL Server work. I have to use to separate DB2 API's to make the transactions work but its very messy and involves a lot of code change.I extend DBProviderFactory class and add the DB2 transactions to it?
Can someone here give me an idea how should I make a transaction form or should we say a payment form.I already have a database with lists of students in it.Also a database with an event in it. Along with a fee on which every student should pay.
The problem is I want to make a form on which if this entry(student)were to make a payment his/her name will be marked as paid in the student database.More like a payroll system.Sorry I am kinda noob when it comes to equations or money matters in Vb.net All I know is add edit delete and search. Can somebody point me to a tutorial or a good idea where to begin?
I am using vb.net and ms access for developing windows applications. I want to know how to take the backup of database for after each and every transactions.
This is my code. I have a problem in displaying the total. Once checkbox is checked it adds the computation to the total. and when it is unchecked, even if the textbox= 0 still, the value of the total is retained.
When you are posting code please use code tags like this.
I have a vb.net web app and I am passing a SQL connection and a transaction to a method which writes a single record to the database.
I would like to start and commit a transaction for each record that is written but using the same sql connection until the loop is done.
One method I saw was utilizing a using statement but it didn't work for me.it runs the first time and gives an error on the second that the transaction has already been commited
Using sqlConnection = New SqlConnection(ConfigurationManager.ConnectionStrings("ConnectionString").ConnectionString)
I basically have a few thousand transactions 7,000 - 10,000 transactions to process over a short time. The flow goes like this.
---> ----> ---> ---> receive (1000) as each transaction takes approx 2 seconds so if i were to process synchronously it would take all night......
Now first i would like to ask if i am going about this the right way ? the service i am communicating with is not .net but is built to handle large amounts of requests. I have obtained the following code that suggests it will do what i am after
dim strxmlreq as string = '(this is where i input my xml string) Dim request As HttpWebRequest
' Create the request
[CODE]...
The problem i have is if the above will work for me where exactly do i catch the returned xml string ? I assumed "result" would be the xml output string.
How do I download transactions info from Paypal using VB.NET
I want to create an app which when i press a button. It downloads each new Paypal transaction to a textfile. I would like information like purchase item name, item description. And price to be added to textfile.
[code]...Download Transactions Info From Paypal Using VB?
How do I download transactions info from Paypal using VB.NET I want to create an app which when i press a button. It downloads each new Paypal transaction to a textfile. I would like information like purchase item name, item description. And price to be added to textfile. VB.Net in relation to a local computer is something I can work with. Put with intergrating VB.NET with Paypal is alittle out of my depth.
whether is it feasible to commit one huge transaction per time or do it multiple times.Lets say around 1000 - 3000 of mixed updating or inserting rows for per transaction or having a loop to commit every transaction as it loops.Which one is preferred ? will it have any impact ?
So I'm developing a program were, given some data by the user, the prorgam inserts some records into a database. To insert individual records in different tables I use either the standard INSERT method provided by the Table Data Adapter or a custom Insert Method when I want to insert something slightly differently.Sometimes the user would press a button and an operation where different records in different related tables are inserted. Since each Insert is handled individually for by the DataAdapters of each table, how can I manage to bring the whole thing to an atomic transaction way? I mean, let's say for example the User inserts a new Document in the system, the document has one or many Editions. How could i do something like: if the document was not created properly, then do not insert the editions.
I would like to use the transactions commit/rollback against a sql server rdbms within a VB 2010 module. I understand how these can be executed within a Transact-SQL session, but cannot seem to be able to code them correctly within VB as these are more like DDL statements.
How do I download transactions info from Paypal using VB.NET I want to create an app which when i press a button. It downloads each new Paypal transaction to a textfile. I would like information like purchase item name, item description. And price to be added to textfile.VB.Net in relation to a local computer is something I can work with. Put with intergrating VB.NET with Paypal is alittle out of my depth.
I am using Oracle 11g client, with ODP.NET. I am trying to add conditional Transaction handling.
Dim ds As New DataSet() Dim txn As OracleTransaction Dim _beginTransaction as Bolean = true Using conn As New OracleConnection(ConnString)
[Code]...
How do I fix txn being nothing / null? The error is: Variable 'txn' is used before it has been assigned a value. A null reference exception could result at runtime. Edit: to RichardOD for pointing out that you can not explicitly declare that a transaction cannot be opend up on stored procedures via ODP.NET. I have verified that this is an issue. BUT We still haven't figured out why the error is occuring. I understand that txn is initially given a value w/in an if statement, but being defined outside of the try/catch block should make that irrelevant.... right? Or is that bad coding?
I am trying to implement transactions across multiple TableAdapters in VB.NET (using Visual Studio 2010) by extending the partial class as described in the following examples:
I have currently processed a credit card using Authorize.net with Card Present settings. The great thing is that the card is being transacted but when i use the same card with different expiry date or a different cvs number the card is still being transacted. This shouldnt happen. Here is the code that im using in VB.NET.[code]
I'm using SQL Server and ASP.NET.[code]I have worked this way in another application with the same environment without a problem, but here I have this problem.
it says "The type initializer for 'System.Transactions.Diagnostics.DiagnosticTrace' threw an exception."
Private Sub BtnLoad_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnLoad.Click Dim Con As New OleDb.OleDbConnection Dim DbProvider As String
I'm trying to display a list of "bank transactions" (these are fake, it's a game) so no need to worry about security but what tool should I use? I've use a Grid view for other parts of the game and don't want to "overuse" this tool.The list may have 2 rows it may have 30 rows although I might limit this? It will need to be able to use a date, a text reason and a value.