C# attaching SQL Database table to application for publish.

Alright i finished app but i realised because entire app work on SQL Database table with @"Data Source=localhost\SQLExpress;Initial Catalog=DataPodataka2;Integrated Security=True" connection string like this,it won't work on client computer?...Any
suggestion?

This is a credential issue or the database isn't allowing SQL connections.  I would first start and make sure you can connect to database using SQL Server Management Studio and perform a simply query of database to make sure everything is working properly. 
You can check also to make sure the SQL Service is running.  Then repeat with VS application to make sure that starting SSMS didn't fix the issue.Using Integrated Security = True indicates that you are using a Windows Credential for the database. 
So you have to make sure that the SQL Database is also setup to use windows Credentials and the login account your are using for VS application is part of the SQL Server Group Account for windows authentication.
jdweng

Similar Messages

  • Finding source database table/column name for a column in a view

    Hi i need to be able to identify the original database table/column name for a column in a view.
    e.g. say i have a view like this
    create v1 as select a.name fname, b.name bname, c.name cname,......
    from u1.names a, u2.names b. u3.names c
    where .....
    Now I want to find out that the database table/column name for the fname, bname and cname columns in the view v1, which in this instance is u1.name.name, u2.names.name, u3.names.name.
    But i need to be able to do it for any view. Short of parsing the SQL is there an easy way of doing this?
    Now obviusly I can't do this for virtual columns but I will know my column is not virtual as it has an index on it.

    But i need to be able to do it for any view. Short of
    parsing the SQL is there an easy way of doing this?No, parsing the SQL is the only way. Good luck it is not something I would want to attempt.

  • How to query a sql database table from webdynpro?

    Hi All,
    Can someone tell me the steps involved in accessing a sql server database table and retrieving the record set from a webdynpro application.
    Thanks in advance.
    Best regards,
    Divya

    Hello Divya,
    I would recommend you to read "Java Persistence" section in Development manual describing various options for database integration http://help.sap.com/saphelp_nw04/helpdata/en/61/fdbc3d16f39e33e10000000a11405a/frameset.htm
    Tutorials
    http://help.sap.com/saphelp_nw04/helpdata/en/46/ddc4705e911f43a611840d8decb5f6/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/91/9c2226df76f64fa7783dcaa4534395/frameset.htm
    Web serices
    http://help.sap.com/saphelp_nw04/helpdata/en/d6/f9bc3d52f39d33e10000000a11405a/frameset.htm
    EJB
    http://help.sap.com/saphelp_nw04/helpdata/en/19/f9bc3d8af79633e10000000a11405a/frameset.htm
    Best regards, Maksim Rashchynski.

  • Connecting to SQL database via an application deployed in Tomcat

    Hi,
    When the SQL database is restarted, the connection of the web application gets lost and the tomcat has to be restarted manually in order to reset connection with the database. Please let me know if there is a way by which the connection can be re-establised without manually restarting the tomcat.
    Thanks and regards
    Lipi

    Hi Arut,
    Below is the paragraph that is extracted from the
    book:
    “When connecting to a SQL Server database you cannot use Windows authentication or the SharePoint Server single sign-on service, named Secure Store Service(SSS). You are limited to using a SQL Server authentication user name and password, which are sent
    over the network in plain text.”
    So Windows authentication users are not supported to connect to SQL Server databases in SharePoint Designer.
    As the error still occurs when you connect to SQL server with SQL server authentication users, I recommend to check if the SQL Server authentication method is set to be SQL Server and Windows Authentication mode and please make sure that the account has
    permission to access SQL Server databases.
    Best regards,
    Victoria
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Sender JDBC Adapter with Mutiple SQL Database Tables.

    Hi All,
    My requirement is SQL->PI7.0->BI.
    I have a plan to go with the senario like this : JDBC sender->SAPPI->ABAP Proxy.
    And also I need fetch the data from more than 10 data tables with different database tables with key fields.
    Could you please suggest me, How to extract all tables data to SAP PI System. Either need to go with Stored procedures or Any Join conditions or each table like as one Interface.
    Please provide me your suggestions.
    Regards,
    Chandra

    Hi ,
    Chandra ,
    Best way is Database Views
    Involve a Database guy in your scenario : Tell DBA the fields required , tell DBA the PrimaryKey and ForeignKey Relation Between All your 10 Tables.
    DBA will create a View for you on 10 Tables.
    So in Ur SELECT Query . you can write simply
    Select * from <ViewName>;
    And One more thing to Tell DBA to create a UPDATABLE VIEW not only READ-ONLY View.
    By this way you can way you can Update VIEW  also in UPDATE QUERY of sender Adapter...
    Regards
    PS

  • How to access the database tables from application

    Hii all,
    The information in webcenter content, such as meta data fields, users, security groups etc are stored in
    database tables like-      Revisions, SecurityGroups, Users, DocType etc..
    Can we access this tables from an adf application or any webcenter application..
    If yes, then what can be the approach for that..??
    Another things, how can we create custom tables just like the predefined tables...??
    Any information regarding this.??
    Thanks

    Can we access this tables from an adf application or any webcenter application.Yes, you can - like to any other existing database. But I would strongly discourage you from any, but read-only access, or you can easily end up with inconsistent data.
    If yes, then what can be the approach for that..??Just create a database connection and define in your model what tables you want to access.
    Another things, how can we create custom tables just like the predefined tables...
    Actually, WebCenter Content provides functionality of creation of custom tables (see http://docs.oracle.com/cd/E23943_01/doc.1111/e10978/c04_metadata.htm#autoId2 ) and these are probably the only good candidates for read-write access. See further in the manual what use cases are supported. Of course, you could do this even externally, but rather than Data Definition Language, I'd use services (if there are some).

  • How to copy sql database tables to oracle database

    hii everybody,
    i have 50 sql databse tables and i want to copy these tables into oracle database,how can i achive this?.Any help highly appreciated.
    thanks.

    Hi,
    You haven't said if this is a one-off copy of the data or if it is comething you want to do on a regular basis.
    If it is a one-off move of the data then you could use the SQL*Developer migration workbench, see here for more details -
    SQL*Developer main page -
    http://www.oracle.com/technetwork/developer-tools/sql-developer/overview/index.html
    Database Migration technology -
    http://www.oracle.com/technetwork/database/migration/index-084442.html
    If it is something you want to do on a regular basis then you could use a gateway to make a connection between SQL*Server and Oracle and then copy or select from the remote tables.
    The following page has more detail -
    http://www.oracle.com/technetwork/database/gateways/index.html
    and this note if you have access to My Oracle Support -
    Master Note for Oracle Gateway Products (Doc ID 1083703.1)
    You could also use GoldenGate which allows real-time replication between Oracle and non-Oracle databases -
    http://www.oracle.com/technetwork/middleware/goldengate/overview/index.html
    Regards,
    Mike

  • How to connect and query the sql database in mobile application

    Hello,
    Can any one say how to connect the sql database from the j2me application.
    I have got some info that only through servlet or jsp only we can connect the database and from their we should get the info or query in mobile application.
    Is it true? and can i have any sample codes or white paper or guildlines.
    It would be more useful form my project.
    Thanks in advance.
    regards,
    sara

    Hi David,
    According to your description, when you add Windows Azure Mobile Services to a Window Phone 8 app, then store app data in the new mobile service. I recommend you post the related question on the Windows Azure Mobile Services Forums at
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=azuremobile .It is appropriate and more experts will assist you.
    In addition, there are the details about creating a Windows Phone app connected to your mobile service.
    http://www.windowsazure.com/en-us/develop/mobile/tutorials/get-started-wp8/
    http://www.windowsazure.com/en-us/develop/mobile/tutorials/get-started-with-data-wp8/
    Thanks,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Database tables holding details for a non - released transport request

    Dear All,
    We are implementing SAP ECC 6.0 u2013 ABAP stack, on IBM iSeries / System i, i5/OS V5R4 -
    SAP kernel release 7.00, kernel patch number 173
    Could someone please guide me to the database tables holding the details for a non u2013 released transport request.
    The problem is the following :
    We encountered some data corruption in the database of our development system, so we did a restore from the previous day's backup (RSTLIB  command) for the database library : R3DEVDATA, without restoring the /usr/sap/trans  directory, then we did an APYJRNCHG command for the journal receiver spanning from the previous day's backup until the corruption time (remote journal on a remote system.)
    We are now facing the following conflict :
    One of our programmers is now un-capable of updating an ABAP program, which he previously added in a transport request, which he did not release.
    ( This was done during the day of the data corruption)
    When the programmer is trying to update the ABAP program through the ABAP workbench, he receives the error :
    'Request lock on non u2013 existent task / request DEVK921426'
    No details for the transport request DEVK921426 exist in either of the two directories :
    /usr/sap/trans/data   , /usr/sap/trans/cofiles
    The way I see to solve this conflict (eliminate this lock) is to delete the different entries related to the un-released transport request from the database tables.
    Any clues would be highly appreciated.
    Thank you in advance for your cooperation.
    Best regards.
    Reda Khalifa

    Dear Volker,
    Thank you very much for your interest.
    The transport request of interest did not appear in transaction code SE03
    Eliminating the record from table TLOCK indeed did solve the problem.
    Thank you again.
    Best regards.
    Reda Khalifa

  • Delete L.H.S spaces from field in database table but not for Report

    Dear Experts
    I m facing a problem...actaually i have replaced 999 by blank in a field of database table record.
    Like :     999 abcde
                 999999 hjklmn
                 9999 klplmj
                 99999 hjsfhh
    I have replaced 9 by blank. and using CONDENSE statement i have avoid the left hand side spaces of 9 in the database table.
    Means the data is updated in database table following below using Condense.
    Like:     abcde
                hjklmn
                klplmj
                hjsfhh
    Now,  the problem is that these spaces is showing in the Report. The left hand side spaces is not deleting from the Report. But these spaces is not showing in the databse table.
    Plz tell me wat is the reason and wat is the solution to avoid these space from the Report.
    Note: That field is Character Field.   KNA1-STRAS
    Thanks and Regards,
    Swapnika

    Hello
    Try to use
    SHIFT c LEFT  DELETING LEADING SPACE.
    instead of
    CONDENSE...

  • How to create a user in SQL database table for FBA in SharePoint 2013

    Hi,
    I am trying to configure Form Based Authentication on my SharePoint Dev machine. The purpose is to add an external user to a table (using a registration page).The provider used is SQLMembershipProvider.The dev machine is also configured as domain controller
    so all users created locally are AD users.
    Reference articles that i checked are
    Either adding users to the database as a windows user (i.e. under users section in the database). But on my machine, windows user would be same as adding a AD user.
    Or by creating a dedicated IIS site for .Net users (after creating a FBA DB using aspnet_sql tool). Right now i have implemented FBA using this method.
    Is it possible to add user details in a table of choice and then access that user using people picker? (without any third party tools).
    Thanks,
    Thomas

    Hi,
    We can use CreateUserWizard control to achieve it.
    Here is a blog for your reference:
    Adding Users With SharePoint Forms Based Authentication
    http://psterpe.wordpress.com/2009/05/24/adding-users-with-sharepoint-forms-based-authentication/
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Pl/sql Clob code not works for database table but works for collection!

    Dear friends
    I modified pl/sql code to insert large data for clob column ın ORACLE APEX , It works for collection (I modified it to work for both)
    the modified code is blod
    declare
    aClob1 clob := empty_clob;
    aClob2 clob ;
    begin
    dbms_lob.createtemporary( aClob1, false, dbms_lob.SESSION );
    for i in 1..wwv_flow.g_f01.count loop
    dbms_lob.writeappend(aClob1,length(wwv_flow.g_f01(i)),wwv_flow.g_f01(i));
    end loop;
         apex_collection.create_or_truncate_collection(p_collection_name => 'CLOB_CONTENT');
         apex_collection.add_member(p_collection_name => 'CLOB_CONTENT',p_clob001 => aClob1);
         htmldb_application.g_unrecoverable_error := TRUE;
    select cc into aClob2 from tt where id = 21 for update ;
    dbms_lob.write(aClob2,Length(aClob1),1,aClob1); commit;
    end;
    but the charcters more than 8100 not be saved to database clob column !
    regards
    Edited by: Siyavus on Jan 30, 2009 5:26 PM
    Edited by: Siyavus on Jan 30, 2009 5:29 PM

    Dear Thomas
    dbms_lob.write(aClob2,*dbms_lob.getlength*(aClob1),1,aClob1); commit;
    I tried it ( dbms_lob.getlength(aClob1) ) but the result is the same
    regards

  • How to attach sql database file to creating .exe setup in c#

    I create a Setup file and put data folder, in data folder i put database file , but the problem is i have to mannualy attach database file in sql server 2005. I have to automatically attach database file when installing setup file.

    Hi
    bhagvad,
    Welcome to MSDN Forums!
    We can implement auto attach database just use the connection string following.
    1)      
    Add a folder named ”DB” to the project, and copy the database file into it after you detach it from your sql server.
    2)      
    Change your connection string like this:
        <connectionStrings>
            <add name="WindowsFormsApplication1.Properties.Settings.BabakConnectionString"
                connectionString="Data Source=.;AttachDbFilename=|DataDirectory|\DB\Babak.mdf;Initial Catalog=test;Integrated Security=True"
                providerName="System.Data.SqlClient" />
        </connectionStrings>
    3)      
    After these, the database file will auto attach to the sql server when you run your application, and the database name is “test”, you can open the sql server
    management studio to find it.
    In addition, you can find the connection in the app.config file through the solution explorer in vs2010. And you also can find this file under your project. With
    these information, you can find it and modify it.
    If there’s anything unclear, please feel free to let me know.
    Best wishes,
    Mike
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually
    answer your question. This can be beneficial to the others community members reading the thread.
    when i try this i have an error from the computer. in my computer just microsoft server 2005 installed. and i need to setup my project. 
    <add name="TelekomEthernetApp.Properties.Settings.TelekomEthernetConnectionString" 
           connectionString="Data Source=.;AttachDbFilename=|DataDirectory|\DB\TelekomEthernet.mdf;Initial Catalog=test;Integrated security=true" providerName="System.Data.SqlClient"/>
    what is the problem?
    http://img31.imageshack.us/img31/2305/asdet.png

  • Attaching Second Pool to Trusted Application for Cisco VCS

    I have completed the Cisco VCS to Lync 2013 integration found here but needless to say, the guide
    is very much lacking in clarity on the Lync end and doesn't take larger deployments into consideration; or I'm just missing something.
    Most of the document thinks of Lync as a single pool entity but in my case, we have two pools on campus.  My question is as follows:
    Can I use DNS to trick the Lync topology builder into thinking there is an alternate device that can be assigned to a trusted application?

    Integration and communication between Lync 2013 and Cisco Voice Communication Server, in conjunction with Cisco Tandberg room units.  
    I wasn't aware of the change taking place site wide and assumed that since the application lists and only accepts my Pool1 as a next hop that the static line between the two could only travel server to server (pool).
    Video initiation works from Pool1 to Cisco and vice versa.  Video integration between Pool2 and Cisco will only initialize if started by the Cisco endpoint dialing said Lync client.  Presence information (provided by Jabber) works for users in
    Lync Pool1 but not in Pool2.

  • SQL Mode Command to update database table

    Hi All,
    I have a couple of scenarios which I need help with:
    1)
    - I have a sql query which pulls two columns lets say Equipment and a val1 from a sql database table displayed in a grid.
    - Once the user clicks on a record I have two text boxes which get the value of the selected records on the same page (equipment, val1).
    - I then have an update button, wherein they can change the value of the val1 column.
    I have created a sql query of mode command with an update statement. My question is, how do I execute this update query from the webpage, I know how to assign the parameters so the get passed to the update query I just am not sure how to kick off the update query. Do I have to have it as part of an applet to even refer to it from within my webpage? If so, don't I have to assign an applet a display template? (this command query does not have an output). Please help...
    Thanks,
    Mahwish

    I have done scenario 2, but its not easy.  This is how I did it.
    Instead of using the iGrid applet, I used an XSLT stylesheet to create a "grid" of input boxes in HTML that allow direct editing of the value.  At the end of each row you had an "update" button that passed the value of the updated box, and the corresponding information you need for icommand update.  You can either display the information you need for the update query in the "grid"  or you can use hidden form objects to store the information.   Indexing is pretty easy, you just name the form elements by positions  (eg. frmTxtR1C1)  for example.
    The solution is not for the faint of heart, takes some development time and a fair amount of XSLT knowledge, but if you need this functionality repeatedly in your application, it works great.  It looks really slick too because you can do things like change the color of your form after you have updated it so the user knows there has been a change.    Of course there are always multiple ways to attack a problem I love hearing other suggestions.

Maybe you are looking for