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...
P.S.
I missed something important in your last request. 64bit/32bit. I do not know the answer to that. I suggest going to the /opt/sybase/OCS-12_5/sample/ctlibrary/ and try to compile the samples supplied by SYBASE. If they complain as well, then you may need the 32 bit Linux or the 64 bit...
Probably a goofy question, but are you doing this:
./configure...
make
make install
as root?
I downloaded the latest version 5.2.2 and have sybase express 12.5.3 to test this out. I had to drop a couple of items off of your configure list, but all worked well on the compile. I did have to...
Radar concurs with Mufasa. You should be able to type
cd $SYBASE/$SYBASE_OCS and wind up in the sybase ocs directory. Additionally, if you type
env |grep LD_LIBRARY_PATH
you should get something like...
Have you made sure teh /opt/sybase/SYBASE.sh (csh) file has been run at least once during the login process. It defines some crucial environment variables. For example LD_LIBRARY_PATH.
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.