sybase

After reinstall SYBASE oledb provider it does not appear in SSIS connection manager

走远了吗. 提交于 2019-12-24 01:17:17
问题 I have reinstalled Sybase Adaptive Server Enterprise PC Client 12.5.4. After that it's completely disappeared from SSIS connection manager. How can I fix it? 回答1: Use ADO.Net not OLEDB When you need to connect to Sybase you have to add an ADO.Net connection not OLEDB: Official documentations In the following official documentation they mentioned that: Adaptive Server ADO.NET Data Provider can be integrated into SQL Server Integration Services (SSIS), allowing for native access to ADO.NET Data

Using Ubuntu, how do I install DBD::Sybase from CPAN?

孤街浪徒 提交于 2019-12-24 00:57:56
问题 Whenever I try to build DBD::Sybase to connect to MSSQL I get an error, $ sudo cpanp install DBD::Sybase Installing DBD::Sybase (1.15) Running [/usr/bin/perl /usr/bin/cpanp-run-perl /home/ecarroll/.cpanplus/5.14.2/build/DBD-Sybase-1.15/Makefile.PL INSTALLDIRS=site]... Can't find any Sybase libraries in /etc/lib or /etc/lib64 at /home/ecarroll/.cpanplus/5.14.2/build/DBD-Sybase-1.15/Makefile.PL line 155, <IN> line 44. BEGIN failed--compilation aborted at /usr/bin/cpanp-run-perl line 11, <IN>

sybase: how do I drop all tables, and stored procs if possible?

梦想的初衷 提交于 2019-12-24 00:56:48
问题 I want to drop all tables and stored procedures in a schema, anyone know how to do this? I'd like to avoid dropping the entire database if possible. 回答1: You could iterate over the sysobjects table with a series of drops and systematically drop all the objects you want gone. declare tables cursor for select name from sysobjects where type='U' go declare @name varchar(255) open tables fetch tables into @name while (@@sqlstatus = 0) begin exec("drop table "+ @name) fetch tables into @name end

Sybase更换字符集(cp850-->cp936)

╄→гoц情女王★ 提交于 2019-12-23 20:13:09
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 修改的操作步骤 Sybase server 名:eastsoftcourt (在Dsedit中设置) Sybase sa 的口令:sybase 生产库名:escourt6 操作的目录:d:\sybase 1 、停止数据库服务器对外服务,注意并不是停止你的服务器的服务。检查一下master库的大小,不能小于40M。 2 、备份你的数据库,注意是全部备份。建议你将你的数据库做一次DBCC。 1>dump database escourt6 to “d:\sybase\escourt6.dmp” 2>go 3 、据库的缺省字符集设置为cp936: C:\>cd sybase C:\sybase>cd charsets C:\sybase\charsets>cd cp936 C:\sybase\charsets\cp936>charset -Usa -P -Seastsoftcourt binary.srt cp936 你将看到下面的信息,表示这时你已经成功添加了cp936字符集到你的系统中。 Loading file 'binary.srt'. Found a [sortorder] section. This is Class-1 sort order. Finished loading the Character

sybase客户端更换字符集

删除回忆录丶 提交于 2019-12-23 19:53:05
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 一、打开Sybase Central 连接上数据库,打开master数据库的syscharsets表,查看name列里面有没有CP936数据,如果没有,进入步骤二;如果有,操作步骤三。 二、运行 --> CMD 进入 DOS窗口 命令提示,进入目录 D:\sybase\charsets\cp936 (这是我的Sybase安装目录),输入命令 charset -Usa -P -S binary.srt cp936 三、按步骤一,打开master数据库的syscharsets表,查看name列CP936对应的id应该是171,在左边数据库服务器名上点(我的服务器名为GZLCL)“右键-->属性 --> 服务器配置 ”在“显示配置参数”中选择 “Langguages” ,“default character set id"填写171 ,“确定” 然后重新启动服务。 或者isql命令行:sp_configure "default character set id",171 四、配置locales.dat文件:文件路径为D:\sybase\locales\locales.dat 用记事本打开 找到 “[NT]” 将其默认字符集改为locale = default, us_english, cp936 这样在Sybase

Select TOP 1 * from Table Fails in Sybase Procedure

大兔子大兔子 提交于 2019-12-23 12:33:40
问题 Am trying to Fetch Only one record from the Sybase Table without using the RowCount Function, even though "WHERE Condition" returns multiple results. SELECT TOP 1 EMPLOYEE_NAME FROM EMPLOYEES WHERE EMPLOYEEID > 50 Runs Successfully with one Record Only, However SELECT TOP 1 EMPLOYEE_NAME FROM EMPLOYEES WHERE EMPLOYEEID > 50 fails, when written inside a Sybase Procedure as a Sub Query 回答1: Top is supported only in outer query only, here is the link For ordered data I am using having cause

Alter exisitng int column to identity in sybase

时光总嘲笑我的痴心妄想 提交于 2019-12-23 12:25:58
问题 Sybase 12.5 I have an existing table in production that needs it's PK int column to be altered such that it is auto populated - when the table was created it would ideally have had the ID column created as an Identity. This ID column is a foreign key in multiple other tables so deleting the table and starting again isn't an option. Problem is, I can't set the PK as an IDENTITY, and creating a temp column with the current values and copying these to a new IDENTITY column is also failing. As

How do I update multiple columns with a subquery in a single statement?

谁说我不能喝 提交于 2019-12-23 10:15:37
问题 I am attempting to update a temp table from a source table: UPDATE #DETAIL SET EXCD_ID, CDOR_OR_AMT, CDOR_OR_VALUE (SELECT CDID_ADDL_DATA_1, CDID_ADDL_DATA, CDID_VALUE_STRING FROM CMC_CDID_DATA CDID WHERE CDID.CLCL_ID = DTL.CLCL_ID AND CDID.CDML_SEQ_NO = DTL.CDML_SEQ_NO AND CDID_TYPE = 'NDC' ) FROM #DETAIL DTL WHERE DTL.CDOR_OR_ID = 'XS' Unfortunately it complains Incorrect syntax near ',' (on the '(SELECT' line) Incorrect syntax near 'FROM' (the second one) 回答1: After much trial and error I

Using Sybase ASE BCP to a Remote Server

梦想的初衷 提交于 2019-12-23 03:38:18
问题 I am using BCP to export/import data sometimes to remote servers where i cannot login into the OS, only connect to the DB. I have success with using BCP to connect to a server like this: bcp mytester.dbo.MyTable in MyTable.bcp -S Sybase157 -U sa -P SyAdmin -n This of course only works becuase Sybase157 is defined in my sql.ini. My question: a) Is it possible to sidestep the whole sql.ini thing and just do something like -S mydb.server.com or -S 123.123.123.123 and if not.... b) what do i need

Does sybase 15 support the bcp api in java?

我的未来我决定 提交于 2019-12-22 05:30:08
问题 A long time ago I figured out that bcp is just a little C program that calls the special bit of the sybase client api to do mass data moving into the database. It lies cheats and steals and skips check constraints all in the name of speed. Great, I'm all for it. In sybase 12 I noticed that the api was exposed in the C client library, but not the java one. I've been looking but I haven't found anything that says they've yet implemented it in the sybase 15 java client library. Does anybody know