Exectuting SQL Code From Program

Aug 14, 2009

I am an OLD programmer, basic, Pascal, c, FORTRAN, and haven't programmed for about 15 years.I am now taking on a challenge to develop a reporting tool for my Exchange 2007 group.I am currently stuck on snippet of code that returns the result of a simple SQL Query.I am using VS2008 and developing in VB.The database that the program will front end for is SQL 2005.All variables not explicitly declared are globally declared.[code]No matter how I try to recover the information, I have even executed it as a stored procedure; I get the wrong value returned.I believe that it is caused by the use of the .executeNonQuery() command as the results are either 0 or -1.Can anyone verify this for me and explain what I should be using to return the correct value (33) from the query.I am trying to return this value to terminate a loop that I will execute to fill a list of the exchange mailbox servers in a form to add new exchange servers.

View 4 Replies


ADVERTISEMENT

Code A Button That Changes The Underlying Code Of Your Program?

Mar 27, 2012

I'm wondering if it is possible to write the code for the button so that, when pressed by the user, it would add whatever text is in the text box to the list box and change the code of the form load to add that text to the pre-existing listbox.items.add's that are in the code of the form load.

View 2 Replies

Program Builded With VB6.0 - Run Uncertain Time - Program Will Crash - Oleaut32.dll Error Message (Error Code: 0x00048f9) In Event Viewer

May 5, 2011

The program has errorhandle and write log function, however, it could not catch the error message in the program.

The following error message in Event Viewer. Error Module: oleaut32.dll ,version 5.1.2600.5512, error code: 0x000048f9

View 1 Replies

Put Src Code In Program?

Sep 27, 2009

I downloaded vb but i cant put in src ccode.

View 7 Replies

Code Array In Program?

Apr 1, 2012

How can i convert this to vb.net?

View 4 Replies

Code For A Calculation Program?

May 28, 2009

allow the user to enter a stock transaction and determine the stockbroker's commission. Each transaction includes the following data: the stock name, price per share, number of shares involved, and the stock broker's name. Assume price per share = P. The stockbroker's commission is computed in the following manner: If the P (price per share) is less than or equal to $50, the commission rate is $0.19 per share, if P is greater than $50, thecommission rate is $0.26 per share. If the number of shares sold is less than 150, the commission is 1.5 times the rate per share. Display the results in a message box, including the total commission earned.

View 2 Replies

Convert C# Code To Program?

Dec 14, 2009

It can be compiled successfully in C#[code]...

Is it the language difference between c# and vb.net?

How can i covert this C# Code to VB.NET Code?

View 5 Replies

Convert C++ Code To Program?

Apr 21, 2009

"Here's the code from kaymaf's first post. I used a website to convert it from C# to VB.Net. If you can't get it to work, post again and we'll try something different."[code]...

View 6 Replies

Convert Code From C# To Program?

Feb 23, 2011

I need to convert following code block from C# to VB.NET.[code]....

View 4 Replies

Convert Code In Program To C#?

Mar 3, 2011

This is code in vb.net

Protected Overrides ReadOnly Property CreateParams() As CreateParams[code]...

View 3 Replies

Convert Following Code From C To Program?

Jan 22, 2011

Convert following code from C to program? I have a feeling it would be pretty simple.[code]..

View 1 Replies

Convert PHP Code To Program?

Mar 12, 2010

How do I convert the below PHP code to VB.NET?[code]...

View 4 Replies

Convert Program Code To C++?

Apr 21, 2010

Can I convert my VB code to C++? [code]....

View 2 Replies

Creating Program With Code

Apr 5, 2011

I want to create a program using vb.net code.What I mean is: write all the files necessary to be able to compile it to a .exe-file. Is there any way of doing this?And what is the easiest for the form creation? Winforms or WPF?

View 2 Replies

Have Program Installer Run My Code?

May 29, 2012

I have been searching online for an answer for this question, but cannot find anything useful in my case. I added deployment to my project, but I want that deployment to copy JavaScript files to a certain dynamic location. The only way I can think of is having the deployment call my function that I can write in VB.net.

View 1 Replies

How To Run Code While A Program Is Minimized

Apr 16, 2010

Im doing a small project in visual basic which involves lighting up leds through the parallel port and turning them on and of. each led is controlled by a checkbox on my form and they only come on when the checkbox is checked i currently have this code

[Code]...

View 2 Replies

How To Set Code To Do On Program Close

Jan 14, 2010

I don't know if this is possible I want my program to execute certain code before it will close even when the x is pressed is that possible. Because its leaving streamreaders open.
Timer1
Open sreamreader etc
So the timer is set to 100ms to constantly update the data waht happens is its leaving it open when someone closes it during its cycle.

View 12 Replies

Include Code With Program?

Mar 7, 2011

How can I include a Java code with VB.NET code?

View 1 Replies

Launch A Program From A Code?

May 1, 2009

I am not trying to make this a hard! How do I?

View 2 Replies

Program Skipping Code?

May 12, 2012

the program compiles properly, however during the saving and loading part of the code, "btnSave" and "btnLoad" subs, the program only saves the data from one of the text boxes even though it should loop 4 times.

Public Class Form1
'Declarations
Dim intEmployeeAdded As Integer = 0
Dim strSelectedName As String

[code]....

View 4 Replies

Re-write F# Code In Program?

Aug 7, 2011

Some time ago, I did some F# programming, the following code is used to serialize/deserialize float32 array:#light

However, nowadays, I have to do some programming in VB.NET to serialize/deserialize float32 array again. As F# programming is not suitable for GUI, but GUI is necessary for my current programming.I want to know how I can rewrite the above code in VB.NET.For example, I have a float32 array, (I dont know what data type in VB.NET is equivalent to float32 array in F#) of (1.0, 2.0, 3.0); I want to serialize it using DataContractSerializer, then read it back so I can still get the same float32 array.

View 1 Replies

Same Code Error In One Program?

Jul 26, 2010

The same code is being run in 2 different programs to fill an JanusSystem multiselect combobox.

Code:
Private Sub Tasks()
****************************************************************************
' Description: Load the combo box for Tasks
' Created by: LMarshall

[code]....

I am unable to determine why it is a problem in one program and not a program in the other one.

View 5 Replies

Use Unsafe Code In Program?

May 6, 2011

I would like to know the VB.NET equivalent of the following C# [code]...

View 2 Replies

Where Is Last Successfully Run Program Code?

Jun 8, 2009

A problem developed in a program after some changes were performed. It runs the previously good program. Is it possible to get back the good program's code?

View 2 Replies

.net - Program A Button Made In Code?

Feb 29, 2012

For example, if on form load Button1 was created, how would I make this button function?

View 2 Replies

C# - What Happens If Add Lines To IL Code And Add Breakpoints To Program

Aug 8, 2009

If I add let's say 1 line at the beggining of a method, if I set a breakpoint through Visual Studio on the first line, will it point to the first line or the second? If it will flag the wrong line, is there anything we could do when editing .exe files to ensure a regular debugging session later?Isn't there something like setting line x to be Y? I remember seeing something like that somewhere, not sure if .NET related or not.

View 4 Replies

Call Script From Code Behind In Program?

May 8, 2012

I have java script in my page and i want to call it from vb.net code behind from function AND didn't want to call it (onload or onclick or any similar event) but i want to call it from function doing looping.so it will be run more one time

View 2 Replies

Code For A Program - Converts Weight ?

Jun 14, 2010

Code to make a program in visual basic that converts your weight from Earth to you weight on the Moon.

View 3 Replies

Code Is Missing But Program Still Does Its Function

May 21, 2012

I have a problem with my vb.net program. Some parts of the code dissapeard but i still can run the program normaly. Even if i add a new button it doesnt appear.I have a button that uploads some files to mysql database but then i double click that button a new sub appears with nothing in it..

View 5 Replies

Code Migration Wizard In Program?

Apr 5, 2011

I have come to know that there is a code migration wizard, that heps migrate from vb6 to vb.net.

View 1 Replies







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