Help required in SQL
I fired the following query successfully: -
select year, to_char(to_date(MONTH, 'Month'),'MM')
from MHS
but when I try to take a count of the records using the same query I get an error: -
select year, to_char(to_date(MONTH, 'Month'),'MM'), count(0)
from MHS
group by year, to_char(to_date(MONTH, 'Month'),'MM')
Please help. I am using Oracle 9.2
select year, to_char(to_date(MONTH, 'Month'),'MM')
from MHS
ORA-01843: not a valid month
Please note that it is working fine while I am not taking a count of the records. It is
giving the error when I group the records.You are using Toad or some other application that does not fetch the all the rows. If you go to the end of the result set your first query will give the same error also.
This is because you are not storing dates as dates, but separate text columns, and surprisingly you now have bad data in there.
Similar Messages
-
I have a table and cols as below:
START DATE TOTAL DAYS
10/11/2011 15:00 1
10/15/2011 5:00 1
12/22/2011 10:00 1
12/22/2011 11:00 2
12/30/2011 10:00 1
1/1/2012 1:00 1
1/1/2012 10:00 1
1/1/2012 16:00 2
1/2/2012 14:00 1
1/3/2012 15:00 1
1/4/2012 15:00 2
1/4/2012 18:00 1
I need to query where the values from the above table
should return values like below:
I tried many ways but could not find suitable solution.
Kindly help me in this regard.
START DATE TOTAL DAYS
10/11/2011 15:00 1
10/15/2011 5:00 1
12/22/2011 11:00 2
12/30/2011 10:00 1
1/1/2012 16:00 2
1/2/2012 14:00 1
1/3/2012 15:00 1
1/4/2012 15:00 2
ultimate goal is to sum up the all numbers TOTAL DAYS column in the second table... All task should be handled in single query. I cannot use java coding to handle this as my requirement needs to be included in the query which exists already.
Edited by: 915175 on Feb 16, 2012 11:02 PMselect trunc(start_date), max(start_date), max(total_days) from tablename
group by trunc(start_date);Please check below Test done at my local site with you data:
SQL>
SQL> with tablename as
2 (
3 select to_date('10/11/2011 15:00' , 'mm/dd/yyyy hh24:mi') start_date, 1 total_days from dual union all
4 select to_date('10/15/2011 5:00' , 'mm/dd/yyyy hh24:mi') start_date, 1 total_days from dual union all
5 select to_date('12/22/2011 10:00' , 'mm/dd/yyyy hh24:mi') start_date, 1 total_days from dual union all
6 select to_date('12/22/2011 11:00' , 'mm/dd/yyyy hh24:mi') start_date, 2 total_days from dual union all
7 select to_date('12/30/2011 10:00' , 'mm/dd/yyyy hh24:mi') start_date, 1 total_days from dual union all
8 select to_date('1/1/2012 1:00' , 'mm/dd/yyyy hh24:mi') start_date, 1 total_days from dual union all
9 select to_date('1/1/2012 10:00' , 'mm/dd/yyyy hh24:mi') start_date, 1 total_days from dual union all
10 select to_date('1/1/2012 16:00' , 'mm/dd/yyyy hh24:mi') start_date, 2 total_days from dual union all
11 select to_date('1/2/2012 14:00' , 'mm/dd/yyyy hh24:mi') start_date, 1 total_days from dual union all
12 select to_date('1/3/2012 15:00' , 'mm/dd/yyyy hh24:mi') start_date, 1 total_days from dual union all
13 select to_date('1/4/2012 15:00' , 'mm/dd/yyyy hh24:mi') start_date, 2 total_days from dual union all
14 select to_date('1/4/2012 18:00' , 'mm/dd/yyyy hh24:mi') start_date, 1 total_days from dual
15 )
16 select TO_CHAR(max(start_date),'MM/DD/YYYY HH24:MI') start_date , max(total_days) total_days from tablename
17 group by trunc(start_date);
START_DATE TOTAL_DAYS
10/15/2011 05:00 1
01/03/2012 15:00 1
12/30/2011 10:00 1
01/01/2012 16:00 2
10/11/2011 15:00 1
12/22/2011 11:00 2
01/04/2012 18:00 2
01/02/2012 14:00 1
8 rows selected.
SQL>Regards,
Dipali..
Update: Added test done at my database..
Edited by: Dipali Vithalani on Feb 16, 2012 11:18 PM -
Hi all,
In the middle of the last week for my final year project and having to convert to an Oracle database due to compatibility problems with university Tomcat Server and MS Access. I'm having trouble connecting to the Oracle database and would appreciate some help please.
Running on Windows 98 in the lab here, and the Oracle 9i, release 9.2.0.2.0, J2SDK1.4.0, Classes12.zip installed OK.
Code for connection looks like this inside the constructor of my class:
Class.forName("oracle.jdbc.driver.OracleDriver");
cardSaleConnexion = DriverManager.getConnection("jdbc:oracle:[email protected]:1521:sid","user_name","pwdt");
System.out.println("Connection Successful ");
And I'm getting the following error when calling the constructor in a driver program:
java.sql.SQLException: Invalid Oracle URL specified
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:188)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at CardSale.<init>(CardSale.java:30)
at Driver.main(Driver.java:11)
Exception in thread "main"
Please reply on a very urgent basis.
Kind regards,
PeterTry ojdbc14.jar as the JDBC driver instead of classes12.zip.
Refer:
http://otn.oracle.com/software/tech/java/sqlj_jdbc/htdocs/jdbc9201.html
http://docs.sun.com/source/817-5603-10/index.html
Database Driver
This section describes the known database driver issues and associated solutions.
ID Summary
4700531 On Solaris, an ORACLE JDBC driver error occurs.
This new Java Database Connectivity (JDBC) driver is for Oracle (R) working with JDK1.4. The problem is caused by a combination of the Oracle 9.1 database and ojdbc14.jar. Applying the patch will fix the problem on Solaris 32-bit machine, running an Oracle 9.0.1.3 database.
Solution
Obtain and apply the patch to your server from the Oracle Web site for Bug 2199718. Perform the following steps:
1.��Go to the Oracle web site.
2.��Click the 'patches' button.
3.��Type 2199718 in the patch number field.
4.��Click the 32-bit Solaris OS patch.Go to Metalink.oracle.com.
5.��Click patches.
6.��Under patch number, enter 2199718.
7.��Click the 32 bit Solaris OS patch.
4707531 On Solaris, accessing an Oracle 9.1 database with an Oracle 9.2 Client may cause data corruption.
If you use an Oracle (R) 9.2 client to access an Oracle 9.1 database, data corruption might occur when a number column follows a timestamp column.
The problem might be caused by using the ojdbc14.jar file with an Oracle 9.1 database. Applying the patch might assist in addressing the situation on Solaris 32-bit machines, running an Oracle 9.1 database. This JDBC driver is for Oracle working with JDK1.4.
Solution
Obtain the patch that Oracle might make available from the Oracle web site for Bug 2199718 and apply it to your server.
Regards,
Pankaj D. -
Help Required With SQL Subquery Across DB Link - Takes Long Time
Hi,
Apologies if this is not the correct forum but I am implementing this through HTMLDB.
I am trying to run a SQL query over a DB link with a sub query on tables in my HTMLDB workspace.
The SQL query over the database link takes 1.23 seconds to run on it's own:
SELECT D.EMAIL_ADDRESS,
D.COL2,
D.COL3,
D.COL4,
D.COL5,
D.COL6,
T.COL1
FROM SCHEMA.TABLE1@DATABASELINK D,
SCHEMA.TABLE2@DATABASELINK T
WHERE D.TABLE_JOIN = T.TABLE_JOIN
AND T.COL1 = '1111111'
AND UPPER(D.COL2) IN ('XXXXXX','YYYYYY')
The SQL query based on HTMLDB workspace tables takes 0.01 seconds to run on it's own:
SELECT UPPER(A.EMAIL_ADDRESS)
FROM HTMLDBTABLE1 M, HTMLDBTABLE2 A
WHERE M.TABLE_JOIN = A.TABLE_JOIN
AND M.ID = 222
However when I try and run these together the results take 280 seconds to complete:
SELECT D.EMAIL_ADDRESS,
D.COL2,
D.COL3,
D.COL4,
D.COL5,
D.COL6,
T.COL1
FROM SCHEMA.TABLE1@DATABASELINK D,
SCHEMA.TABLE2@DATABASELINK T
WHERE D.TABLE_JOIN = T.TABLE_JOIN
AND T.COL1 = '1111111'
AND UPPER(D.COL2) IN ('XXXXXX','YYYYYY')
AND NOT EXISTS
(SELECT UPPER(A.EMAIL_ADDRESS)
FROM HTMLDBTABLE1 M, HTMLDBTABLE2 A
WHERE M.TABLE_JOIN = A.TABLE_JOIN
AND UPPER(A.EMAIL_ADDRESS) = UPPER(D.EMAIL_ADDRESS)
AND M.ID = 222)
Does anyone have any idea why this query is taking so long?
Please let me know if you require additional information.
Many thanks,
Richard.I've updated my profile to show my email address, so go ahead and email me the strace output (compressed please). Maximum attachment size for emails to Oracle is 10MB (encoded), so split the strace output in 5MB chunks if necessary.
poll() is not normally used by the Oracle network layer for client-server connections. So this may be related to an OS network service, such as DNS or NIS. The strace should make this clear (to me anyway).
Edited by: herb on Aug 14, 2009 10:25 AM -
Is it possible to load a single target file from multiple flat file sequentially using SQL Loader?
Example -
Table structure -
<Emp_id><Emp_Name><Dept_id><Total_sales><Commission>
<Emp_id><Emp_Name><Dept_id> column will be load from Emp_master flat file
<Total_sales> column will be load from sales flat file - there will be two fields emp_id and total_sales
<Commission> column will be load from commission flat file - there will be two fields emp_id and commission.
I have tried this to merge these three flat file and create a single flat file, but in my real requirement i found it is quite tedious.
Is there any other approach?
Thanks in AdvanceYou can load into 3 temporary tables and insert into main table using a query
OR
You can use shell script (I hope UNIX environment) to merge the files
There is no direct way to load the data for same row from multiple files using SQL * Loader -
Hello Friends ,
I am trying query a record from two tables Emp and Dept , i would like to know the where employee works (Location is stored in
dept table ) and would like to know employee belongs to which manager( Manager Id stored in Emp table ) .
The below query is not giving me the desired output . Please suggest me something .
SELECT
E1.EMPNO,
E1.ENAME,
E1.JOB,
E1.SAL,
E1.DEPTNO,
TO_CHAR(E1.HIREDATE,'MM-DD-YYYY') HIRE_DATE,
D.LOC,
E1.ENAME Manager
FROM EMP E1,EMP E2,DEPT D
WHERE E1.DEPTNO=D.DEPTNO
AND E2.MGR= E1.EMPNO;
KeerthiNext time ask similar questions in sql forum
PL/SQL
Answer to your question is
(based on the assumption MGR_NO column exists and is the manager empno)
SELECT E1.EMPNO,
E1.ENAME,
E1.JOB,
E1.SAL,
E1.DEPTNO,
TO_CHAR (E1.HIREDATE, 'MM-DD-YYYY') HIRE_DATE,
D.LOC,
E2.ENAME Manager
FROM EMP E1, EMP E2, DEPT D
WHERE E1.DEPTNO = D.DEPTNO AND E2.EMPNO = E1.MGR_NO; -
Hi
SQL : 1
Following Hierarchical SQL giving output with 2 seconds with 1169 records.
SELECT LPAD ('.', 2 * (LEVEL - 1), '.') || LEVEL bom_level,
msia.segment1
|| '.'
|| msia.segment2
|| '.'
|| msia.segment3
|| '.'
|| msia.segment4 parent_item_code,
msia.description parent_description, msia.primary_unit_of_measure,
LPAD ('.', 2 * (LEVEL - 1), '.')
|| msic.segment1
|| '.'
|| msic.segment2
|| '.'
|| msic.segment3
|| '.'
|| msic.segment4 component_item_code,
msic.description component_description, bic.operation_seq_num,
bic.component_quantity
FROM bom_bill_of_materials bom,
bom_inventory_components bic,
mtl_system_items msia,
mtl_system_items msic
WHERE bic.bill_sequence_id = bom.bill_sequence_id
AND msia.inventory_item_id = bom.assembly_item_id
AND msia.organization_id = bom.organization_id
AND msic.inventory_item_id = bic.component_item_id
AND msic.organization_id = bom.organization_id
START WITH bom.assembly_item_id = 1407543
AND bom.organization_id = 56
CONNECT BY bom.assembly_item_id = PRIOR bic.component_item_id
AND bom.organization_id = 56;
SQL : 2
Following SQL giving output = 1407543
SELECT e.equipment_item_id FROM websupp.epa_transaction_header e WHERE equipment_id = 34
Now, when I am replacing START WITH clause of SQL:1 with SQL:2 means to replace 1407543 with SQL:2, it is taking so long time .
Can you guide me in tuning SQL :1
Thanks in advance
Sanjaytry something
with t as
SELECT e.equipment_item_id val FROM websupp.epa_transaction_header e WHERE equipment_id = 34
SELECT LPAD ('.', 2 * (LEVEL - 1), '.') || LEVEL bom_level,
msia.segment1
|| '.'
|| msia.segment2
|| '.'
|| msia.segment3
|| '.'
|| msia.segment4 parent_item_code,
msia.description parent_description, msia.primary_unit_of_measure,
LPAD ('.', 2 * (LEVEL - 1), '.')
|| msic.segment1
|| '.'
|| msic.segment2
|| '.'
|| msic.segment3
|| '.'
|| msic.segment4 component_item_code,
msic.description component_description, bic.operation_seq_num,
bic.component_quantity
FROM bom_bill_of_materials bom,
bom_inventory_components bic,
mtl_system_items msia,
mtl_system_items msic,
t t
WHERE bic.bill_sequence_id = bom.bill_sequence_id
AND msia.inventory_item_id = bom.assembly_item_id
AND msia.organization_id = bom.organization_id
AND msic.inventory_item_id = bic.component_item_id
AND msic.organization_id = bom.organization_id
START WITH bom.assembly_item_id = t.val --1407543
AND bom.organization_id = 56
CONNECT BY bom.assembly_item_id = PRIOR bic.component_item_id
AND bom.organization_id = 56; -
Network requirements for SQL Server Replication
Hi,
Can any one tell me what is network requirements for SQL Server replication.
I have successfully configured the replication on LAN with active directory but I am unable to configure it on WAN.
Can anyone tell me how WAN can be configured for sql server replication.
Any help in this regard will be highly appreciated.
Regards,
Muhammad ImranHi Muhammad,
In addition to Prashanth’s post, please also check the following things to optimize SQL Server replication with a WAN link.
• Initialize the Subscriber from a backup.
Publishing the execution of stored procedures as opposed to replicating each operation performed by the stored procedure.
Leveraging Subscription Streams.
For more information, please review the following blog:
http://sqlblog.com/blogs/argenis_fernandez/archive/2011/05/31/transactional-replication-and-wan-links.aspx
Thanks,
Lydia Zhang
Lydia Zhang
TechNet Community Support -
Requirements of SQL Server 2005 Stored Procedures to Develop Crystal Report
Hi All,
I want to learn how to create crystal report off of SQL Server 2005 Stored Procedure. So anybody please let me know from where I can download the documentation on "Requirements of SQL Server 2005 Stored Procedures for crystal report.
I am using Crystal Report XI. Any help is greatly appreciated.
Thank You.Hello,
When CR uses Stored Porcedures we only look at the last SELECT statement. We can't use TMP tables because they are owned by the system and not the user. Even though you created them under your logon credentials you are not the actual owner. Or so I have found so far.... CR does not have permissions to get to those temp tables. If you can find out dynamically what the table names are called then it may work. I don't have a sample but it has the usual table info with a random GUID or temp name, really long, and changes every time.
What should work is create a real table, not one of MS's tempTables and then push all your data to that table and then the last select statement returns all of your data from that temp table:
SELECT * FROM MYTEMPTABLE.DBO.TABLE.
Then CR should ahve no issues.
It may be that the JDBC driver has problems. Test it using OLE DB or ODBC.
Thanks again
Don -
XSLT mapping Help Required.
XSLT mapping Help Required.
Hi Experts,
I am New to XSLT Mapping. I am practising the below Example:
InputXML File:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="Persons111.xsl"?>
<ns0:MT_XSLT_Source xmlns:ns0="http://XYZ.com/gen">
<Person>
<FirstName>Anshul</FirstName>
<LastName>Chowdhary</LastName>
<Gender>Male</Gender>
<Address>
<Street>2nd Main</Street>
<Houseno>83/b</Houseno>
<City>Mysore</City>
</Address> </Person>
</ns0:MT_XSLT_Source>
XSL StyleSheet File:
<?xml version='1.0' encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://XYZ.com/Gen"
Xmlns:ns1=”http://XYZ.com/Test”>
<xsl:template match="/">
<ns1:MT_XSLT_Target>
<Title> <xsl:value-of select="ns0:MT_XSLT_Source/Person/Gender"/> </Title>
<Name> <xsl:value-of select="concat(concat(ns0:MT_XSLT_Source/Person/FirstName,' '), ns0:MT_XSLT_Source/Person/LastName)"/>
</Name>
<Street> <xsl:value-of select="concat(concat(ns0:Mt_XSLT_Source/Person/Address/Houseno,' '),
ns0:Mt_XSLT_Source/Person/Address/Street)"/> </Street>
<City> <xsl:value-of select="ns0:Mt_XSLT_Source/Person/Address/City"/> </City>
</ns1:MT_XSLT_Target>
</xsl:template>
</xsl:stylesheet>
The Desired Output shuold be:
<?xml version="1.0" encoding="UTF-8"?>
<ns1:MT_XSLT_Target xmlns:ns1="http://XYZ.com/Test">
<Title>Male</Title>
<Name>Anshul Chowdhary</Name>
<Street>83/b 2nd Main</Street>
<City>Mysore</City>
</ns1:MT_XSLT_Target>
I have refered the xsl in xml and i am getting the below Oupt in a Single line like this:
Anshul Chowdhary Male 2nd Main 83/b Mysore
I am Unable to display in Target XML Fomrat as shown above. Please check and do the needful.
Regards,
GIRIDHARHi,
I have used below for testing.
Input xml:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="Persons111.xsl"?>
<ns0:MT_XSLT_Source xmlns:ns0="http://XYZ.com/gen">
<Person>
<FirstName>Anshul</FirstName>
<LastName>Chowdhary</LastName>
<Gender>Male</Gender>
<Address>
<Street>2nd Main</Street>
<Houseno>83/b</Houseno>
<City>Mysore</City>
</Address> </Person>
</ns0:MT_XSLT_Source>
xsl code:
<?xml version='1.0' encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://XYZ.com/gen"
xmlns:ns1="http://XYZ.com/Test">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<ns1:MT_XSLT_Target>
<Title> <xsl:value-of select="ns0:MT_XSLT_Source/Person/Gender"/> </Title>
<Name> <xsl:value-of select="concat(concat(ns0:MT_XSLT_Source/Person/FirstName,' '), ns0:MT_XSLT_Source/Person/LastName)"/>
</Name>
<Street> <xsl:value-of select="concat(concat(/ns0:MT_XSLT_Source/Person/Address/Houseno,' '),
/ns0:MT_XSLT_Source/Person/Address/Street)"/> </Street>
<City> <xsl:value-of select="/ns0:MT_XSLT_Source/Person/Address/City"/> </City>
</ns1:MT_XSLT_Target>
</xsl:template>
</xsl:stylesheet>
For testing in PI ,change the extension from .txt to .xsl and zip it and upload into PI as an imported archive .
Regards
Venkat -
Urgent help required: Query regarding LC Variables
Hi All
Sometime earlier I was working on a performance issue raised by a customer. It was shell script that was taking almost 8-9 hrs to complete. During my research I came across a fact that there were some variables which were not set, the LC variables were impacting the sort funnel operations because of which the script was taking a long time to execute.
I asked them to export the following commands, after which the program went on smoothly and finished in a couple of mins:
export LC_COLLATE=en_US.ISO8859-1
export LC_MESSAGES=C
export LC_MONETARY=en_US.ISO8859-1
export LC_MONETARY=en_US.ISO8859-1
export HZ=100
export LC_CTYPE=en_US.ISO8859-1
export LANG=en_US.UTF-8
Later I did recover that setting the LC_COLLATE to C, is not helping and the program was again taking a lot of time. Few questions that I want to ask are:
1. Can someone please tell me, what each of these variable mean and how these values make a difference.
2. When I exported LC_COLLATE=en_US.ISO8859-1, it worked fine, but when i tried with the defalut value LC_COLLATE=C, then why the program didnt work.
As this issue is still going on, hence I would request All to provide their valuable inputs and let me know as much as possible.
Appreciate your help in this regard.
Thanks
Amit
Hi All
A new development in this regard. The customer has send us a screen shot in which they were trying to export the locale variable using the commands which I have pasted above. I can see in the screen shot that while exporting LC_COLLATE and LC_TYPE, they get a message that ""ksh: export: couldn't set locale correctly"".
Request everyone to please give their inputs as it's a bit urgent.
Thanks for all the help in advance.
Thanks
Amit
Some help required please...
Edited by: amitsinhaengg on Jul 22, 2009 2:03 AM
Edited by: amitsinhaengg on Jul 22, 2009 2:06 AMLC_CTYPE
Controls the behavior of character handling functions.
LC_TIME
Specifies date and time formats, including month names, days of the week, and common full and abbreviated representations.
LC_MONETARY
Specifies monetary formats, including the currency symbol for the locale, thousands separator, sign position, the number of fractional digits, and so forth.
LC_NUMERIC
Specifies the decimal delimiter (or radix character), the thousands separator, and the grouping.
LC_COLLATE
Specifies a collation order and regular expression definition for the locale.
LC_MESSAGES
Specifies the language in which the localized messages are written, and affirmative and negative responses of the locale (yes and no strings and expressions).
You can use command
# locale -k LC_CTYPE
to see more detail about each type. -
Help required - Sales order item is partially delivered but the item grayed
I have a sales order 123 having say item10 with qty 1, item20 with qty 10 , item 30 qty 12
Item 1 confirmed qty 1 and delivered qty is 1
Item 2 confirmed qty 10 and delivered qty 10
Item 3 confirmed qty 1 and delivered qty is 1
Now the item3 still has open requirements of 11 to be delivered. But the item is GRAYED OUT already.
even if I do ATP the qty is not confirming for the remaining 11 pieces.
Why is that? How to make that item out from GRAY.
How to confirm the remaining 11 qty for that item.
Help required as early as possible.
Appreciate ur help guys
Radhahi Radha, how are you ?
---the partial deliveries in master data must have not been mentioned.
---the deliveries should be upto target quantity.
---check order type, item category and schedule line category.
---check unrestricted stock availability.
thank you
regards
Khera. -
Search Help with in a serach help required in SRM 4.0
Hi,
Requirement: Search help required for Product Category field in the Search help for Product(BBPH_PRODUCT) in SRM portal.
This search help is used in Create shopping Cart transaction. The hyper link on Internal Goods/Services leads to the search help BBPH_PRODUCT.
My analysis:
The field Product Category (CATEGORY_ID) has search help(COM_CAT_HIER) attached to its data element. When I single test the search help BBPH_PRODUCT in SAP GUI,I can see the search help for field product category in the selection dialogue box. However the same does not appear on the corresponding screen in HTML.
Please let me know whether I need to do some thing to make the search help appear on the HTML screen?
With Regards,
Prakash KamathHi Prakash,
I have the same problem but with another field. Unloading point. Could you please tell me how did you solve this problem with displaying F4 help on html/ SRM portal?
Thank you very much.
Best regards,
Danijela ZIvanovic -
Hi there,
I need some help regarding the SQL QPAC which is a built in QPAC in Adobe Livecycle Workflow. The SQL QPAC takes MYSQL as the default database. Suppose if we need to connect to the SQL Server or any other database, what is the procedure to do that.
SurajHi Suraj
You need to deploy a second copy of the SQL QPAC, and point it at a different datasource. The datasource is defined as a deployment parameter (it will prompt you when you deploy the new version of the qpac).
You will also need to define the datasource in your application server. This is done in different ways for different application servers - for details, please see: standards_based_qpacs.pdf (part of the Workflow SDK), page 12, "Creating a JNDI datasource".
Alternately, you can try out our SQLPlus QPAC. This allows you to directly specify connection url, driver, username and password. The SQLPlus QPAC does a lot of other things that the regular SQL QPAC doesn't do, such as handling multiple rows, testing your query, and outputting the data in a variety of ways.
Details at: http://www.avoka.com/avoka/qpac_library.shtml
Howard -
All I want to know is if Distributed Transaction Coordinator services of the application role are required by SQL Server 2012 for clustering and support of SharePoint 2013.
I have been planning and deploying my companies first Windows Server 2012/SQL Server 2012 Always On cluster and Always On Availability Groups Multi-Subnet cluster and instances for SharePoint 2013, and I will be brutally honest, the documentation on either
the MSDN and TechNet leave alot to be desired. Continually finding links in the documentation will take me from a Windows 2012 reference to a page talking about Windows Server 2008 or R2, The differences of which there are so many when it comes to configurations,
settings, roles, services when working with SQL Server 2012. I have been confused, frustrated, screaming mad, with all the misdirection in this documentation. The documentation takes me windows 2008 R2 which is different than 2012!
Tired and trying to pick myself up off the floor!
Greg
GmanIn general, DTC is not required for SQL 2012. But, since you are asking specifically about SharePoint, it would be better to ask in a SharePoint forum. They would be more likely to know those situations where FTC might be needed by SharePoint.
.:|:.:|:. tim
Maybe you are looking for
-
Remote app on iPhone to view/control Logic screen when in iso booth?
When in my recording booth, I can't see my Logic Pro screen that is in my control room. I need to be able to see and adjust my mic level to get it right, press record, stop, etc... i.e. just very basic tracking functions. I could bring my MacBook Pro
-
Disable field XWAOK in MB21 T.code
hello, anybody please help me. i want make XWAOK (Goods Movement for Reservation Allowed) field in display mode during reservation creation by using t.code: MB21. but in MB22 it should be in change mode. how can i make this. Thanks & Regards Bhakta
-
Check DateTime in EditText ?
How can I do ? I want check the type DateTime for EditText when user enter ? If user enter dont the type DateTime then display messagebox ("error") thanks !
-
CS 6/Products do not appear in MyAdobe Page
Please help, project due tomorrow for a client. Recently set a new computer because the old one crashed from malware. Because of the malware, wasn't able to do a time machine backup (running a 2012 Macbook Pro on Yosemite). I had to drag and drop fil
-
Can I share USB disc with my iPhone with airport extreme
Can I share USB disc with my iPhone with airport extreme