Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: charindex

Started 2 months, 1 week ago by Carney123
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.
Site: Tek-Tips Forums  Tek-Tips Forums - site profile
Forum: Sybase: Adaptive (SQL) Server  Sybase: Adaptive (SQL) Server - forum profile
Total authors: 10 authors
Total thread posts: 10 posts
Thread activity: no new posts during last week
Domain info for: tek-tips.com

Other posts in this thread:

holdahl replied 3 months ago
In the documentation at sybase.com it says that CPU time is in milliseconds. (product manual)

PDreyer replied 2 months, 4 weeks ago
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.

holdahl replied 3 months ago
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

PDreyer replied 2 months, 4 weeks ago
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.

Yardyy replied 3 months ago
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

PDreyer replied 2 months, 4 weeks ago
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

Yardyy replied 2 months, 4 weeks ago
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

chinasyndrome replied 2 months, 1 week ago
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 ...

goal9 replied 2 months, 1 week ago
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, ...

 

Top contributing authors

Name
Posts
PDreyer
4
user's latest post:
DELETE SEVERAL ROWS
Published (2009-11-02 03:37:00)
Quote (mireles10): Once the row is deleted, DO I need to run DBCC? No, that is unnecessary.
chinasyndrome
2
user's latest post:
2 db same name on 1 server, cant...
Published (2009-10-07 11:03:00)
here is what happens on startup "D:\Program Files\Easy\Shared Files\dbsrv7.exe" -ti0 -xTCPIP -tl0 -nEASY "D:\Program Files\Easy\Data\MDM.db" -nDSERV "D:\Program Files\Easy\Data\Data2\MDM.db" -ndentserv2 "D:\Program Files\EASY\Data\ast_easy.db" -nast_serv &nbsp;
r124l
2
user's latest post:
create dynamic cursor, Help...
Published (2009-10-26 20:15:00)
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 &nbsp;
Carney123
1
user's latest post:
charindex
Published (2009-09-30 18:27:00)
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. &nbsp;
goal9
1
user's latest post:
Need some help on creating...
Published (2009-10-05 14:45:00)
Hi All, &nbsp; 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... &nbsp; Can we set foreign key constarint to a table in another database?&nbsp;&nbsp;This is what I've done: &nbsp; use new_database go create table Sample(...
gchalise
1
user's latest post:
BCP of few records from a big table
Published (2009-10-23 18:08:00)
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
mireles10
1
user's latest post:
DELETE SEVERAL ROWS
Published (2009-10-26 22:35:00)
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&nbsp;&nbsp;from the X table.&nbsp;&nbsp;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...
mankish
1
user's latest post:
Parse String
Published (2009-11-06 17:41:00)
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...
poorti
1
user's latest post:
i am new to Sybase.can anyone...
Published (2009-11-07 00:55:00)
Plz suggest good book ...
jjones794
1
user's latest post:
Problem running drop/create script
Published (2009-11-19 08:37:00)
An example of one table in the script: drop table HTMLEXTRACT go create table HTMLEXTRACT ( &nbsp;&nbsp;&nbsp;&nbsp;"doc_id" numeric(32) identity not null, &nbsp;&nbsp;&nbsp;&nbsp;"parent_id" numeric(32) not null, &nbsp;&nbsp;&nbsp;&nbsp;"doc_type" varchar(10) not null, &nbsp;&nbsp;&nbsp;&nbsp;"pid" numeric(16) not null,...

Related threads on "Tek-Tips Forums":

Related threads on other sites:

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