Hi,
from front end application i am sending the value as 0.15 to data base (stored procedure) but it storing as 0 value . why ? please guide. I am usingf c# + asp.Net sqlserver 2008
I got a distance field in my database that stores the distance traveled on a specific route.
I need to select all the distance fields and plus them together, then returning the result from my storedprocedure.
How can this be done?
I have a system set up to lock certain content in a database table so only one user can edit that content at a time. Easy enough and that part is working fine. But now I'm at a road block of how to send a request to "unlock" the content. I have the storedprocedure to unlock the content, but how/where would I call it when the user just closes their browser?
Disregarding my last post, I've found the source of the problem. I'm using
a.renameTo(b)
when b doesn't exist. The reason it doesn't exist is because there is a symbolic link so if b is "/usr/name/folder/file", then b really is "/mnt/MountTest" because the symlink is to that directory.
So the question is, is there an alternative way to rename a file in Java using a string value?
If not, how can this rename procedure be done differently?
I know I missasked the question, and that's probably the reason I can't find the solution myself:
How do I take a result in a storedprocedure and and change the data such as
if column1 = AAA then
column1=Hello
else if column1 = BBB then
column1 = goodbye
and have the data return with the new values?
Thanks
I am trying to use this MySQL query:
SET @a:=0; UPDATE tbl SET sortId=@a:=@a+1 ORDER BY sortId;
Unfortunately I get this error:
"Parameter '@a' must be defined"
Is it possible to batch commands into 1 query like this, or do I need to create a storedprocedure for this?
What's your first reaction when SQA shoots a bug/issue to you with short description?
Do you have any rules for SQA's report at your company?
Got any test case document or testing procedure ?
I launch script.sh and inside it i want to know what is his name
Is there a standard procedure to know the scripts name ? the idea is to be able to extract the name from teh full path + name contained in $0
Thanks
I'm creating a sql based procedure which can
Accept a table
load the values one at a time
send the variables to a remote API
Record the response of the API
Write the response to a table for viewing later
I have successfully implemented 1,2, and 5. I am hoping there may be some way of choosing an address to contact and for SQL to listen too for a response. Please let me know if you have any suggestions!
I want to create a storedprocedure in MySQL and one of the input parameters will need to be a comma separated list of integers. How do I loop through each integer and run an update statement on it?
I've googled it but can't seem to find anything that will work for MySQL.
I am developing a vb.net application in SQL server 2005 ,now i would like to import MS access database tables from a network into sql server 2005 database, using storedprocedure or vb.net code without using SQL server 2005 Wizard . please find a sollution thanks a lot.
Hello.
I have a programme that has about 100 classes and more than 1000 functions spread over 20 header and source code files. What I want to know is that how I can pass arguments to so many functions in so many files? What is the procedure adopted for this in main()?
Regards,
Supriyo
Can anyone recommend a tutorial on how to write a java servlet which connects to ms sql server and manages data?
I'm trying to write something which pulls products out of one database and inserts them into a storedprocedure located on another database.
thanks in advance
Is there anyway invoke a PHP page / function when a record being inserted in to the mysql db table. We dont have control over the record insertion procedure.Is there some thing called trigger which can call a PHP script back ?
The Faking User Roles document in SDN appears to give exactly what I need. I have a few "roles" that I have access to through storedprocedure calls I don't control, read-only, via a CRM I don't have direct access to.
Unfortunately, I can't find the method AddRole, or even the class UserItem, by its present name. Does this functionality exist in Sitecore 6.2? If so, where is it?
Hello Guys,
I am new to TCL and seeking a help to deal with the following expression.
I am getting the i/p string from the user to validate any of these strings below & no others in a line in CLI
{ GHI GII GJI GKI}
and another tricky one is to write regexp to match only the characters which begin with alphabet A & end with B, It also have 1 or more of either YO or OY in between using procedure.
Thank you
My page contains images and labels which are bound to a datalist.
The label gets the text from a storedprocedure. I need to align it in the following format.
IMAGE Label( The text starts right to the image and continues..
below the image when it is too lengthy..)
"This website is temporarily unavailable. Please check back later.
Unfortunately there were no suitable nodes available to serve this request."
When I request a storedprocedure from my program (SP is taking 2 minutes to execute) the above error is getting.
I believe this is because of Load balancer Time out. How we can increment the load balancer time out.
Given two sorted lists, each containing n real numbers, is there a O(log?n) time algorithm to compute the element of rank i (where i coresponds to index in increasing order) in the union of the two lists, assuming the elements of the two lists are distinct?
I can think of using a Merge procedure to merge the 2 lists and then find the A[i] element in constant time. But the Merge would take O(n) time. How do we solve it in O(log n) time?
I am getting:
Run-time error '5':
Invalid procedure call or argument
this seems to happen when Text(1).SetFocus is called.
However, I dont see this run time error for all the cases where I have used SetFocus. Just 2-3 places it is causing this error.
Text(1).SelStart = 3
Text(1).SelLength = 1
Text(1).SetFocus
I tried:
Text(1).Enabled = True
Text(1).Visible = True
just above .SelStart, but it didn't fix the issue.
IN my table there are two field one is name and other is gender I want to fire query so that
every male is update with female and vice a versa.
I don't want to use procedure ,trigger or function.I have to do this only with simple query.
Hi Guys
I have an idea, can u tel me what the procedure to do this?
In my incoming calls r outgng cal it should display the phone number as wel as with network name For eg: 9876543210,Airtel like that
How to do that i am new to android. So anybody help me. whats the way to develop it?
Send me reply soon its very urgent
I have set new division on postgress pg_operator table because i want tath when is division by zero return 0.
i have write this:
create operator / ( procedure = zero_division, leftarg = double precision, rightarg = double precision);
where zero_division is:
CREATE OR REPLACE FUNCTION zero_division(double precision, double precision)
RETURNS double precision AS
'select case when $2 = 0 then 0 else $1 / $2::real end;'
LANGUAGE sql IMMUTABLE
COST 100;
when i run value/ 0 i get error of division.
I want to pass a pointer to a procedure in c++. I tried passing this LRESULT(*)(HWND, UINT, WPARAM, LPARAM) prc but it didn't work. How is this done?
Thanks
HWND OGLFRAME::create(HWND parent, LRESULT(*)(HWND, UINT, WPARAM, LPARAM) prc)
{
if(framehWnd != NULL)
{
return framehWnd;
ZeroMemory(&rwc,sizeof(rwc));
}
}
By "it didn't work" I mean it's a syntax error.
I want to make this kind of query:
create procedure something
@name varchar(13)
as
begin
select * from WORKER
where NAME LIKE "%@name%"
end
For input @name=ho, I want output every row that contains NAME wich sounds "ho",
for example HOuse, soHO, broHOw...