Not that it is very timely, the answer is that it would print a 0 (zero). The statement:
printf("%d", '8'=='5+3');
Prints a decimal number (%d) and the decimal number it prints is actually a logical compare of the single character 8 ('8') and the single character '5+3' which is not really a...
What is wrong? Seems to me you said that it overwrote what was on the stack. That appears to be a problem (AKA wrong) to me. You are passing the address to an object probably an unsigned short (16 bits) and telling sscanf to fill it with a DWORD (64 bits). Seems pretty self explanitory on...
Yes, that is fine for dumping. It looks like you are using Linux/Unix. Be careful about leaving the dumps on /tmp. Linux has some, which I'm not sure what it is, model for cleaning the /tmp directory. I'm assuming you are logging in as the sybase account, so you can make a directory under...
You must give execute permission on stored procedures before a user can execute them. It is very similar to giving permission on tables. If a user does not have permission to do things on the table, SYBSASE will refuse to allow them to access it. Stored procedures are the same.
GRANT EXECUTE...
I think top is a Microsoft item. Try
Set rowcount 1
before the query and then
set rowcount 0
after the query.
Row count of 1 only returns 1 row.
Row count of 0 is back to normal, returns all rows.
You can pass a user defined parameter in LPARAM so I'll leave the return of the window text to you.
In the EnumWindowProc or EnumChildProc you can pass your own type (AKA ProcessInfo_t)....
ProcessInfo_t * processInfo;
processInfo = reinterpret_cast<ProcessInfo_t*>(lParam);
In the header file...
To add a customized pane to display your own message on the status bar, it only takes the following 6 steps. For this example, we are going to display the current time at the rightmost location of the status bar. It will be updated every 60 seconds.
First of all, add a new entry to your string...
Batches need to be run together. Comma says all are one declare and set is all one line.
Try this:
DECLARE @currKey int,
@prevKey int,
@currLine varchar(20),
@currline2 varchar(20),
@bigbine varchar(200),
-- NOTE I changed to bigline rather the BigLine...
What is the OS that you are using on the database server?
If it is Linux, then in the
/opt/sybase/sybcent41/bin directory there is a program scjview. Run it in the graphic mode and you get the sybase central front end. Connect to the database and go to the index you wish to see. Right click...
Looks BAD.
Looks like the same problem. Apparently, you may need to make the 32/64 bits match. If you are a SYBASE maintenance agreement facility, you may be able to get the 64 bit version. Alternately, you can try to get a 32 bit version of Linux.
Guess that about ends the help I can give...
Log in as sybase.
Go to the /opt/sybase/OCS-12_5/sample/ctlibrary directory.
I assume bash here.
$> export SYBPLATFORM=linux
$> make all
$> ./compute
You should get something like the following:
(I don't have the pubs database installed)
Compute Example
Server message:
Message number: 5701...
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.