Connection with 3 tables in Entity

Hello,
I have 3 tables in SQL dataBase: Movies, Viewer and Movies_Viewer (= that shows which viewer saw which movie).
the client will insert Viewer name and Movie name and with the Entity I want to insert it to the 3 tables I have (with linq for example), but how should
I know what ID gets the movie and the viewer to insert it in the third table?
should I insert to the 2 tables and then call another function that insert the ID's to the third? how do I have all the data?
please halp me!
this is my code:
Is it wrong to do like this?
[WebMethod]
public void InsertToDB(string viewerName, string movieName)
InsertToViewerTbl(viewerName);
InsertToMoviesTbl(movieName);
private void InsertToMoviesTbl(string movieName)
var db = new MoviesEntities1();
var movieNameTbl = new MovieNameTbl();
movieNameTbl.MovieName = movieName;
db.AddToMovieNameTbls(movieNameTbl);
db.SaveChanges();
private void InsertToViewerTbl(string viewerName)
var db = new MoviesEntities1();
var viewerNameTbl = new ViewerNamesTbl();
viewerNameTbl.ViewerName = viewerName;
db.AddToViewerNamesTbls(viewerNameTbl);
db.SaveChanges();

I suggest that you do the tutorial.
http://www.codeproject.com/Articles/539816/Relationships-Using-Entity-Framework

Similar Messages

  • Connection with tables of same database

    i want to access two tables of same database using JDBC.
    how can i do it in MS Access
    i have to create two connection one for each or two statement for same connection

    i want to access two tables of same database using
    JDBC.
    how can i do it in MS Access
    i have to create two connection one for each or two
    Yo don't need to create two connections to access two tables.
    Single Database connection is enough.
    Try the following pseudo code to access two tables
    1. get Database Connection
    2. create statement with query that is for table 1
    3.execute it and close the statement .
    4. again create the statement with query that is for table 2
    5. execute it and close the statement .
    6. close the connection.
    hope it will clear you,
    nvseenu
    statement for same connection,

  • How can I connect with the AspNetUsers table in MVC 5?

    I have a model, in which I have used several foreign keys from other tables. The point is that I also need to get the Id of the user, from the AspNetUsers table, though, I don't know how. I have done something like this, but it doesn't seem to be working:
    public class Message
        public int MessageID { get; set; }
        [Required(ErrorMessage="Please type a message to submit")]
        [DataType(DataType.MultilineText)]
        [Display(Name="Message")]
        public string MessageText { get; set; }
        public DateTime WrittenOn { get; set; }
        [Required(ErrorMessage="Please select a ticket")]
        [ForeignKey("Ticket")]
        [Display(Name="Ticket")]
        public int TicketID { get; set; }
        public virtual Ticket Ticket { get; set; }
        [Required(ErrorMessage = "Please select a business")]
        [ForeignKey("Business")]
        [Display(Name = "Business")]
        public int BusinessID { get; set; }
        public virtual Business Business { get; set; }
        [Required(ErrorMessage = "Please select a user")]
        [ForeignKey("aspnetusers")]
        [Display(Name = "User")]
        public int Id { get; set; }
        public virtual ApplicationUser ApplicationUser { get; set; }
    When I try to create a controller using the Entity Framework with my model, I get an error message saying:
        The ForeignKeyAttribute on property 'Id' on type ... is not valid. The navigation property 'aspnetusers' was not found on the dependent type ... The Name value should be a valid navigation property name.
    If someone could help me solve the problem, I would be glad.

    Hi Toni,
    I see that this particular query is been answered in the following thread.
    http://stackoverflow.com/questions/25372436/how-can-i-connect-with-the-aspnetusers-table-in-mvc-5
    You can also refer the following links, hope this helps.
    http://stackoverflow.com/questions/20071282/aspnet-identity-and-mvc5
    http://blogs.msdn.com/b/webdev/archive/2013/10/16/customizing-profile-information-in-asp-net-identity-in-vs-2013-templates.aspx
    Regards,
    Bharath

  • How can i find tables connected with structure?

    hi experts,
    i have a problem that i know one structure and i want know that which tables are connected with
    that structure.please help.
    thanks
    Moderator message: FAQ, please search for previous threads dealing with this topic.
    locked by: Thomas Zloch on Aug 17, 2010 11:46 AM

    Hi Abhishek,
    Just display the structure in se11 and choose the data element of the key field (probably you can choose the first field). then chk with the where used list.
    From the list you just search for a suitable table. If you provide the infm on the tcode / structure name then probably we may help you with the table name.
    But I request you to first try with yourself.
    Regards,
    Selva K.

  • Problem with mapping the Entity beans onto database tables

    Hi,
    I got a problem with mapping the Entity beans onto database tables. Here are what I did:
    First Step:
    asant capture-schema
    Second Step:
    capture-schema -driver com.pointbase.jdbc.jdbcUniversalDriver -dburl jdbc:pointbase:server://localhost/sun-appserv-samples -username pbPublic -password pbpublic -table APPLICANT -table APPLICANTSKILL -table CUSTOMER -table LOCATION -table job -table JOBSKILL -table SKILL -out build/agency.dbschema
    The first step was fine. But, in the second step, I got the error message as follow:
    using dburl:jdbc:pointbase:server://localhost/sun-appserv-samples
    using username:pbPublic
    using password:pbpublic
    using driver:com.pointbase.jdbc.jdbcUniversalDriver
    using schemaname:null
    using output file:build/agency.dbschema
    JDO71100: Failed to find a class. Verify that the class is available on your CLASSPATH
    java.lang.ClassNotFoundException: com.pointbase.jdbc.jdbcUniversalDriver
    at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:141)
    at com.sun.forte4j.modules.dbmodel.jdbcimpl.ConnectionProvider.<init>(Co
    nnectionProvider.java:38)
    at com.sun.jdo.api.persistence.mapping.ejb.CaptureSchema.main(CaptureSch
    ema.java:130)
    at com.sun.jdo.spi.persistence.support.ejb.util.CaptureSchemaWrapper.mai
    n(CaptureSchemaWrapper.java:29)
    Thanks for your help!

    You need to add the pbclient.jar or some similar name like that, in the CalssPath.

  • Entity bean connection with SQL Server Error! urgent

    Hi,
    I am working with J2EE tutorial and when i tried SavingsAccount Entity bean to connect with SQL Server 2000(other than default Cloudscape)and I'm also having SQL Server 2K JDBC Driver installed. I also made entries in Server Configuration menu of J2EE deployment tool for this MS JDBC Driver for SQL Server 2K,I will enclose my dbName and connection method in the entity bean , but i am getting error like this.
    my data base name in SQL Server 2K is 'rajeshrNew'.
    private String dbName="java:comp/env/jdbc/rajeshrNew"; //dbName
    private void makeConnection() throws NamingException, SQLException {
    InitialContext ic = new InitialContext();
    DataSource ds = (DataSource) ic.lookup(dbName);
    con = ds.getConnection();
    and errors receiving are:
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: Unable to connect to database. No suitable driver; nested exception is:
    javax.ejb.EJBException: Unable to connect to database. No suitable driver
    java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: Unable to connect to database. No suitable driver; nested exception is:
    javax.ejb.EJBException: Unable to connect to database. No suitable driver
    javax.ejb.EJBException: Unable to connect to database. No suitable driver <<no stack trace available>>
    Please help me to resolve this problem!!
    Regards
    Rajesh R

    yes i do create System DSN with rajeshrNew and my default.properties file look like this..
    # maximum size of message driven bean instance
    # pool per mdb type
    messagebean.pool.size=3
    # maximum size of a "bulk" message bean delivery
    messagebean.max.serversessionmsgs=1
    # message-bean container resource cleanup interval
    messagebean.cleanup.interval=600
    passivation.threshold.memory=128000000
    idle.resource.threshold=600
    log.directory=logs
    log.output.file=output.log
    log.error.file=error.log
    log.event.file=event.log
    distributed.transaction.recovery=false
    transaction.timeout=0
    transaction.nonXA.optimization=true
    sessionbean.timeout=0
    # validating parser values
    # validating.perser is used when archive file are loaded by
    # any of the J2EE Reference Implementation tools.
    # deployment.validating.parser is used when deploying an
    # archive on the J2EE AppServer.
    validating.parser=false
    deployment.validating.parser=true
    now u tell me what i have to change..
    with regards
    Rajesh

  • Blackberry coffee table connection with z10/playbook/gamepad/smart TV/Gateway2/

    hey there i was recently looking to buy a coffee table multy touch pc like the microsoft,
    then i came accorss some you tuve videos demonstrating how to build one your self
    the idea behind it if i understand is miror to reflect, led's, projector, lazers and  a pc mey be more.
    but what i found a bit ennoying was the size of the body of the table i beleave it is so big because of the pc in there 
    long story sort with a blackberry playbook i believe a tabble can be built, since there is an HDMI connection that can be connected to a projector, also looking at bridge connection, a table can be built with conversion capability, either on angle to allow different posture usage, added to that the share over wifi feature to smart tv's would be a great addition, if not. again with an external HDMI plug to the table it can always be plugged to a tv, or projector if needed. in addition to that a game pad will do a successful business. 
    not to forget the GENUINE BLACKBERRY WIRELESS BLUETOOTH MUSIC GATEWAY 2 
    With the successful os 10.2 i think this is a perfect project.
    Please advise.
    Sincerely your alpha

  • Cannot 'Synchronize with database' my entity objects

    Hello,
    I have successfully created entities in my model using the 'new buisness components from tables' function. But now my database moddel has changed and I would like to synchronize my entities with database to get newest colums, but when right clicking an entity, the 'Synchronize with database' link is greyed and cannot be selected.
    I have a database connection configured in my application resources and I can still import new tables in my project.
    Do you have any idea of what is happening? This is not the case for all my applications. I can still synchronize in some other ones
    Thank you for your help
    Stephane

    Synchronize with the database will be avaialble for the Entity Object
    I think there is a problem with the particular entity that got created when you did the business components out of tables..
    This is not the case for all my applications. I can still synchronize in some other onesif this is not happening with any other EO in any other application.. then you can try
    recreating the EO from the table..
    compare what is the change in between the EO that can synchronize and your current EO that cannot synchronize..
    another option might be to check the application.. if that is havign some hidden property to synchronize..
    last is to go with sameer's approach, to doubt about the table is not proper... in the same applciation create an EO with another table and try to synchronize.. you will get to actually the point where there is a problem..
    good luck.

  • Problem with trigger and entity in JHeadsart, JBO-25019

    Hi to all,
    I am using JDeveloper 10.1.2 and developing an application using ADF Business Components and JheadStart 10.1.2.27
    I have a problem with trigger and entity in JHeadsart
    I have 3 entity and 3 views
    DsitTelephoneView based on DsitTelephone entity based on DSIT_TELEPHONE database table.
    TelUoView based on TelUo entity based on TEL_UO database table.
    NewAnnuaireView based on NewAnnuaire entity based on NEW_ANNUAIRE database view.
    I am using JHS to create :
    A JHS table-form based on DsitTelephoneView
    A JHS table based on TelUoView
    A JHS table based on NewAnnuaireView
    LIB_POSTE is a :
    DSIT_TELEPHONE column
    TEL_UO column
    NEW_ANNUAIRE column
    NEW_ANNUAIRE database view is built from DSIT_TELEPHONE database table.
    Lib_poste is an updatable attribut in TelUo entity, DsitTelephone entity, NewAnnuaire entity.
    Lib_poste is upadated in JHS table based on TelUoView
    I added a trigger on my database shema « IAN » to upadate LIB_POSTE in DSIT_TELEPHONE database table :
    CREATE OR REPLACES TRIGGER “IAN”.TEL_UO_UPDATE_LIB_POSTE
    AFTER INSERT OR UPDATE OFF lib_poste ONE IAN.TEL_UO
    FOR EACH ROW
    BEGIN
    UPDATE DSIT_TELEPHONE T
    SET t.lib_poste = :new.lib_poste
    WHERE t.id_tel = :new.id_tel;
    END;
    When I change the lib_poste with the application :
    - the lib_poste in DSIT_TELEPHONE database table is correctly updated by trigger.
    - but in JHS table-form based on DsitTelephoneView the lib_poste is not updated. If I do a quicksearch it is updated.
    - in JHS table based on NewAnnuaireView the lib_poste is not updated. if I do a quicksearch, I have an error:
    oracle.jbo.RowAlreadyDeletedException: JBO-25019: The row of entity of the key oracle.jbo. Key [null 25588] is not found in NewAnnuaire.
    25588 is the primary key off row in NEW_ANNUAIRE whose lib_poste was updated by the trigger.
    It is as if it had lost the bond with the row in the entity.
    Could you help me please ?
    Regards
    Laurent

    The following example should help.
    SQL> create sequence workorders_seq
      2  start with 1
      3  increment by 1
      4  nocycle
      5  nocache;
    Sequence created.
    SQL> create table workorders(workorder_id number,
      2  description varchar2(30),
      3   created_date date default sysdate);
    Table created.
    SQL> CREATE OR REPLACE TRIGGER TIMESTAMP_CREATED
      2  BEFORE INSERT ON workorders
      3  FOR EACH ROW
      4  BEGIN
      5  SELECT workorders_seq.nextval
      6    INTO :new.workorder_id
      7    FROM dual;
      8  END;
      9  /
    Trigger created.
    SQL> ALTER SESSION SET NLS_DATE_FORMAT = 'DD-MON-YYYY HH24:MI:SS';
    Session altered.
    SQL> insert into workorders(description) values('test1');
    1 row created.
    SQL> insert into workorders(description) values('test2');
    1 row created.
    SQL> select * from workorders;
    WORKORDER_ID DESCRIPTION                    CREATED_DATE
               1 test1                          30-NOV-2004 15:30:34
               2 test2                          30-NOV-2004 15:30:42
    2 rows selected.

  • Problem in establishing connection with mysql 5.0

    Hi,
    I am using JCAPS 5.1. I tried to insert data to mysql database table.
    But i got following error
    java.sql.SQLException: Error in allocating a connection. Cause:
    Physical Connection doesn't exist.
    My intention is to read file in which data are comma seperated and to
    populate those values to a mysql 5.0 database table.
    Sample DATA in file [test.txt]
    111,gg,23,MFG
    112,hh,24,MFG
    113,ii,25,RETAIL
    114,jj,26,IT
    Database table: employee
    eno,ename,eage,edept
    While creating JDBC OTD there is no problem in establishing connection with database. But after deploying i got above error.
    I have used Mysql 5.0 Connector/J JDBC driver. Added JDBC driver jar files to following directories as required.
    1) C:\JavaCAPS51\logicalhost\is\lib
    2)C:\JavaCAPS51\logicalhost\is\domains\test\lib
    Steps i have followed as per JDBC-ODBC -eway user guide doc.
    1) Created USerDefined OTD and added necessary fields
    2) Created JDBC OTD.
    3) Created JAVA collaboration and do business process for inserting
    4) Mapped all components by creating in Connectivity MAp
    5) created necessary external systems in envrionment explorer.[JDBC External System and File External System]
    6)Created Deployment profile
    5) Deployed it.
    After deploying it gives error as
    java.sql.SQLException: Error in allocating a connection. Cause: Physical Connection doesn't exist
    Please let me know the solution for problem.
    Message was edited by:
    VenkateshSampoornam

    In the environment definition,
    -> External Application JDBC
    -> Properties
    -> Outbound JDBC Connection
    You have the database URL in the "DriverProperties" field
    Valid URL would be : jdbc:mysql://localhost:3306/caps
    !! The doc says that this field is optional !! Seems to be an error in the doc:
    Hope this helps
    Seb

  • Can EJB 3.0 beans be used with tables that do not have a primary key?

    Can a EJB 3.0 persistence bean be used with tables that do not have a primary key defined? I am building a test application based on the HowTo - Building EJB 3.0 Faces App paper posted after Openworld (schalk). The issue I am running into when trying to run the application is: Exception Description: Entity class [class com.persistence.Rpthead] has no primary key specified. Note: I get a simular error when using toplink directly.
    The tables I am binding to do not have primary keys defined. They use unique constraints to manage the table integrity.
    Is it possible to use EJB 3.0 on tables without a primary key? If not, are there plans to support this in the future?

    The spec requires a primary key Id annotation. I will take your suggestion to EJB 3.0 expert group.
    Can you also send an email to [email protected] with your requirement?
    -Debu

  • Dispatcher stopped and not able to connect with sql server

    Hi ,
                       In one of test system disp+work is started and then within no time its stopped.
    I am able to connect with  sql server 2005 database but while starting sap  dispatcher is stopping.
    Here is the log of  dev_wo
    trc file: "dev_w0", trc level: 1, release: "700"
    ACTIVE TRACE LEVEL           1
    ACTIVE TRACE COMPONENTS      all, MJ

    B Thu Jan 05 07:24:02 2012
    B  create_con (con_name=R/3)
    B  Loading DB library 'C:\usr\sap\DE1\SYS\exe\uc\NTI386\dbmssslib.dll' ...
    B  Library 'C:\usr\sap\DE1\SYS\exe\uc\NTI386\dbmssslib.dll' loaded
    B  Version of 'C:\usr\sap\DE1\SYS\exe\uc\NTI386\dbmssslib.dll' is "700.08", patchlevel (0.72)
    B  New connection 0 created
    M sysno      11
    M sid        DE1
    M systemid   560 (PC with Windows NT)
    M relno      7000
    M patchlevel 0
    M patchno    75
    M intno      20050900
    M make:      multithreaded, Unicode, optimized
    M pid        988
    M
    M  kernel runs with dp version 217000(ext=109000) (@(#) DPLIB-INT-VERSION-217000-UC)
    M  length of sys_adm_ext is 572 bytes
    M  ***LOG Q0Q=> tskh_init, WPStart (Workproc 0 988) [dpxxdisp.c   1299]
    I  MtxInit: 30000 0 0
    M  DpSysAdmExtCreate: ABAP is active
    M  DpSysAdmExtCreate: VMC (JAVA VM in WP) is not active
    M  DpShMCreate: sizeof(wp_adm)          23936     (1408)
    M  DpShMCreate: sizeof(tm_adm)          3994272     (19872)
    M  DpShMCreate: sizeof(wp_ca_adm)          24000     (80)
    M  DpShMCreate: sizeof(appc_ca_adm)     8000     (80)
    M  DpCommTableSize: max/headSize/ftSize/tableSize=500/8/528056/528064
    M  DpShMCreate: sizeof(comm_adm)          528064     (1048)
    M  DpFileTableSize: max/headSize/ftSize/tableSize=0/0/0/0
    M  DpShMCreate: sizeof(file_adm)          0     (72)
    M  DpShMCreate: sizeof(vmc_adm)          0     (1440)
    M  DpShMCreate: sizeof(wall_adm)          (38456/34360/64/184)
    M  DpShMCreate: sizeof(gw_adm)     48
    M  DpShMCreate: SHM_DP_ADM_KEY          (addr: 07F90040, size: 4659000)
    M  DpShMCreate: allocated sys_adm at 07F90040
    M  DpShMCreate: allocated wp_adm at 07F91E40
    M  DpShMCreate: allocated tm_adm_list at 07F97BC0
    M  DpShMCreate: allocated tm_adm at 07F97BF0
    M  DpShMCreate: allocated wp_ca_adm at 08366E90
    M  DpShMCreate: allocated appc_ca_adm at 0836CC50
    M  DpShMCreate: allocated comm_adm at 0836EB90
    M  DpShMCreate: system runs without file table
    M  DpShMCreate: allocated vmc_adm_list at 083EFA50
    M  DpShMCreate: allocated gw_adm at 083EFA90
    M  DpShMCreate: system runs without vmc_adm
    M  DpShMCreate: allocated ca_info at 083EFAC0
    M  DpShMCreate: allocated wall_adm at 083EFAC8
    X  EmInit: MmSetImplementation( 2 ).
    X  MM global diagnostic options set: 0
    X  <ES> client 0 initializing ....
    X  Using implementation flat
    M  <EsNT> Memory Reset disabled as NT default
    X  ES initialized.

    M Thu Jan 05 07:24:03 2012
    M  ThInit: running on host sugarland

    M Thu Jan 05 07:24:04 2012
    M  calling db_connect ...
    C  Warning: Env(MSSQL_SERVER) [SUGARLAND\DE1] <> Prof(dbs/mss/server) [SUGARLAND]. Profile value will be used.
    C  Thread ID:708
    C  Thank You for using the SLOLEDB-interface
    C  Using dynamic link library 'C:\usr\sap\DE1\SYS\exe\uc\NTI386\dbmssslib.dll'
    C  dbmssslib.dll patch info
    C    patchlevel   0
    C    patchno      72
    C    patchcomment MSSQL: Thread check in DbSlDisconnect (969143)
    C  np:(local) connection used on SUGARLAND
    C  CopyLocalParameters: dbuser is 'de1'
    C  Using Provider SQLNCLI
    C  OpenOledbConnection: MARS property was set successfully.

    C Thu Jan 05 07:24:19 2012
    C  OpenOledbConnection: line 23391. hr: 0x8000ffff Login timeout expired
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 0, sev 0), Login timeout expired
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 2, sev 0), An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 2, sev 0), Named Pipes Provider: Could not open a connection to SQL Server [2].
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 0, sev 0), Invalid connection string attribute
    C  Procname: [OpenOledbConnection - no proc]
    C  Using Provider SQLNCLI
    C  OpenOledbConnection: MARS property was set successfully.

    C Thu Jan 05 07:24:34 2012
    C  OpenOledbConnection: line 23391. hr: 0x8000ffff Login timeout expired
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 0, sev 0), Login timeout expired
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 2, sev 0), An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 2, sev 0), Named Pipes Provider: Could not open a connection to SQL Server [2].
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 0, sev 0), Invalid connection string attribute
    C  Procname: [OpenOledbConnection - no proc]
    C  Using Provider SQLNCLI
    C  OpenOledbConnection: MARS property was set successfully.

    C Thu Jan 05 07:24:49 2012
    C  OpenOledbConnection: line 23391. hr: 0x8000ffff Login timeout expired
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 0, sev 0), Login timeout expired
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 2, sev 0), An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 2, sev 0), Named Pipes Provider: Could not open a connection to SQL Server [2].
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 0, sev 0), Invalid connection string attribute
    C  Procname: [OpenOledbConnection - no proc]
    C  failed to establish conn to np:(local).
    C  Retrying without protocol specifier: (local)
    C  Using Provider SQLNCLI
    C  OpenOledbConnection: MARS property was set successfully.

    C Thu Jan 05 07:25:05 2012
    C  OpenOledbConnection: line 23391. hr: 0x8000ffff Login timeout expired
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 0, sev 0), Login timeout expired
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 2, sev 0), An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 2, sev 0), Named Pipes Provider: Could not open a connection to SQL Server [2].
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 0, sev 0), Invalid connection string attribute
    C  Procname: [OpenOledbConnection - no proc]
    C  Using Provider SQLNCLI
    C  OpenOledbConnection: MARS property was set successfully.

    C Thu Jan 05 07:25:21 2012
    C  OpenOledbConnection: line 23391. hr: 0x8000ffff Login timeout expired
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 0, sev 0), Login timeout expired
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 2, sev 0), An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 2, sev 0), Named Pipes Provider: Could not open a connection to SQL Server [2].
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 0, sev 0), Invalid connection string attribute
    C  Procname: [OpenOledbConnection - no proc]
    C  Using Provider SQLNCLI
    C  OpenOledbConnection: MARS property was set successfully.

    C Thu Jan 05 07:25:37 2012
    C  OpenOledbConnection: line 23391. hr: 0x8000ffff Login timeout expired
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 0, sev 0), Login timeout expired
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 2, sev 0), An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 2, sev 0), Named Pipes Provider: Could not open a connection to SQL Server [2].
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 0, sev 0), Invalid connection string attribute
    C  Procname: [OpenOledbConnection - no proc]
    C  failed to establish conn. 0
    B  ***LOG BY2=> sql error 0      performing CON [dbsh#2 @ 1204] [dbsh    1204 ]
    B  ***LOG BY0=> <message text not available> [dbsh#2 @ 1204] [dbsh    1204 ]
    B  ***LOG BY2=> sql error 0      performing CON [dblink#3 @ 431] [dblink  0431 ]
    B  ***LOG BY0=> <message text not available> [dblink#3 @ 431] [dblink  0431 ]
    M  ***LOG R19=> ThInit, db_connect ( DB-Connect 000256) [thxxhead.c   1411]
    M  in_ThErrHandle: 1
    M  *** ERROR => ThInit: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c   10156]

    M  Info for wp 0

    M    stat = 4
    M    reqtype = 1
    M    act_reqtype = -1
    M    rq_info = 0
    M    tid = -1
    M    mode = 255
    M    len = -1
    M    rq_id = 65535
    M    rq_source = 255
    M    last_tid = 0
    M    last_mode = 0
    M    semaphore = 0
    M    act_cs_count = 0
    M    control_flag = 0
    M    int_checked_resource(RFC) = 0
    M    ext_checked_resource(RFC) = 0
    M    int_checked_resource(HTTP) = 0
    M    ext_checked_resource(HTTP) = 0
    M    report = >                                        <
    M    action = 0
    M    tab_name = >                              <
    M    vm = V-1

    M  *****************************************************************************
    M  *
    M  *  LOCATION    SAP-Server sugarland_DE1_11 on host sugarland (wp 0)
    M  *  ERROR       ThInit: db_connect
    M  *
    M  *  TIME        Thu Jan 05 07:25:37 2012
    M  *  RELEASE     700
    M  *  COMPONENT   Taskhandler
    M  *  VERSION     1
    M  *  RC          13
    M  *  MODULE      thxxhead.c
    M  *  LINE        10354
    M  *  COUNTER     1
    M  *
    M  *****************************************************************************

    M  PfStatDisconnect: disconnect statistics
    M  Entering TH_CALLHOOKS
    M  ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP
    M  *** ERROR => ThrSaveSPAFields: no valid thr_wpadm [thxxrun1.c   720]
    M  *** ERROR => ThCallHooks: event handler ThrSaveSPAFields for event BEFORE_DUMP failed [thxxtool3.c  260]
    M  Entering ThSetStatError
    M  ThIErrHandle: do not call ThrCoreInfo (no_core_info=0, in_dynp_env=0)
    M  Entering ThReadDetachMode
    M  call ThrShutDown (1)...
    M  ***LOG Q02=> wp_halt, WPStop (Workproc 0 988) [dpnttool.c   327]
    Please help me on this
    Thanks
    Srikanth

    Hi Amit, 
                 I restarted the system but dispatcher still in same stage.
    Here is the log for dev_w0
    ========================================
    Fri Jan 06 03:41:06 2012
    C  OpenOledbConnection: line 23391. hr: 0x8000ffff Login timeout expired
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 0, sev 0), Login timeout expired
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 2, sev 0), An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 2, sev 0), Named Pipes Provider: Could not open a connection to SQL Server [2].
    C  Procname: [OpenOledbConnection - no proc]
    C  sloledb.cpp [OpenOledbConnection,line 23391]: Error/Message: (err 0, sev 0), Invalid connection string attribute
    C  Procname: [OpenOledbConnection - no proc]
    C  failed to establish conn. 0
    B  ***LOG BY2=> sql error 0      performing CON [dbsh#2 @ 1204] [dbsh    1204 ]
    B  ***LOG BY0=> <message text not available> [dbsh#2 @ 1204] [dbsh    1204 ]
    B  ***LOG BY2=> sql error 0      performing CON [dblink#3 @ 431] [dblink  0431 ]
    B  ***LOG BY0=> <message text not available> [dblink#3 @ 431] [dblink  0431 ]
    M  ***LOG R19=> ThInit, db_connect ( DB-Connect 000256) [thxxhead.c   1411]
    M  in_ThErrHandle: 1
    M  *** ERROR => ThInit: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c   10156]

    M  Info for wp 0

    M    stat = 4
    M    reqtype = 1
    M    act_reqtype = -1
    M    rq_info = 0
    M    tid = -1
    M    mode = 255
    M    len = -1
    M    rq_id = 65535
    M    rq_source = 255
    M    last_tid = 0
    M    last_mode = 0
    M    semaphore = 0
    M    act_cs_count = 0
    M    control_flag = 0
    M    int_checked_resource(RFC) = 0
    M    ext_checked_resource(RFC) = 0
    M    int_checked_resource(HTTP) = 0
    M    ext_checked_resource(HTTP) = 0
    M    report = >                                        <
    M    action = 0
    M    tab_name = >                              <
    M    vm = V-1

    M  *****************************************************************************
    M  *
    M  *  LOCATION    SAP-Server sugarland_DE1_11 on host sugarland (wp 0)
    M  *  ERROR       ThInit: db_connect
    M  *
    M  *  TIME        Fri Jan 06 03:41:06 2012
    M  *  RELEASE     700
    M  *  COMPONENT   Taskhandler
    M  *  VERSION     1
    M  *  RC          13
    M  *  MODULE      thxxhead.c
    M  *  LINE        10354
    M  *  COUNTER     1
    M  *
    M  *****************************************************************************

    M  PfStatDisconnect: disconnect statistics
    M  Entering TH_CALLHOOKS
    M  ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP
    M  *** ERROR => ThrSaveSPAFields: no valid thr_wpadm [thxxrun1.c   720]
    M  *** ERROR => ThCallHooks: event handler ThrSaveSPAFields for event BEFORE_DUMP failed [thxxtool3.c  260]
    M  Entering ThSetStatError
    M  ThIErrHandle: do not call ThrCoreInfo (no_core_info=0, in_dynp_env=0)
    M  Entering ThReadDetachMode
    M  call ThrShutDown (1)...
    M  ***LOG Q02=> wp_halt, WPStop (Workproc 0 3632) [dpnttool.c   327]

  • Bought Snow Leopard in order to download iTunes 11 in order to connect with iOS 7 iPhone, doesn't support iTunes 11

    My problems started when I upgraded my iPhone's software to iOS 7.
    I have moved from Melbourne, VIC to Perth, WA and my PC is in Melbourne. I live with my Girlfriend, and so I mainly use her desktop Mac to connect to iTunes, so you could imagine my surprise when I tried to connect after the fresh update and discovered that my iPhone will no longer connect to iTunes.
    It appears as though you need iTunes 11 to connect with a iOS 7 device, which I was not aware of prior to the update. I then learnt that in order to upgrade to iTunes 11 you need OS X 10.6.8 or later.
    Now I'm not very proficient with apple products (I always had an iRiver and PC) so while trying to find the right product on the mac store, I got seriously frustrated. Every time I thought I found what I was looking for, I would click "View in the mac store" which would not take me to a buy or download link, rather literally just a showcase of the features. I went in circles for over a **** hour trying to navigate the store. Finally I found the page where I could actually buy the software and found out you can't simple just download the update, you have to order it, which took about a month before it arrived.
    I've just installed it ONLY to find it it's 10.6.3! WHICH IS COMPLETELY USELESS TO ME.
    I searched for hours, and was assured that Snow Leopard was exactly what I needed to download the new iTunes. I don't know what to do, I'm not like every other apple customer, I don't have a lot of money, and this phone was a gift so the money I used to buy this update actually sent me broke for 2 weeks. Not to mention it's not even for my own computer, I need to know how to get my money back, and WHAT VERSION I NEED TO PUT MUSIC ON THIS **** PHONE.
    I'm sorry if I've come off like every other appleh8tr. I just hate when I'm forced to buy something that does a lot of things when I only need it for one specific purpose. I've already had to buy a new charger cable, and after all of this, my account is frozen because I can't pay for a $1 app I tried to download (unsuccessfully)
    Please help

    T here is a table you can search that has all the various programs and versions
    http://www.roaringapps.com
    T here are tutorials or were on MacIntouch on what  to do.
    My advice is always and with Lion even more so to do a clean install, leave the old system as is, use a new drive and format it with Lion, and that way you make a clean break and clean out any carried apps and processes, which you can reinstall if Setup Assistant doesn't.
    Expect to do some hardware upgrades as you go along, more RAM, maybe even higher quality, graphic cards, and start wtih a fresh system drive, a new drive for TimeMachine, and a drive to clone your system, clone your user volumes.
    How to clone your system: 
    http://macperformanceguide.com/Mac-HowToClone-backup.html
    http://macperformanceguide.com/Mac-HowToClone.html
    http://www.macupdate.com/app/mac/7032/carbon-copy-cloner
    http://www.macperformanceguide.com/blog/2012/20120711_2-MacPro-internal-clone-ba ckup.html
    Using Cloning as a Backup Strategy
    http://www.bombich.com/ 
    Create an OS X Lion Install disc
    OS X Lion Install to Different Drive 
    How to create an OS X Lion installation disc MacFixIt
    Migration Assistant Update for Mac OS X Snow Leopard
    http://www.apple.com/support/lion/installrecovery/
    http://reviews.cnet.com/8301-13727_7-20080989-263/how-to-create-an-os-x-lion-ins tallation-disc
    http://www.coolestguyplanettech.com/how-to-make-a-bootable-osx-10-8-mountain-lio n-disc-or-drive-from-the-downloaded-mountain-lion-app/

  • "Disk Utility has lost its connection with the Disk Management Tool and cannot continue. Please quit and relaunch Disk Utility."  Trying to format my iomega external HD for use with Mac

    Hi. Trying to connect iomega ext. HD. i have to reformat for Mac. When i plug in & go to Disk Utility,the external shows up and i'm supposed to click "partition". When i do, a box comes up saying ""Disk Utility has lost its connection with the Disk Management Tool and cannot continue. Please quit and relaunch Disk Utility." I quit and relaunched, same results. After googling my question, i came up with this:
    "Disk Utility has lost its connection with the Disk Management Tool and cannot continue. Please quit and relaunch Disk Utility."
    (Quitting and reopening Disk Utility does not help.)
    The following also appears in Console log:
    *** malloc[419]: Deallocation of a pointer not malloced: 0x290a410; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug : for architecture i386 object: ./Applications/iTunes.app/Contents/MacOS/iTunes malformed object (unknown flavor for flavor number 0 in LC_UNIXTHREAD command 27 can't byte swap it)
    Workaround
    Quit Disk Utility.
    From the Finder's Go menu, choose Go to Folder....
    Type the following, then click OK: /Library/Receipts
    Temporarily remove these iTunes receipts from /Library/Receipts (sort the folder alphabetically as a list):
    iTunes.pkg
    iTunes4.pkg
    You can put them on the desktop, for example. Do not remove iTunesX.pkg or iTunes Phone Driver.pkg.
    Open Disk Utility and repair disk permissions again.
    Quit Disk Utility.
    Put the removed iTunes receipts back in /Library/Receipts.
    Note: This issue does not affect Disk Utility's verify or repair disk features.
    All seemed good, for a moment, until, upon going back to Disk Utility after removing itunes4.pkg and putting on desktop (i did not have itunes.pkg to remove) the same thing was happening. When i highlite my iomega ext. on left of page, disk perrmissions is grayed and does not allow me to click on it. Same problem from the start. Can somebody please help me out here? That would soooo awesome. Thanx!

    i'm just scared i will do something wrong on my own and lose my data.
    You shouldn't be scared of that, because you should already have backups. If you don't have backups, then backing up is the first priority.
    Insert the Snow Leopard DVD and restart. When you hear the chime, hold down the C key and keep holding it until the Apple logo appears on the display. You should now see the language selection screen. Select your language, then choose Utilities > Disk Utility from the menu bar. In the Disk Utility window, select the external drive (not the internal). The drive may already have a data partition, in which case there will be another icon below the drive icon. Choose the drive icon, then select the Partition tab. Create a single partition with the default options (GUID partition table, Mac OS X Extended Journaled).
    When the partitioning is done, select the startup volume on your internal drive in the DU window. Select the Restore tab. Drag the icon of the startup volume to the "Source" field. Then drag the icon of the newly-created volume on the external drive to the "Destination" field. Make sure you have this right. Then click the Restore button, and the data on your startup volume will be copied to the external drive.

  • Not able to open infopath form connected with database in sharepoint 2010

    Hi,
     I have created one infopath form which is connected with sql server database.
    Now when i am trying to open this form from sharepoint,its giving me following error:
    Please help to solve this issue.
    Thanks & Regards
    rajni

    Hello,
    If i understood you correctly, you have SP list and there are some records. Now you want to open your infopath form when clicks on add new item in the same list. I am still confuse about "from table 'Account'" this line. Are you saying that you are fetching
    records from SQL table to PS list?
    Anyway, you can modify the existing list form infopath so you could be able to open the infopath form instead of default newform.aspx page. Later you can create a new data connection in that customize form to display data in table format from same list.
    You can follow this video for connection:
    https://www.youtube.com/watch?v=6NySzgGhnaw
    http://office.microsoft.com/en-us/infopath-help/add-a-data-connection-to-a-sharepoint-document-library-or-list-HP010093160.aspx
    Let me know if i misunderstood you
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Problem in connection with sql server

    hi ,
    i am facing problem in connection with ms sql server..please help me out.... i created the database ChandanClient...and there is one table Expense_code_Table...
    i want to insert the data into this table.. i am trying to create a demo example.. here is the code
    package demo;
    import java.sql.*;
    public class getdatabase {
         public static void main(String[] args) {
              Connection con =null;
              int ExpenceCode1=1;
         String ExpenceName1="exp_paper";
         String Organization1="exp_organization";
              try
                   Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
                   con=DriverManager.getConnection("jdbc:microsoft:sqlserver://localhost:1433");
                   Statement st = con.createStatement();
                   String q1="INSERT INTO Expense_code_Table(ExpenceCode,ExpenceName,Organization)VALUES("+ExpenceCode1+",'"+ExpenceName1+"','"+Organization1+"')";
         st.execute(q1);
              }catch(Exception e)
                   System.out.println(e);
              try
                   con.close();
              catch (SQLException e)
                   e.printStackTrace();
    after running program
    it is showing me...
    java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver
    java.lang.NullPointerException
         at demo.getdatabase.main(getdatabase.java:22)
    Exception in thread "main"
    please help me out how to solve this problem...
    thanks in advance...
    bye
    chandan sharma

    Put ur driver class files in the class path...
    regards
    Shanu

Maybe you are looking for

  • Moving data to archive cube

    Hi Experts, We are extracting data from R/3 to BW.We are keeping 2years of Data in DSO1 and moving into Cube(R/3>DSO1>Cube1).we have 2007 and 2008 data in the DSO and Cube.We extracted 1999 to 2006 data in to History DSO  from R/3 and sent into InfoC

  • Process Controlled workflow

    Hello experts, We are trying to use process controlled work flow for SC approval. Approval process will be multiple based on the amount of shopping cart. Somebody has already activated BC set for one step approval in the system. If i want to have  my

  • Settings are not migrated in 1.2.1.32.13

    I've been trying to migrate the settings from 1.2.1.3200 to 1.1.2.32.13 but not all of them are migrating. connections are not migrating, although SQL Formatter and preferences are. H`ave anyone experienced anything like this?? Export/Import did work

  • Usage of Efxclipse Controls like FilterableTreeTable - Best practice?

    Hello all, what is best practice of using efxclipse controls? currently i have linked the needed jars from the eclipse plugins folder (i.e. efxclipse controls jar) to my project to use features like the FilterableTreeTable. But.. this can not be the

  • Losing hyperlinks when linking word documents

    We use RoboHelp version 9.0 Project description We have a Parent project with 7 child projects. Each child project has, on an average, 40 files. The files in each child project are linked to word documents. Every time we have updates to content, we u