pervasive

Query returning nothing

ぃ、小莉子 提交于 2019-12-11 01:54:48
问题 My query is as follows: Select h.ord_no from sales_history_header h INNER JOIN sales_history_detail d ON d.NUMBER = h.NUMBER WHERE d.COMMENTS LIKE '%3838CS%' And I get no results as shown here : But I should get results because : I ran the query: Select NUMBER, Comments from SALES_HISTORY_DETAIL WHERE NUMBER LIKE '%0000125199%' and got this (As you can see there's a comment field with 3838CS contained in it) : And ran this query: Select NUMBER, Ord_No from "SALES_HISTORY_HEADER" WHERE NUMBER

SQL Server 20XX - “encryption not supported on the client” when compiling stored procedure with linked server query

自古美人都是妖i 提交于 2019-12-10 16:35:54
问题 Attempting to compile a stored procedure in SSMS, which contains an open query to a linked server. The linked server is connected and in my 'Server Objects/Linked Servers' folder. I can do the open query in a query tab, but when the same query is ran within the procedure, I get the error Encryption not supported on the client This was just working yesterday, with no changes on my end, that I'm aware of. I am using SQL Server 2014 locally on my machine, and the procedure is attempting to

Pervasive ODBC on Linux Error [01000][unixODBC][Driver Manager]Can't open lib '/usr/local/psql/lib/odbcci.so' : file not found

自作多情 提交于 2019-12-10 15:26:15
问题 I'm attempting to get Pervasive v10 client ODBC working on Centos 6. As I've learned, there is no 64 bit ODBC client so I have to use the 32 bit one. I've finally gotten it to install without error but attempting usage gives the following: # isql -v mydsn [01000][unixODBC][Driver Manager]Can't open lib '/usr/local/psql/lib/odbcci.so' : file not found [ISQL]ERROR: Could not SQLConnect ldd shows this: # ldd /usr/local/psql/lib/odbcci.so linux-gate.so.1 => (0x007d3000) libpscore.so.3 => /usr

sql replace function that matches whole words

╄→尐↘猪︶ㄣ 提交于 2019-12-08 03:56:28
问题 I wish to replace some text within a field, so i have the following statement: UPDATE INVENTORY SET INV_DESCRIPTION = REPLACE(INV_DESCRIPTION, '5 ml', '5ml (1/6oz)') The problem lies in the fact that this statement will replace strings such as '5 ml' '15 ml' '150 ml' etc, with the replacement string. I wish for this function to match the whole word and just look for '5 ml' 回答1: You could add a WHERE clause which should get you pretty close: ...Your Current Query... WHERE INV_DESCRIPTION LIKE

Pervasive SQL query

▼魔方 西西 提交于 2019-12-07 22:51:36
问题 Does anyone have a query to search all columns in all tables in a Pervasive database for a specific value? I am struggling to find any info on this. Seems easy to do in sql server but not with Pervasive. 回答1: You don't need a stored procedure. You can do it with this query: select x$file.xf$name, X$Field.* from X$Field, X$File where xe$File = xf$id and xe$DataType < 200 and xe$name = '<Column Name>' order by xe$offset Changing to the name of the column you are looking for. For example, to

Btrieve/Pervasive db and Ruby

喜夏-厌秋 提交于 2019-12-06 15:55:33
问题 Is there any solution to work with Btrieve/Pervasive db from Ruby level? Any gem? Maybe somebody have some experience with such a thing? Or maybe use some Java libs through Jruby? I've never used Jruby 回答1: Never worked with that, but if there's a JDBC adapter for it, then it's a good idea to use JRuby. Using JRuby is dead simple, visit JRuby.org. 回答2: @kell I used jruby and JDBC Pervasive driver. Simple example: require "java" module JavaSql include_package "java.sql" end pervasive_driver =

Pervasive SQL query

烈酒焚心 提交于 2019-12-06 10:24:03
Does anyone have a query to search all columns in all tables in a Pervasive database for a specific value? I am struggling to find any info on this. Seems easy to do in sql server but not with Pervasive. You don't need a stored procedure. You can do it with this query: select x$file.xf$name, X$Field.* from X$Field, X$File where xe$File = xf$id and xe$DataType < 200 and xe$name = '<Column Name>' order by xe$offset Changing to the name of the column you are looking for. For example, to find a column named "Name", you would use the statement: select x$file.xf$name, X$Field.* from X$Field, X$File

Btrieve/Pervasive db and Ruby

强颜欢笑 提交于 2019-12-04 21:44:30
Is there any solution to work with Btrieve/Pervasive db from Ruby level? Any gem? Maybe somebody have some experience with such a thing? Or maybe use some Java libs through Jruby? I've never used Jruby Never worked with that, but if there's a JDBC adapter for it, then it's a good idea to use JRuby. Using JRuby is dead simple, visit JRuby.org . @kell I used jruby and JDBC Pervasive driver. Simple example: require "java" module JavaSql include_package "java.sql" end pervasive_driver = Java::JavaClass.for_name("pervasive.jdbc.PervasiveDriver") conn = JavaSql::DriverManager.getConnection("jdbc

Creating Java Connector for pervasive

你。 提交于 2019-11-28 01:46:25
CAN any one please tel me, how to create a connector for pervasive in java. I am very new to this,from where i need t start i am not sure, can any1 please tell me how can i create a connector for pervasive.i created a sample connector , but i am not sure whether it is right or wrong Here's a simple program I have that works for me to connect to a PSQL database: /* * SQLStatement.java * Simple JDBC Sample using Pervasive JDBC driver. */ import java.*; import java.sql.*; import pervasive.jdbc.*; import java.io.*; public class SQLStatement { public static void main(String args[]) { String url =

Creating Java Connector for pervasive

一笑奈何 提交于 2019-11-27 04:49:48
问题 CAN any one please tel me, how to create a connector for pervasive in java. I am very new to this,from where i need t start i am not sure, can any1 please tell me how can i create a connector for pervasive.i created a sample connector , but i am not sure whether it is right or wrong 回答1: Here's a simple program I have that works for me to connect to a PSQL database: /* * SQLStatement.java * Simple JDBC Sample using Pervasive JDBC driver. */ import java.*; import java.sql.*; import pervasive