I have SELECT CHARINDEX('vital', @document, 5) in SQL and I want to equivalent command in Sybase can anyone help on this. If I do same thing it throws an error. Function CHARINDEX invoked with wrong number or type of argument(s). Is there equivalent start_location parameter in Sybase? thanks for any help.
OK, what I meant before about it depends on where you read the info is that e.g the mda tables might use a different unit than the output from sysmon, etc.
I have problem with the master database at one of our ASE 15.0.3 servers. The master database is filling up and I don't know what's causing this. Have tried to analyse the transaction log to see what's going on but I'm not sure what to look for. (have been using dbcc log) -holdahl
Although there are activity on master that can over time fill the log space of master (i.e. you need to truncate the log on a not to frequent basis) I suspect in your case you might incorrectly have user defined tables in master.
Hi, We have a sybase v6 database, and we use a small script to backup each night. dbbackup -c "dsn=nma" -y -q n:m_backup this generates two files one is called ptadata.edb and one called ptadata.log, i need to restore the data back, as the database is corrupt. Could someone please show me how to restore a backup, just the syntax would be good. Regards Many Thanks Yurov Ardyy
I haven't used SQL Anywhere for some time but if I remember correct you can just stop the database engine, replace the database files with the files from the backup and restart. I think this forum is more related to Adaptive Server Enterprise than to SQL Anywhere You might have better luck posting at an SQL Anywhere newsgroup e.g. sybase.public.sqlanywhere.general
I tried that already, and it was saying that the log files are not from the same database, but thanks for your reply and suggestion for the link. Many Thanks Yurov Ardyy
Hi I am trying to use Dot net to connect to a sybase DB. this connection string usually works but i have run into a snag I use this connection string ODBC; Driver=Sybase SQL Anywhere 5.0;Dbf=<path to db> ;Uid=<LOGIN> ;Pwd=<Password> ;Dsn=<DSN NAME> this server has 2 databases called MGN.db 1 is in c:\data\ the other is in c:\data\satelite there is 1 dsn setup called MGN when i set my ...
Hi All, I created a new database and 2 tables inside but one of the tables has foreign key which can not be created as I'm getting error on the foreign key... Can we set foreign key constarint to a table in another database? This is what I've done: use new_database go create table Sample( sample_id varchar(30) not null, sample_type char(1) not null, ...
Hi every one, I need some help, I am using ASA 5, and i am using this script to make dynamic cursor declare cursor_a dynamic scroll cursor using @sql; in ASA 9 it work. but when i run it on ASA 5 it failed the message is "Error open cursor". Is there any difference syntax between ASA 9 and ASA5? Thank you for your help
I have SELECT CHARINDEX('vital', @document, 5) in SQL and I want to equivalent command in Sybase can anyone help on this. If I do same thing it throws an error. Function CHARINDEX invoked with wrong number or type of argument(s). Is there equivalent start_location parameter in Sybase? thanks for any help.
Hi All, I created a new database and 2 tables inside but one of the tables has foreign key which can not be created as I'm getting error on the foreign key... Can we set foreign key constarint to a table in another database? This is what I've done: use new_database go create table Sample(...
I am a beginner and trying to learn database specially Sybase. I am trying to copy only selective data from table into text file using BCP but I couldn't, I know simple bcp in and out but what if i want to copy records from 10000-20000 from a table which has millions of records? Any body can help me out plz. thanks in advance Micky
First of all, I want to apologize if this is a duplicate post. I believe I post the question but I could not find it. Using Sybase 12.5 on Windows Server 2003 I have 2 tables X, and Y 1. use a select statement to find out some values from the X table. Several values are return A B C ..n Now I write DELETE statement to delete every row DELETE from Y where columnName = A DELETE from Y where columnName = A...
I have a table with a column called members and in it the rows are like ID Members ---------- ----------- 1 1\2\3 2 2\3\4 3 2\3 4 1\5 I have a reference table where 1 = father, 2= mother, 3=sister, 4=brother, 5=grapnparents. Is there any way I can query the memebers table like this ID Members ---------- ------------------ 1 father,mother,sister 2 mother,sister, brother 3 mother,sister 4 father,grandparents. What I want to do is just replace...
An example of one table in the script: drop table HTMLEXTRACT go create table HTMLEXTRACT ( "doc_id" numeric(32) identity not null, "parent_id" numeric(32) not null, "doc_type" varchar(10) not null, "pid" numeric(16) not null,...
Hmm, bufffer overrun in
IndicReorderingOutput::... Hmm, bufffer overrun in
IndicReorderingOutput:: writeChar(LEUnicode ch, le_uint32 charIndex, FeatureMask charFeatures) 5:29 PM Feb 6th, 2008 from web
Thread profile page for "charindex" on http://www.tek-tips.com.
This report page is a snippet summary view from a single thread "charindex", located on the Message Board at http://www.tek-tips.com.
This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity