Looping thru values returned from a database and passing the values to a method.
I need to retrieve names(5000) from a database and modify each value by passing it to a function then that returned value needs to be updated in the database. So far no luck.
Dim ConnString As String =...
I run the following:
select custname, count(custid) as CUST
Produces the following:
Brandon 0
Greg 0
Sam 5
Chris 0
Steve 2
Jordan 0
How can I substitute the zero values for a blank space?
Thx
I have a datalist that contains a listbox and a label. I need to count the number of values in the listbox and display that number in the label.
Nothing that I have done has worked.
I cannot capture the value of an item selected from a dropdownlist. The value captured is always the first item in the drop down list..
Code:
If IsPostBack Then
txttech.Text = DropDownList1.SelectedItem.Text
End If
Response.Write(txttech.Text)
Thx
I cannot get the insert statement to run. I get a return value and the insert statement does not get executed. What am I doing wrong.
use database
go
create procedure dbo.ins
@tsename varchar(50),
@techid uniqueidentifier OUTPUT,
@casenum varchar(10),
@productid uniqueidentifier OUTPUT...
Can someone please tell me what I am doing wrong? I am trying to create a trigger that will convert a negative number to a positive number after an insert. This is how it would be done with Oracle..
Any help would be appreciated...
create or replace trigger <trigger name>
after insert
on...
Hi,
I need to create a trigger that will replace a value that has been inserted. If a negative number is inserted into a record how to change that value to a positive value.
create or replace trigger num_val
after insert of n_app on emp
begin
If n_app = ( a negative number)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.