Copy a clomun to another with diferent data type
Hi
I have a table and two rows have money (I wantinfo but the column was created as varchar2, so I created new columns as number type, to copy my data but I think Im missing something
-deb1 as new cloumn and total_debt as data to be copied
UPDATE master_tc
SET deb1
(select total_debt
FROM master_tc); Regards
Levi P.
Hi,
893409 wrote:
CREATE TABLE "LEVI"."MASTER_TC"
( "ID_2ND" VARCHAR2(80 BYTE),
"ACCOUNT" VARCHAR2(65 BYTE),
"DESCRIP" VARCHAR2(100 BYTE),
"TRANSACTION" VARCHAR2(60 BYTE),
"MOVI" VARCHAR2(100 BYTE),
"SOURCE" VARCHAR2(60 BYTE),
"DATE" VARCHAR2(20 BYTE), ...
Good! That's the CREATE TABLE statement. Don't forget to post INSERT statements to populate the table as it exists now (unless the whole point of the question is how to populate the table. However, you said that
you had a total_debt column that already contained a string, so I don't think this is the case.)
Whether the table has data in it before the DML or not, post what you want the table to look like after the DML is completed.
DATE is not a very good column namel; it's exactly the same as a built-in data type, and will cause errors and confusion. Use something like dt or transaction_date instead.
... Then when I run my script:
UPDATE master_tc
SET deb1
(select total_debt
FROM master_tc);And I get this error:
Error starting at line 1 in command:
UPDATE master_tc_NOLISTADO
SET deb1
(select debe
FROM master_tc_nolistado)
Error at Command Line:3 Column:1
Error report:
SQL Error: ORA-00927: missing equal sign
00927. 00000 - "missing equal sign"
That's one of those error messages that acutally means what it says. The syntax requires an = sign in the SET clause.
Review the syntax of the UPDATE statement in the SQL Language manual. The basic format is
UPDATE table_name
SET column_name = val
-- ^ note = sign here
;as Greg and I showed in our suggestions. Have you tried them?
Similar Messages
-
Same Input name with different data type cause the reflection exception
I have a proxy contains couple RFCs. Two RFCs contain an argument named IN_COMPANY_CODE with data type of ZTRE_FX_BUKRSTable. Another RFC contains the same argument name of IN_COMPANY_CODE but hold different data type (String). All RFCs are in the same proxy. Complie and build the application with no issue.
But when I ran the RFC, it generates the reflection exception below:
Method SAPProxy1.Z_F_Tre_R_Pre_Trade_Fx can not be reflected. --> There was an error reflecting 'In_Company_Code'. > The XML element named 'IN_5fCOMPANY_--5fCODE' from namespace '' references distinct types System.String and MSTRFOREX.ZTRE_FX_BUKRSTable. Use XML attributes to specify another XML name or namespace for the element or types.
I realize the conflict introduced by the same name with difference data type. But I would like to know if this is fixable as a bug or if there is any best practice and/or some manual intervention to make it work.Please install fix from OSS note 506603. After this, right-click .sapwsdl file and select "Run custom tool".
-
Check box with Boolean data type is not behaving properly
Hi,
I create a sample application with one entity driven view object with two attributes. One is of String data type [Value will be Y/N] and another (transient) attribute with Boolean data type. I planned to bind this boolean data type attribute to UI. I overridded the view row impl class and included setting of boolean attribute inside the setter of String attribute. Also in the getter of boolean attribute, added code to check the string attribute and return true/false based on that. Everything is working fine in application module tester. But when i test the same in view controller project in a page, it is not working. Always Check box component is not checked eventhough when i explicitly check it.
[NOTE: I have given the control hint of Boolean attribute as check_box. Also i don't want selected/unselected entries in the page def file. That's why followed this approach]
Have i missed out anything? Why this behaviour.
Thanks in advance.
Raguramanwhat is the value that is going in when u check it.. did u debug it.. is the viewRowimps setter and getter getting called.. and is it having the right value set and got.. and ur sure that ur using selectBooleanCheckBox..
ur binding the checkbox to the transient value right?? -
How to insert data in a column with uniqueidefier data type
Guys,
I need insert data in a column with uniqueidefier data type, when i am trying to that getting error.
error message says: "Conversion failed when converting from a character string to uniqueidentifier."
I have data in table a col1,col2,col3,col4 - col3,col4 has datatype as varchar and i am updating table b columns col1,col2 with table a col3 and col4.
Please guide how to do it.Hi,
Not any String can be convert to uniqueidentifier.
1. you have to make sure u use a value which is fir to be uniqueidentifier
2. Use convert or cast in the insert query in order to convert the string into uniqueidentifier
insert X ... convert(uniqueidentifier, 'string which fit to be convert to uniqueidentifier')
Please post DDL+DML for more specific help
DDL = Data Definition Language. In our case that is, CREATE TABLE statements for your tables and other definitions that are needed to understand your tables structure and there for let us to test and reproduce the problem in our server. Without DDL no one
can execute any query.
How to get DDL: Right click on the table in Object Explorer and select script table as CREATE. Post these create table scripts here.
DML = data manipulation language is a family of queries used for manipulating the data it self like: inserting, deleting and updating data. In our case we need some sample data in order to check the query and get result, so we need some indert query for
sample data.
If you post a "create query" for the tables and "insert query" with some sample, then we could help you without Assuming/Guessing. There is a reason that DDL is generally asked for and expected when discussing query problems - it helps
to identify issues, clarify terminology and prevent incorrect assumptions. Sample data also provides a common point of reference for the discussion. A script that can be used to illustrate or reproduce the issue you have, will encourage others to help.
[Personal Site] [Blog] [Facebook] -
Call a method with complex data type from a DLL file
Hi,
I have a win32 API with a dll file, and I am trying to call some methods from it in the labview. To do this, I used the import library wizard, and everything is working as expected. The only problem which I have is with a method with complex data type as return type (a vector). According to this link, import library wizard can not import methods with complex data type.
The name of this method is this: const std::vector< BlackfinInterfaces::Count > Counts ()
where Count is a structure defined as below:
struct Count
Count() : countTime(0) {}
std::vector<unsigned long> countLines;
time_t countTime;
It seems that I should manually use the Call Library Function Node. How can I configure parameters for the above method?You cannot configure Call Library Function Node to call this function. LabVIEW has no way to pass a C++ class such as vector to a DLL.
-
JDBC insert with XMLTYPE data type
Hi,
SOAP to JDBC scenario. Oracle 11G as a receiver.
Requirement is to insert whole xml payload message in one of Oracle table fields as a xml string. Target oracle DB table column is defined with XMLTYPE data type, it has capacity to hold xml data more than 4GB. I am using graphical mapping with direct INSERT statement.
When I try to insert xml payload with smaller size transaction goes through. However when the xml payload size increases it is giving following error in JDBC receiver communication channel monitoring.
Could not execute statement for table/stored proc. "TABLE_NAME" (structure "StructName") due to java.sql.SQLException: ORA-01704: string literal too long
Here is insert statement as in communication channel monitoring. (Note: XML payload with bold characters is truncated)
INSERT INTO TABLE_NAME (REQ_ID, OUTAGE_OBJ, TIMESTAMP, PROCESSED_FLAG) VALUES (VAL1, <?xml version="1.0" encoding="UTF-8"?>............</>, TO_DATE(2010-11-15 10:21:52,YYYY-MM-DD HH24:MI:SS), N)
Any suggestions to handle this requirement?
Thank you in advance.
Anand More.Hi Anand,
The problem here is definitely the length of the SQL query. i.e "INSERT INTO ......... VALUES......."
This is what i got when i searched for this ORACLE error code:
ORA-01704: string literal too long
Cause: The string literal is longer than 4000 characters.
Action: Use a string literal of at most 4000 characters. Longer values may only be entered using bind variables.
Please ask a ORACLE DB expert on how to handle this Also i am not sure how can we handle Bind Varibales in SAP PI.
I hope this helps.
Regards, Gaurav. -
Problem with bool data type in overloading
Please find the following error.
I did following typedef:
typedef bool Boolean;
typedef signed int Sint32;
Problem description:
This error is occurring because Sun CC 5.9 or Solaris 9 g++ considers bool data type as signed Integer, when passed as an constructor argument. First, it is overloading the constructor with �bool� data type and when it comes the turn of �signed integer� to overload constructor, the compiler is giving an error �cannot be overloaded�. The error �redefinition� is also due to bool data type.
Could please let me know, whether i need to add ant compiler option on Sun CC
ERROR in g++:-
( /usr/local/bin/g++ -DSOLARIS_PLATFORM -DUNIX -DPEGASUS_PLATFORM_SOLARIS_SPARC_GNU -DPEGASUS_OS_SOLARIS -DPEGASUS_HAVE_TEMPLATE_SPECIALIZATION -DEXPAND_TEMPLATES -DPEGASUS_USE_EXPERIMENTAL_INTERFACES -Wno-non-template-friend -DTEST_VAI -D__EXTERN_C__ -Dregister= -D_POSIX_PTHREAD_SEMANTICS -Wno-deprecated -DAUTOPASS_DISABLED -DCLUSTER_GEN_APP -DSTAND_ALONE_INTEG -I"/TESTBUILD/p2.08.00/TESTsrc" -I/TESTBUILD/pegasus/src -I"/TESTBUILD/p2.08.00/TESTCommonLib" -O -c -o /TESTBUILD/p2.08.00/TESTobj/TESTBase.o /TESTBUILD/p2.08.00/TESTsrc/TESTBase.cpp );
In file included from /TESTBUILD/pegasus/src/Pegasus/Common/Array.h:74,
from /TESTBUILD/pegasus/src/Pegasus/Common/CIMName.h:40,
from /TESTBUILD/pegasus/src/Pegasus/Client/CIMClient.h:39,
from /TESTBUILD/v2.08.00/TESTsrc/TESTVAIInterface.h:4,
from /TESTBUILD/v2.08.00/TESTsrc/TESTCaVAI.h:24,
from /TESTBUILD/v2.08.00/TESTsrc/TESTBase.h:11,
from /TESTBUILD/v2.08.00/TESTsrc/TESTBase.cpp:1:
/TESTBUILD/pegasus/src/Pegasus/Common/ArrayInter.h:49: error: redefinition of `class Pegasus::Array<Pegasus::Boolean>'
/TESTBUILD/pegasus/src/Pegasus/Common/ArrayInter.h:49: error: previous definition of `class Pegasus::Array<Pegasus::Boolean>'
In file included from /TESTBUILD/pegasus/src/Pegasus/Common/MessageLoader.h:42,
from /TESTBUILD/pegasus/src/Pegasus/Common/Exception.h:44,
from /TESTBUILD/pegasus/src/Pegasus/Common/CIMName.h:41,
from /TESTBUILD/pegasus/src/Pegasus/Client/CIMClient.h:39,
from /TESTBUILD/v2.08.00/TESTsrc/TESTVAIInterface.h:4,
from /TESTBUILD/v2.08.00/TESTsrc/TESTCaVAI.h:24,
from /TESTBUILD/v2.08.00/TESTsrc/TESTBase.h:11,
from /TESTBUILD/v2.08.00/TESTsrc/TESTBase.cpp:1:
/TESTBUILD/pegasus/src/Pegasus/Common/Formatter.h:114: error: `Pegasus::Formatter::Arg::Arg(Pegasus::Sint32)' and `Pegasus::Formatter::Arg::Arg(Pegasus::Boolean)' cannot be overloaded
In file included from /TESTBUILD/pegasus/src/Pegasus/Common/CIMProperty.h:40,
from /TESTBUILD/pegasus/src/Pegasus/Common/CIMObject.h:42,
from /TESTBUILD/pegasus/src/Pegasus/Client/CIMClient.h:41,
from /TESTBUILD/v2.08.00/TESTsrc/TESTVAIInterface.h:4,
from /TESTBUILD/v2.08.00/TESTsrc/TESTCaVAI.h:24,
from /TESTBUILD/v2.08.00/TESTsrc/TESTBase.h:11,
from /TESTBUILD/v2.08.00/TESTsrc/TESTBase.cpp:1:
/TESTBUILD/pegasus/src/Pegasus/Common/CIMValue.h:92: error: `Pegasus::CIMValue::CIMValue(Pegasus::Sint32)' and `Pegasus::CIMValue::CIMValue(Pegasus::Boolean)' cannot be overloaded
/TESTBUILD/pegasus/src/Pegasus/Common/CIMValue.h:147: error: `Pegasus::CIMValue::CIMValue(const Pegasus::Array<Pegasus::Boolean>&)' and `Pegasus::CIMValue::CIMValue(const Pegasus::Array<Pegasus::Boolean>&)' cannot be overloaded
/TESTBUILD/pegasus/src/Pegasus/Common/CIMValue.h:291: error: `void Pegasus::CIMValue::set(Pegasus::Sint32)' and `void Pegasus::CIMValue::set(Pegasus::Boolean)' cannot be overloaded
/TESTBUILD/pegasus/src/Pegasus/Common/CIMValue.h:323: error: `void Pegasus::CIMValue::set(const Pegasus::Array<Pegasus::Boolean>&)' and `void Pegasus::CIMValue::set(const Pegasus::Array<Pegasus::Boolean>&)' cannot be overloaded
/TESTBUILD/pegasus/src/Pegasus/Common/CIMValue.h:377: error: `void Pegasus::CIMValue::get(Pegasus::Sint32&) const' and `void Pegasus::CIMValue::get(Pegasus::Boolean&) const' cannot be overloaded
/TESTBUILD/pegasus/src/Pegasus/Common/CIMValue.h:409: error: `void Pegasus::CIMValue::get(Pegasus::Array<Pegasus::Boolean>&) const' and `void Pegasus::CIMValue::get(Pegasus::Array<Pegasus::Boolean>&) const' cannot be overloaded
*** Error code 1
make: Fatal error: Command failed for target `/TESTBUILD/v2.08.00/TESTsrc/TESTBase.or'
Same ERROR in Sun CC:-
palace /TESTBUILD/p2.08.00/TESTobj-> make -ef Make_SolarisVAICC TESTVAIrun
( /sun-share/SUNWspro/bin/CC -DSOLARIS_PLATFORM -DUNIX -DPEGASUS_PLATFORM_SOLARIS_SPARC_CC -features=bool -DPEGASUS_USE_EXPERIMENTAL_INTERFACES -DTEST_VAI -DEXPAND_TEMPLATES -D__EXTERN_C__ -DPEGASUS_INTERNALONLY -DPEGASUS_OS_SOLARIS -DPEGASUS_USE_EXPERIMENTAL_INTERFACES -DPEGASUS_USE_DEPRECATED_INTERFACES -Dregister= -D_POSIX_PTHREAD_SEMANTICS -DCLUSTER_GEN_APP -DSTAND_ALONE_INTEG -I"/TESTBUILD/v2.08.00/TESTsrc" -I"/Pegasus/pegasus-2.5/src" -I"/TESTBUILD/p2.08.00/TESTCommonLib" -O -c -o /TESTBUILD/p2.08.00/TESTobj/TESTBase.o /TESTBUILD/p2.08.00/TESTsrc/TESTBase.cpp );
"/Pegasus/pegasus-2.5/src/Pegasus/Common/ArrayInter.h", line 47: Error: Multiple declaration for Pegasus::Array<int>.
"/Pegasus/pegasus-2.5/src/Pegasus/Common/Formatter.h", line 103: Error: Multiple declaration for Pegasus::Formatter::Arg::Arg(int).
"/Pegasus/pegasus-2.5/src/Pegasus/Common/CIMValue.h", line 90: Error: Multiple declaration for Pegasus::CIMValue::CIMValue(int).
"/Pegasus/pegasus-2.5/src/Pegasus/Common/CIMValue.h", line 145: Error: Multiple declaration for Pegasus::CIMValue::CIMValue(const Pegasus::Array<int>&).
"/Pegasus/pegasus-2.5/src/Pegasus/Common/CIMValue.h", line 289: Error: Multiple declaration for Pegasus::CIMValue::set(int).
"/Pegasus/pegasus-2.5/src/Pegasus/Common/CIMValue.h", line 321: Error: Multiple declaration for Pegasus::CIMValue::set(const Pegasus::Array<int>&).
"/Pegasus/pegasus-2.5/src/Pegasus/Common/CIMValue.h", line 375: Error: Multiple declaration for Pegasus::CIMValue::get(int&) const.
"/Pegasus/pegasus-2.5/src/Pegasus/Common/CIMValue.h", line 407: Error: Multiple declaration for Pegasus::CIMValue::get(Pegasus::Array<int>&) const.
Thank and Regards,
DileepIn Sun C++, type bool is not equivalent to signed int. I don't think g++ makes it equivalent either.
Please show an example of source code that is causing the problem. -
Error ORA-01426: numeric overflow when Creating table with double data type
Hi,
I am using ODP.NET to create a table with data from SQL to Oracle. The problem is with double data type fields that is equivalent to FLOAT(49) in Oracle. My syntax is:
CREATE TABLE SCOTT.ALLTYPES
F1 NUMBER(10),
F10 DATE,
F2 NUMBER(10),
F3 NUMBER(5),
F4 NUMBER(3),
F5 FLOAT(23),
F6 FLOAT(49),
F7 NUMBER (38,5),
F8 NVARCHAR2(500),
F9 NVARCHAR2(500)
Th error is with field F6 but I am not sure what is the correct type equivalent to double in SQL.
I woul appreciate if anyone can help me with this problem.
SunnyDoes this simple test work for you?
In database:
create table float_test
f1 float(49)
);C# code:
using System;
using System.Data;
using System.Text;
using Oracle.DataAccess.Client;
using Oracle.DataAccess.Types;
namespace FloatTest
/// <summary>
/// Summary description for Class1.
/// </summary>
class Class1
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string[] args)
// connect to local db using o/s authenticated account
OracleConnection con = new OracleConnection("User Id=/");
con.Open();
// will hold the value to insert
StringBuilder sbValue = new StringBuilder();
// create a string of 49 number 9's
for (int i = 0; i < 49; i++)
sbValue.Append("9");
// command object to perform the insert
OracleCommand cmd = con.CreateCommand();
cmd.CommandText = "insert into float_test values (:1)";
// bind variable for the value to be inserted
OracleParameter p_value = new OracleParameter();
p_value.OracleDbType = OracleDbType.Double;
p_value.Value = Convert.ToDouble(sbValue.ToString());
// add parameter to collection
cmd.Parameters.Add(p_value);
// execute the insert operation
cmd.ExecuteNonQuery();
// clean up
p_value.Dispose();
cmd.Dispose();
con.Dispose();
}SQL*Plus after executing above code:
SQL> select * from float_test;
F1
1.0000E+49
1 row selected.- Mark -
Ho to Comapre with Number Data Type
hi
My reqt is to do validation in ValidateEntity Method.
How to compare the with Number Data type:
For ex: Number a = gatAbc();
If(a>10)
throw new oaExcption...
But while comapring i got compiler Error
Error(218,17): method >(oracle.jbo.domain.Number, int) not found in class abc.oracle.apps.per.irc.pqr.schema.server.XxabcEOImpl
So plz tell me how to compare the integer value with Number data type
ThanxCheck with float. It will work definitely.
float number = Float.parseFloat(HrsPerDay); //HrsPerDay is a String and I am converting it to float
if(( number <= 0) || (number >= 21))
throw new OAAttrValException(OAAttrValException.TYP_VIEW_OBJECT,
"xxCopyResourceVO1",
rowi.getKey(),
"NoOfCopies",
rowi.getAttribute("NoOfCopies"),
"PA",
"xx_xx_COPY_POSITIVE_NUM");
}Here in this code i am also checking that the Hours cannot be less then 0 and greater than 20.
Thanks
--Anil -
Problem with packed data type variable?
Hi all,
I have a problem while doing calculations with packed data type variables . As they are saving in the format '0,00'. so unable to do calulations because of ',' .
To convert these fields into str and replacing ',' with '.' is very time consuming because i have many packed data type variables.
Can you please provide any other alternative for over coming this problem? Is there any option while defining these variables?
Thanks,
Vamshi.Hi VAMSHI KRISHNA,
First check out SU01 Tcode (if u don't have permission then u can ask BASIS to do it)
Enter User Name
Execute
Goto Defaults Tab
Check Out Decimal Notation here... set it 1,234,567.89
SAVE it
Log Off once and again login with the same user id and check the result...
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7 -
Creating Web service for PL/SQL Procedure with Complex Data Types
I need to created web service for PL/SQL Procedure with Complex Data types like table of records as parameters, how do we map the pl/sql table type parameters with web service, how to go about these?
Hello,
When you are creating a service from a Stored Procedure, the OracleAS WS tools will create necessary Java and PL wrapper code to handle the complex types (table of record) properly and make them compatible with XML format for SOAP messages.
So what you should do is to use JDeveloper or WSA command line, to create a service from your store procedure and you will see that most of the work will be done for you.
You can find more information in the:
- Developing Web Services that Expose Database Resources
chapter of the Web Service Developer's guide.
Regards
Tugdual Grall -
Working with complex data types in web services ...
Hi All,
I have created a webservice and created an interface for that in ADF. Now as my web service returns a complex data type, i followed the steps given in this article "http://www.oracle.com/technology/products/jdev/howtos/1013/wsadf/adfcomplexwstypes.html" and it works fine, my results also get displayed. But only issue is i get a warning "JBO-25009: Cannot create an object of type:java.util.calendar with value:2008-09-23T23:51:30.000+05:30" and if i replace all the java.util.Date with oracle.jbo.domain.Date then i get a warning "JBO-25009: Cannot create an object of type:oracle.jbo.domain.Date with value:2008-09-23T23:51:30.000+05:30". Now i am unable to understand this although i believe it is a data type mapping issue, but not sure how to rectify it.
Anybody knows the wayout?
Regards
LokeshAndre,
Thanks for youe response. I also tried makeing data type as string in place of date in data control.xml and it worked fine. So it confirms that i am facing with exactly similar issue as yours.
I tried solution 2 mentioned in Frank's mail but its not helping[in fact i am already using web proxy as i am delaing with complex data types]. I created a web proxy and in java bean i placed break points to check the control flow[in order to check the root cause] but control never reaches the java bean!! I am not sure about the cause for it...control should pass through java bean isn't it??
I am quite new to SOA...so can somebody just elaborate on how to rectify this using web proxy. I have been using this rl "http://www.oracle.com/technology/products/jdev/howtos/1013/wsadf/adfcomplexwstypes.html" to work with web proxies" to work with proxies.
Regards
Lokesh -
DBMS_LOB.SUBSTR with NCLOB data type
Hi ,
When I am trying to extract part of the string from Comments column(NCLOB datatype) am facing issue.
ORA-06502:PL/SQL Numeric or value error :Character string buffer too small
select dbms_lob.substr(a.COMMENTS, 4000, 1),
from VW_DETAILS a
where a.id = 6210872
DBMS_LOB.SUBSTR with NCLOB data type
Table structure :
Column_name Data_type
Comments NCLOB
ID NUMBER
Regards,
VenkatDBMS_LOB.SUBSTR parameter amount for CLOB/NCLOB indicates number of characters to substring, not bytes. And 4000 multi-byte characters (since you are using NCLOB) is greater than 4000 bytes which is absolute limit for VARCHAR2 in SQL.
SY. -
Define variable with void data type.
Hi,
I would like to define a variable and a structure with void data type.
How could I define it?
regards.HI SijinK,
Thanks for the reply.
I want to call some "dll" in the TestStand. In this "dll", function requires some variable of void data type as input.
e.g. dll - Test.dll
Function - short int Func_a (void var_a, long var_b, void *var_c, custom_struc *var_d)
I want to call this function in the TestStand. Using "C/C++ Dll" adapter module and "Action" step type, I will call this dll and its function.
For passing values to this function, I need to define some variable with respective data type.
Please let me know how could I do this.
Regards. -
Replication - Error with real data type
Hi Everybody,
I have a replication problem on a certain SQL Server 2012 build 2100. First of all:
- Tables are the same on Publisher and Subscriber (double-checked)
The problem is 8152 - String or binary would be truncated. Since I know this error, I looked for the command (xact_seqno) and it shows:
{CALL [sp_MSins_tbl2Replicate]
({7B914E3E-25ED-E411-BC82-005056A54F21}
,{BA54EA41-ECE1-4F4B-7A63-08D05A57DCC9}
,{51BEC1B8-F6D2-E411-BC82-005056A54F21}
,1
,NULL
,N'2015-04-27'
,{87766F58-A0C8-41E6-E7D4-08CFE45FE017}
,2
,2.81122997072606E-313
,N'2015-04-27 23:34:59.7600274'
,{87766F58-A0C8-41E6-E7D4-08CFE45FE017}
,NULL
,{0AB7C33E-0B3E-E211-A06F-005056A54F21},NULL,NULL,0,NULL,NULL)}
My problem is the value "2.81122997072606E-313" since this field is a real field. I dont understand that. The Value is way to small and a SELECT in the Publisher-DB shows a "1". Does anybody has an idea?
Thanks
DaveHi,
first of all thanks for your help. Publisher-Table-Schema:
[EV_GUID] [uniqueidentifier] ROWGUIDCOL NOT NULL,
[EV_PV_Profilvariable] [uniqueidentifier] NOT NULL,
[EV_Empfaenger] [uniqueidentifier] NOT NULL,
[EV_EmpfaengerTyp] [tinyint] NOT NULL,
[EV_Gruppe] [uniqueidentifier] NULL,
[EV_ErbrachtDatum] [date] NOT NULL,
[EV_AN_Erbringer] [uniqueidentifier] NOT NULL,
[EV_Zeitwert] [int] NOT NULL,
[EV_Anteil] [real] NOT NULL,
[EV_ErfasstZeitpunkt] [datetime2](7) NOT NULL,
[EV_AN_Erfasser] [uniqueidentifier] NULL,
[EV_SC_Statistikcode] [uniqueidentifier] NULL,
[EV_OE_Auftraggeber] [uniqueidentifier] NOT NULL,
[EV_KST_Kostenstelle] [uniqueidentifier] NULL,
[EV_Bemerkung] [varchar](max) SPARSE NULL,
[EV_Flags] [int] NOT NULL,
[EV_MN_Massnahme] [smallint] NULL,
[EV_Fremdkey] [varchar](100) NULL
Subscriber-Table-Schema:
just the same....
SELECT EV_Anteil FROM tbl2Replicate WHERE EV_GUID = '7B914E3E-25ED-E411-BC82-005056A54F21'
returns "1". The reported value wont fit in a real-field or am I missing something? I tested this and it would fill in a "0" for such a tiny number. Therefore it cant be in the publisher database. Also tested with SELECT MIN(EV_Anteil)
and returned "0.02040816" with another PK of course.
Other Options in Transactional Replication:
Replicate schema changes - True
Copy objects all to false, except clustered index, unique key constraints, Collation and INSERT, UPDATE, DELETE stored procedures
Convert data types = False
Thanks
Dave
Maybe you are looking for
-
How can I copy the kindle format books on my iPad to my Linux PC.?
My iPad battery is dying/dead. How can I copy the kindle format books on my iPad to my Linux PC? Because i understand they'll be lost when i get Apple to 'fix' my battery.
-
My phone has not received the io7 what can i do??
help please
-
Question on navigational attribute ?
Hi all , we have turn-off some navigational attributes from 0MATERIAL , my questin is is it necessary to reload the full data or not ? or is it enough to run the attribute change run ? Thanks
-
Showing data on a Desktop folder that's an Alais
I can get a number of files in a folders I create and situated on the desktop, but if it is an alias I get nothing. Can I change this somehow?
-
Replacing Lion with Snow Leopard
Four months ago I downloaded the OS X Lion through the App Store. I have nothing but problems with Safari ever since. I have to reconnect to my wi-fi network every time I start the computer. For some reason it won't remember my preferences. Here is m