Tuxedo buildserver : use SQL in cobol applics

Hi,
I'm trying to use SQL through COBOL applications in a Tuxedo (8.0) environment.
I've added the ODBC libpath to the buildserver command. The execution/compilation of the buildserver seems to be ok, but upon execution of the cobol program the SQL CONNECT fails with SQL-error err 10000.
I have no idea how to make SQL work ? Can anyone help ?
I read about RM (resources manager), is this required to make it work ?
thanks !
Hugo
Our platform is HP/UX and we use SQL/COBOL outside tuxedo without problems.
This is the make file :
# Fc 970618: incremental compilation for Cobol added
TUXINC=$(TUXDIR)/include
BTNINC=$(BTNDIR)/incl
INCLUDES=-I $(TUXINC) -I $(BTNINC) -I /jates/progs/srcs
ODBCLIBS="-L /usr/local/unixODBC/lib -lodbc"
COBOPT="-t"
COBCPY="/jates/tuxedo80/cobinclude:/jates/btn/btndevl/incl:/jates/cobol/cobol4000sp2/cpylib"
#avoid unwanted C-compiler warnings
NLSPATH=$NLSPATH:/opt/ansic/lib/nls/msg/C/%N.cat
# btnrouter
btnrouter: /jates/progs/tps/btnrouter.cbl /jates/progs/tps/btn400.cbl /jates/progs/tps/mod461.cbl /jates/progs/tps/mod470.cbl
     buildserver -C -v -o $@ \
-f /jates/progs/tps/btnrouter.cbl \
-f /jates/progs/tps/btn400.cbl \
-f /jates/progs/tps/mod461.cbl \
-f /jates/progs/tps/mod470.cbl \
-f /jates/progs/tps/res400.cbl \
-f ${ODBCLIBS} \
-s SJETAIR
     -tmshutdown -s $@
     cp -p $@ ..
     -tmboot -s $@
# general instructions
.SUFFIXES: .cbl .c .o
.c.o: $(BTNINC)/fml_flds.h
     cc -c $(INCLUDES) $<
.cbl.o: $(BTNINC)/fml_flds.h
     cob -xc $<
#******************************************************

The normal way to use Tuxedo with an XA-compliant resource manager is to
1. Have the Tuxedo administrator add a line for the resource manager to the
$TUXDIR/udataobj/RM file including the resource manager name, XA switch
name, and libraries required for linking.
2. Build servers using the resource manager with the "-r rmname" line.
This will include the resource manager lines specified in
$TUXDIR/udataobj/RM in the buildserver line, and the application will not
need to manually provide the libraries to buildserver.
3. If using transactions, have the Tuxedo administrator build a TMS process
for the RM using the buildtms command, or do this yourself. If not using
transactions, this step can be omitted.
When a server is built with the "-r rmname" option, Tuxedo will
automatically call TPOPEN to connect to the resource manager within
TPSVRINIT.
(The only exception to this is if the application programmer replaces the
default verion of TPSVRINIT with their own version and does not include a
call to TPOPEN, so it is good to verify that this is not the case.) Since
Tuxedo opens the resource manager when the server is started, there is no
need to include SQL CONNECT statements within the application logic in such
a server.
If your resource manager is not XA compliant then you will need to manage
connection to the database yourself, but most databases are XA compliant
nowadays.
<Paul Debleecker> wrote in message news:[email protected]...
Hi,
I'm trying to use SQL through COBOL applications in a Tuxedo (8.0)
environment.
I've added the ODBC libpath to the buildserver command. The
execution/compilation of the buildserver seems to be ok, but upon
execution of the cobol program the SQL CONNECT fails with SQL-error err
10000.
I have no idea how to make SQL work ? Can anyone help ?
I read about RM (resources manager), is this required to make it work ?
thanks !
Hugo
Our platform is HP/UX and we use SQL/COBOL outside tuxedo without
problems.
This is the make file :
# Fc 970618: incremental compilation for Cobol added
TUXINC=$(TUXDIR)/include
BTNINC=$(BTNDIR)/incl
INCLUDES=-I $(TUXINC) -I $(BTNINC) -I /jates/progs/srcs
ODBCLIBS="-L /usr/local/unixODBC/lib -lodbc"
COBOPT="-t"
COBCPY="/jates/tuxedo80/cobinclude:/jates/btn/btndevl/incl:/jates/cobol/cobol4000sp2/cpylib"
#avoid unwanted C-compiler warnings
NLSPATH=$NLSPATH:/opt/ansic/lib/nls/msg/C/%N.cat
# btnrouter
btnrouter: /jates/progs/tps/btnrouter.cbl /jates/progs/tps/btn400.cbl
/jates/progs/tps/mod461.cbl /jates/progs/tps/mod470.cbl
buildserver -C -v -o $@ \
-f /jates/progs/tps/btnrouter.cbl \
-f /jates/progs/tps/btn400.cbl \
-f /jates/progs/tps/mod461.cbl \
-f /jates/progs/tps/mod470.cbl \
-f /jates/progs/tps/res400.cbl \
-f ${ODBCLIBS} \
-s SJETAIR
-tmshutdown -s $@
cp -p $@ ..
-tmboot -s $@
# general instructions
.SUFFIXES: .cbl .c .o
.c.o: $(BTNINC)/fml_flds.h
cc -c $(INCLUDES) $<
.cbl.o: $(BTNINC)/fml_flds.h
cob -xc $<

Similar Messages

  • Using SQL Server credentials with Secure Store Target Application for Data Connection in Dashboard Designer

    [Using SharePoint 2013 Enterprise SP1]
    I would like to use SQL Server credentials in a Secure Store Target Application, and
    this page makes it look like it's possible but when I attempt to use the new Target Application ID as authentication for a Data Connection in Dashboard Designer, I get a generic "Unable to access data source" with no error logged in SQL Server
    logs.
    I am able to use a Target Application with AD credentials to access the SQL db without a problem. Suggestions?

    Hi,
    1. Make sure that the credential is set to
    Secure Store Target Application. Navigate to the Central Administration. Click on the
    Application Management. Click on the Manage Service Applications. Click on the
    Secure Store Service Application. Select the application ID and from the ECB menu click on the
    Set Credentials. Enter the Credential Owner, Windows User Name and the
    Windows Password.
    2. Make sure that in the Dashboard Designer “Use a stored account” is selected in the “Authentication” and the proper application ID is mentioned.
    Please refer to the link below for more information:
    http://www.c-sharpcorner.com/Blogs/14527/unable-to-access-data-source-the-secure-store-target-applic.aspx
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • KEEP_STATE/Tuxedo buildserver issue

    Hello, I became familiar with KEEP_STATE a few months ago.  It seems to work great... however, the Tuxedo buildserver utility seems to be tripping it up.   I must be doing something obviously wrong here, because I can seem to find any other's sharing this experience anywhere here or elsewhere on the web.. and I assume there plenty of other folks out there who are running buildserver from a makefile.
    The problem seems to be... the temporary stub main module (BS-*.c) that buildserver generates.   Each one of these is getting added to the .make.state file, and seems to trigger a re-build of the target executable. So, it just keeps re-running buildserver over and over again, as each new BS-*.c file is generated.
    I think a simple fix... would be a buildserver command line option to enable one to explicitly specify the name of the stub module, but I can find no such option.
    Before I begin sharing makefile content, etc... I'll just throw this out there, see if there are any immediate answers.
    Is there anything I can do to prevent KEEP_STATE from picking up each of these new BS-*.c files as they're created?
    Thanks in advance for any insights,
    Jeff

    Hi Jeff,
    Thank you very much for your report. I'm RE for dmake, and I'll be happy to help you in this investigation.
    Can you file a bug against dmake for this issue?
    Here is an example of a bug report:
    https://bug.oraclecorp.com/pls/bug/webbug_edit.edit_info_top?rptno=17990242&rptno_count=1&pos=1&report_title=&query_id=-1
    It would be great to have a small test case, but if it is difficult to create, we can use your real build process to investigate the problem.
    Thanks.
    Nik

  • Is is possible to install System Center 2012 R2 products using SQL aliases names

    Hello,
    Is there a way to install System Center 2012 R2 using SQL aliases, and if applicable, which System Center products support this scenario ?
    I have it as an acceptance criteria, but I'm not able to make it work.

    So, I would like to hear from a voice of someone who have tried this, and can confirm if it is applicable or not.
    ok, I have to ask the stupid question but.... What is wrong with your voice?? The setup tells you it is not supported what more do you want?
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • Debugging a tuxedo service using dbx

    Hi,
    Is is possible to debug a tuxedo service using dbx by enabing the tmboot switches
    and -g option of the compiler. I am able to step into tpsvrinit during initialisation,
    but not able to do when a client calls a service. I could not step into the service
    by setting breakpoints. Please help.
    rgds,
    Dominic

    The only thing to be aware of is that while you play around in the debugger, Tuxedo
    is timing out your transaction.
    So, if you want things to keep working while you debug, setup some nice long timouts.
    ...Lyall
    "RC Bryan" <[email protected]> wrote:
    >
    I have not done this on Solaris in a while but basically, what you have
    to do is
    to build the process with -g and start it with tmboot as you would normally.
    After the process is running, you can attach by typing:
    dbx name pid
    where the name is the name of the executable and pid is the process id
    of the
    server process (obtained either with ps -ef | grep name or with verbose
    mode psr
    in tmadmin). This will break into the running process. You can then
    set your
    break points in the service routines as required. When the service is
    entered,
    control will return to your debugger session and you can debug as you
    normally
    would.
    Incidentally, I find the buildserver -k (keep) option to be useful when
    debugging
    servers. This allows you to debug through the startup code that is normally
    deleted
    as a part of the buildserver process.
    Regards,
    /RC Bryan
    "Dominic" <[email protected]> wrote:
    Hi,
    Is is possible to debug a tuxedo service using dbx by enabing the tmboot
    switches
    and -g option of the compiler. I am able to step into tpsvrinit during
    initialisation,
    but not able to do when a client calls a service. I could not step into
    the service
    by setting breakpoints. Please help.
    rgds,
    Dominic

  • Trxn Management with Tuxedo ATMI or SQL

    Hi,
    Ours is a leading bank in Saudi Arabia with a network of 70 branches in the country.
    We have a number of heteogeneous systems for various banking operations.
    Specifically, this quaestion is regarding choosing a choice of Tuxedo ATMI or
    SQL for incorporating various business rules in retail banking, right from opening
    customer realtionship and accounts until closing the customer file.
    Given the very hectic time schedule and also the concern for long-term maintenance,
    please advise which one is right decision
    - Building the business logic in the PL/SQL procedures in
    the central ORACLE server (Branches / Departments /
    ATMs / ... will access this and iteropration of all
    these sevices have to be managed (some of these are
    XA compliant and some are not)
    or
    - building the business rules in the Tuxedo ATMI services?
    Please note that I already read another email inquiry (and reply ) from Mervin
    with the subject 'Transaction management with ATMI or SQL'.
    Adavnce thanks.
    N Dhandapani
    Saudi French Bank
    Riyadh

    Hi,
    Implementing business checks/repository in BEA Tuxedo servers seems a cleaner
    approach from architecture and maintenance point of view.
    It helps the application to maintain n-tier architecture and leave the client
    to take care of only the interface and database the data storage. All checks and
    business rules will be in the middle-layer.
    Moreover, using Tuxedo brings in some advantages like:
    *Load Balancing
    *Scalability
    *Transaction Monitoring
    *Fail-over
    *Connection Pooling
    *Easier Database Migrations (very easy if only ANSI features are used, else code
    changes mey be required)
    NOTE: Tuxedo services can be developed using ESQL/C (Pro*C for Oracle) which may
    be database specific. A database independent approach (a study/analysis may be
    required) would be to use some database library that encapsulates the calls like
    Rogue Wave.
    HTH
    Best Regards
    MS

  • How to load a default value in to a column when using sql loader

    Im trying to load from a flat file using sql loader.
    for 1 column i need to update using a default value
    how to go about this?

    Hi!
    try this code --
    LOAD DATA
       INFILE 'sample.dat'
       REPLACE
       INTO TABLE emp
       empno   POSITION(01:04) INTEGER EXTERNAL NULLIF empno=BLANKS,
       ename   POSITION(06:15)  CHAR,
       job         POSITION(17:25)  CHAR,
       mgr       POSITION(27:30)  INTEGER EXTERNAL NULLIF mgr=BLANKS,
       sal        POSITION(32:39)  DECIMAL EXTERNAL NULLIF sal=BLANKS,
       comm   POSITION(41:48)  DECIMAL EXTERNAL DEFAULTIF comm = 100,
       deptno  POSITION(50:51)  INTEGER EXTERNAL NULLIF deptno=BLANKS,
       hiredate POSITION(52:62) CONSTANT SYSDATE
      )-hope this will solve ur purpose.
    Regards.
    Satyaki De.

  • Load XML File into temporary tables using sql loader

    Hi All,
    I have an XML file as below. I need to insert the contents into a temporary staging table using sql loader. Please advice how I need to do that.
    For example Portfolios should go into a seperate table, and all the tags inside it should be populated in the columns of the table.
    Family should go into a seperate table and all the tags inside it should be populated in the columns of the table.
    Similarly offer, Products etc.
    - <ABSProductCatalog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    - <ProductSalesHierachy>
    - <Portfolios>
    - <Portfolio productCode="P1">
      <Attribute name="CatalogProductName" value="Access" />
      <Attribute name="Status" value="Active" />
      </Portfolio>
    - <Portfolio productCode="P2">
      <Attribute name="CatalogProductName" value="Data" />
      <Attribute name="Status" value="Active" />
      </Portfolio>
    - <Portfolio productCode="P3">
      <Attribute name="CatalogProductName" value="Voice" />
      <Attribute name="Status" value="Active" />
      </Portfolio>
    - <Portfolio productCode="P4">
      <Attribute name="CatalogProductName" value="Wireless" />
      <Attribute name="Status" value="Active" />
      </Portfolio>
      </Portfolios>
    - <Families>
    - <Family productCode="F1">
      <Attribute name="CatalogProductName" value="Internet Access Services" />
      <Attribute name="Status" value="Active" />
    - <ParentHierarchy>
      <Item productCode="P1" modelType="Portfolio" />
      </ParentHierarchy>
      </Family>
    - <Family productCode="F2">
      <Attribute name="CatalogProductName" value="Local Access Services" />
      <Attribute name="Status" value="Active" />
    - <ParentHierarchy>
      <Item productCode="P2" modelType="Portfolio" />
      </ParentHierarchy>
      </Family>
      </Families>
    - <SubFamilies>
    - <SubFamily productCode="SF1">
      <Attribute name="CatalogProductName" value="Business Internet service" />
      <Attribute name="Status" value="Active" />
    - <ParentHierarchy>
      <Item productCode="F1" modelType="Family" />
      </ParentHierarchy>
      </SubFamily>
      </SubFamilies>
    - <ProductRefs>
    - <ProductRef productCode="WSP1" modelType="Wireline Sales Product">
      <ActiveFlag>Y</ActiveFlag>
    - <ProductHierarchy>
      <SalesHierarchy family="F1" subFamily="SF1" portfolio="P1" primary="Y" />
      <SalesHierarchy family="F2" portfolio="P2" primary="N" />
      <FinancialHierarchy quotaBucket="Voice" strategicProdCategory="Local Voice" />
      </ProductHierarchy>
      </ProductRef>
    - <ProductRef productCode="MSP2" modelType="Handset">
      <ActiveFlag>Y</ActiveFlag>
    - <ProductHierarchy>
      <SalesHierarchy portfolio="P4" primary="Y" />
      </ProductHierarchy>
      </ProductRef>
      </ProductRefs>
      </ProductSalesHierachy>
    - <Offers>
    - <Offer productCode="ABN">
      <OfferName>ABN</OfferName>
      <OfferDescription>ABN Description</OfferDescription>
    - <Segments>
      <Segment>SCG</Segment>
      <Segment>PCG</Segment>
      </Segments>
      <OfferUpdateDate>2009-11-20</OfferUpdateDate>
      <ActiveFlag>Y</ActiveFlag>
      </Offer>
    - <Offer productCode="OneNet">
      <OfferName>OneNet</OfferName>
      <OfferDescription>OneNet Description</OfferDescription>
    - <Segments>
      <Segment>SCG</Segment>
      <Segment>PCG</Segment>
      <Segment>PCG2</Segment>
      </Segments>
      <OfferUpdateDate>2009-11-20</OfferUpdateDate>
      <ActiveFlag>Y</ActiveFlag>
      </Offer>
      </Offers>
    - <Products>
    - <Product productCode="WSP1" modelType="Wireline Sales Product">
      <ProductName>AT&T High Speed Internet</ProductName>
      <ProductDescription>High Speed Internet</ProductDescription>
      <LegacyCoProdIndicator>SBC</LegacyCoProdIndicator>
      <RevenueCBLCode>1234B</RevenueCBLCode>
      <VolumeCBLCode>4567A</VolumeCBLCode>
      <SAARTServiceIDCode>S1234</SAARTServiceIDCode>
      <MarginPercentRequired>Y</MarginPercentRequired>
      <PercentIntl>%234</PercentIntl>
      <UOM>Each</UOM>
      <PriceType>OneTime</PriceType>
      <ProductStatus>Active</ProductStatus>
      <Compensable>Y</Compensable>
      <Jurisdiction>Everywhere</Jurisdiction>
      <ActiveFlag>Y</ActiveFlag>
    - <Availabilities>
      <Availability>SE</Availability>
      <Availability>E</Availability>
      </Availabilities>
    - <Segments>
      <Segment>SCG</Segment>
      <Segment>PCG</Segment>
      </Segments>
      <VDIndicator>Voice</VDIndicator>
      <PSOCCode>PSOC 1</PSOCCode>
      <USBilled>Y</USBilled>
      <MOWBilled>N</MOWBilled>
      <ProductStartDate>2009-11-20</ProductStartDate>
      <ProductUpdateDate>2009-11-20</ProductUpdateDate>
      <ProductEndDate>2010-11-20</ProductEndDate>
    - <AliasNames>
      <AliasName>AT&T HSI</AliasName>
      <AliasName>AT&T Fast Internet</AliasName>
      </AliasNames>
    - <OfferTypes>
      <OfferType productCode="ABN" endDate="2009-11-20" />
      <OfferType productCode="OneNet" />
      </OfferTypes>
    - <DynamicAttributes>
    - <DynamicAttribute dataType="String" defaultValue="2.5 Mbps" name="Speed">
      <AttrValue>1.5 Mbps</AttrValue>
      <AttrValue>2.5 Mbps</AttrValue>
      <AttrValue>3.5 Mbps</AttrValue>
      </DynamicAttribute>
    - <DynamicAttribute dataType="String" name="TransportType">
      <AttrValue>T1</AttrValue>
      </DynamicAttribute>
      </DynamicAttributes>
      </Product>
    - <Product productCode="MSP2" modelType="Handset">
      <ProductName>Blackberry Bold</ProductName>
      <ProductDescription>Blackberry Bold Phone</ProductDescription>
      <LegacyCoProdIndicator />
      <RevenueCBLCode />
      <VolumeCBLCode />
      <SAARTServiceIDCode />
      <MarginPercentRequired />
      <PercentIntl />
      <UOM>Each</UOM>
      <PriceType />
      <ProductStatus>Active</ProductStatus>
      <Compensable />
      <Jurisdiction />
      <ActiveFlag>Y</ActiveFlag>
    - <Availabilities>
      <Availability />
      </Availabilities>
    - <Segments>
      <Segment>SCG</Segment>
      <Segment>PCG</Segment>
      </Segments>
      <VDIndicator>Voice</VDIndicator>
      <PSOCCode />
      <USBilled />
      <MOWBilled />
      <ProductStartDate>2009-11-20</ProductStartDate>
      <ProductUpdateDate>2009-11-20</ProductUpdateDate>
    - <AliasNames>
      <AliasName />
      </AliasNames>
    - <OfferTypes>
      <OfferType productCode="ABN" />
      </OfferTypes>
    - <DynamicAttributes>
    - <DynamicAttribute dataType="String" name="StlmntContractType">
      <AttrValue />
      </DynamicAttribute>
    - <DynamicAttribute dataType="String" name="BMG 2 year price">
      <AttrValue>20</AttrValue>
      </DynamicAttribute>
    - <DynamicAttribute dataType="String" name="MSRP">
      <AttrValue>40</AttrValue>
      </DynamicAttribute>
    - <DynamicAttribute dataType="String" name="BMGAvailableType">
      <AttrValue />
      </DynamicAttribute>
    - <DynamicAttribute dataType="String" name="ProductId">
      <AttrValue>123456</AttrValue>
      </DynamicAttribute>
    - <DynamicAttribute dataType="String" name="modelSource">
      <AttrValue>product</AttrValue>
      </DynamicAttribute>
      </DynamicAttributes>
      </Product>
      </Products>
      <CatalogChanged>Y</CatalogChanged>
      </ABSProductCatalog>

    Two options that come to mind. Others exist.
    #1 - {thread:id=474031}, which is basically storing the XML in an Object Relational structure for parsing
    #2 - Dump the XML into either an XMLType based table or column and use SQL (with XMLTable) to create a view that parses the data. This would be the same as the view shown in the above post.
    Don't use sql*loader to parse the XML. I was trying to find a post from mdrake about that but couldn't. In short, sql*loader was not build as an XML parser so don't try to use it that way.

  • Pinning frequently used sqls

    Hi all,
    Please let me know if the steps involved to pin frequently used sql statement in library cache to avoid reparsing
    Thanks for all your help.

    Frequently used SQL ought to be retained in the library cache without pinning. Oracle only starts flushing stuff from the cache once it's full and then it ages out the least-recently used queries.
    So, if you have a persistent problem with excessive reloading of frequently used queries you may need to reconsider the value of your shared_pool_size.
    Cheers, APC

  • Connecting to Oracle DB on Ubuntu 8.04 using SQL Developer

    Hi,
    I managed to install Oracle 11g on Ubuntu 8.04 using this guide:
    http://www.pythian.com/blogs/968/installing-oracle-11g-on-ubuntu-804-lts-hardy-heron
    But I don't remember the Username or SID, that's why I keep on getting ORA-12505 from SQL DEVELOPER
    How can I get those missing informations?

    But I don't remember the Username or SIDAssuming your DB is up and running, you can find out the SID by :
    $ ps -ef | grep smon | grep -v grep
    oracle   15298     1  1 10:59 ?        00:00:00 ora_smon_db11
    $ here db11 is the SID.
    About username, you can create one. Use Sql*Plus and OS authentication :
    $ export ORACLE_SID=<your SID>
    $ sqlplus / as sysdba
    SQL> CREATE USER

  • Retreving Hexadecimal Values from a table using SQL query.

    Hi,
    I'm looking for a query to retreive Hexadecimal values contained in a column using SQL query.
    The column contains the values of all types, alphanumeric, numeric and hexadecimal.
    I need to retreive only hexadecimal values.
    any help to me in this regard will be appreciated.
    Thanks

    Presumably, you can be sure that any valid hex value is indeed MEANT to BE a hex value. For example the value 'ACE' is meant to be a hexadecimal value and not the word.

  • How to get tax break up of TDS using SQL query ?

    Hi all,
    We are developing a TDS report using SQL query
    Report will contain VendorCode,Date(ap inv date),Vendor name,
    Bill value,TDS Amount,
    Bill Value – 100.000,
    TDS (2%) - 2.000,
    TDS Surcharge(10% on TDS) - 0.2,
    TDS Cess(2%(TDS+TDS Surcharge)) - 0.044,
    TDS HeCess(1%(TDS+TDS Surcharge)) - 0.022.
    We have developed this report which displays upto
    VendorCode,Date(ap inv date),Vendor name,
    Bill value,TDS Amount.
    How to show tax break up of TDS in SQL query ?
    Thanks,
    With regards,
    Jeyakanthan.

    Hi gauraw,
    Thank for your reply.
    I modified the query , pasted the query
    as below in query generator,
    Select T0.DocNum,T0.DocDate,T0.CardCode as 'Ledger',T1.TaxbleAmnt As 'Bill value',T1.WTAmnt as 'TDSAmt',(TDSAmt * 0.1) as 'TDS_Surch',
    (((TDSAmt0.1) + TDSAmt)0.02)  as 'TDSCess',
    (((TDSAmt0.1) + TDSAmt)0.01)  as 'TDSHCess'
    FROM OPCH T0  INNER JOIN PCH5 T1 ON T0.DocEntry = T1.AbsEntry
    WHERE (T0.DocDate >= '[%0]' and T0.DocDate <= '[%1]')
    on clicking execute its showing error message invalid column
    name 'TDSAmt'.
    With regards,
    Jeyakanthan

  • Can you use SQL as a data source for a project in the same way you can in Excel?

    Excel allows you to create a data source that executes a SQL stored procedure, display that data as a table in a spreadsheet and have that data automatically refresh each time you open the spreadsheet. Is it possible to do the same thing in MS Project, displaying
    the data from the stored procedure as a series of tasks?
    Here's what I'm trying to do - I have a stored procedure that pulls task data meeting a specific criteria from all projects in Project Server. We're currently displaying this data as an Excel report. However, the data includes start dates and durations so
    it would be nice to be able to display it as a Gantt Chart. I've played around with creating a Gantt chart in Excel and have been able to do a very basic one, but it doesn’t quite fit our needs.

    No, You can not use sql as a data source for a project.
    You have 3 options to achieve it:
    1. You can create a Sharepoint list with desired column ,fill desired data in that list then you can create a MS project from Sharepoint List.
    2. You can create a SSRS report in which you can display grantt chart Joe has given you that link.
    3. You can write a macro in MPP which will take data from your excel. In excel you will fetch data from your stored procedure. write a schedule which will run every day to update your data or
    create an excel report in which will update automatically and write macro in mpp which will fetch the data then publish it so that it would be available to team members.
    kirtesh

  • Help Required -- Can we use SQL Query to READ data from SAP MDM Tables

    Hi All,
    Please help.........
    Can we use SQL Query to READ(No Creation/Updation/Deletion  just Read) Data from SAP MDM tables directly, without using MDM Syndicator.
    Or direct SQL access to SAP MDM tables is not possible. Only through MDM Syndicator can we export data.
    Thanks in Advance
    Regards

    All the tables you create in Repository comes under A2i_CM_Tables in Database named as your repository name. So the tables names are fields of table A2i_CM_Tables. Now i tried it but cant make it.
    Now, I dont think its possible to extract all fields in tables and there values using select query. May be pure sql guy can do that or not.
    But there is no relation of data extraction and syndicator. Data is viewed in Data Manager. and you can also store data in a file from DM also.
    BR,
    Alok

  • SAP Crystal Report using SQL Server Authentication and Windows Authenticati

    I'm a SAP Crystal Report, version for Visual Studio 2010 Beginner
    my ingredients are
    1.windows 7 ultimate service pack1
    2.sql server 2008 standard edition
    3.visual studio 2010 pro
    4.SAP Crystal Report, version for visual studio.net
    I was created a report named customersByCity.rpt using OLE DB (ADO) -> Microsoft OLE DB Provider for SQL Server -> I'm supply Server, User ID, Password and Database. I assume me using SQL Server Authentication for my report
    Then, my ASP.NET files as following
    //ASP.NET
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="viewCustomersByCity.aspx.cs" Inherits="viewCustomersByCity" %>
    <%@ Register Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
        Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div><asp:Label ID="lblMsg" runat="server" BackColor="Yellow" ForeColor="Black"></asp:Label>
     <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true"></CR:CrystalReportViewer>
        </div>
        </form>
    </body>
    </html>
    //code-behind
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Collections;
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.Shared;
    public partial class viewCustomersByCity : System.Web.UI.Page
        private const string PARAMETER_FIELD_NAME = "city";   
        private ReportDocument customersByCityReport;
        private void ConfigureCrystalReports()
            ConnectionInfo connectionInfo = new ConnectionInfo();
            connectionInfo.ServerName = @"WKM1925-PCWKM1925";
            connectionInfo.DatabaseName = "Northwind";
            connectionInfo.UserID = "sa";
            connectionInfo.Password = "sysadmin25";
            SetDBLogonForReport(connectionInfo);
        private void SetDBLogonForReport(ConnectionInfo connectionInfo)
            TableLogOnInfos tableLogOnInfos = CrystalReportViewer1.LogOnInfo;
            foreach (TableLogOnInfo tableLogOnInfo in tableLogOnInfos)
                tableLogOnInfo.ConnectionInfo = connectionInfo;
        private void SetCurrentValuesForParameterField(ReportDocument reportDocument, ArrayList arrayList)
            ParameterValues currentParameterValues = new ParameterValues();
            foreach (object submittedValue in arrayList)
                ParameterDiscreteValue parameterDiscreteValue = new ParameterDiscreteValue();
                parameterDiscreteValue.Value = submittedValue.ToString();
                currentParameterValues.Add(parameterDiscreteValue);
            ParameterFieldDefinitions parameterFieldDefinitions = reportDocument.DataDefinition.ParameterFields;
            ParameterFieldDefinition parameterFieldDefinition = parameterFieldDefinitions[PARAMETER_FIELD_NAME];
            parameterFieldDefinition.ApplyCurrentValues(currentParameterValues);
        protected void Page_Load(object sender, EventArgs e)
            customersByCityReport = new ReportDocument();
            string reportPath = Server.MapPath("customersByCity.rpt");
            customersByCityReport.Load(reportPath);
            ConfigureCrystalReports();
            ArrayList arrayList = new ArrayList();
            arrayList.Add("paris");
            arrayList.Add("Madrid");
            arrayList.Add("Marseille");
            arrayList.Add("Buenos Aires");
            arrayList.Add("Sao Paulo");
            ParameterFields parameterFields = CrystalReportViewer1.ParameterFieldInfo;
            SetCurrentValuesForParameterField(customersByCityReport, arrayList);
            CrystalReportViewer1.ReportSource = customersByCityReport;
    1st scenario
    When in a runtime, it's keep appear a dialog box. This dialog box ask me to suppy Server, User ID, Password and Database. Once all information is supplied, my report display the data as expected
    2nd scenario
    I change my report using OLE DB (ADO) -> Microsoft OLE DB Provider for SQL Server -> checked on Integrated Security. I just choose Server, and Database. I assume me using Windows Authentication
    When in a runtime, there's no dialog box as above. My report display the data as expected. really cool
    Look's like, when report using SQL Server Authentication there's some problem. but, when report using Windows Authentication, it's fine.
    I'm looking for comment. Please help me

    Hello,
    MS SQL Server 2008 requires you to install the MS Client Tools for 2008.
    Once install then update all of your reports to use the SQL Native 10 as the OLE DB driver.
    The try again, if it still fails search, lots of sample log on code in this forum.
    Don

Maybe you are looking for

  • Photo select for sharing

    Photo app selects the next photo to be shared instead of the one you selected. 1. You view one photo. 2. Bring up the sharing options. 3. The photo you selected is changed to the next photo. Annoying. On iOS 8 iPhone 5S.

  • Fonts in Indesign CS6

    I have recently downloaded the new Indesign CS6 and now my fonts are showing up as an error. I've tried copying all my fonts and adding them to the Indesign folder but they are still showing as an error. Please help.

  • Hi everybody! How can I transpose data in numbers?

    Hi everybody! How can I transpose data in numbers?

  • Swedish characters wont display!

    How do I get these swedish characters " å, ä , ö " to show up in a dynamic text box? Do I have to embed a particular character map....which one? thanks T

  • Cannot find Connector type while configuring UWS

    Hi,        Am inplementing ESS/MSS for EP 7.01 SP6. While Configuring Universal Worklist systems, Am unable to find the connecter type SomProviderConnector. Appreciate your help...