How to attach database into .exe windows application Vs 2013 Sql 2014

 i am developing a windows application project using C# ,  sql 2014 and VS 2013.
now i want to run the application in other computers ( visual studio and MS sql server are not installed in
these client computers).
i can run the applications interface bu taking the .exe file inside bin. But i cannot run it properly b/c the
database is not there.
i have tried InstallerShiled and in every time my application can't connect with the database in other pc 

As your question is about application deployment/data access, and not about .NET Framework setup (this forum's topic), I'll suggest two possible forums for you because your issue crosses over two topics.
For application deployment:
https://social.msdn.microsoft.com/Forums/en-US/winformssetup/threads
For database issues:
https://social.msdn.microsoft.com/Forums/en-US/vstsdb/threads
I believe you'll get good suggestions in either forum.

Similar Messages

  • I have a downloaded font file for a school problem on a flash drive and I do not know how to install it into my photoshop application. Need to be walked through this as I am an older user who does not understand any of this stuff.

    I have a downloaded font file for a school problem on a flash drive and I do not know how to install it into my photoshop application. Need to be walked through this as I am an older user who does not understand any of this stuff.

    Fonts are handled by your operating system and installed through the respective System Control panel (Windows) or Fontbook (Mac). On Windows simply type "Fonts" in the search bar in the start menu and when you open the panel/ folder use File --> Add Font. On Mac the procedures are similar, you just need to find the Fontbook app in Applications:Utilities.
    Mylenium

  • How to add images into a java application (not applet)

    Hello,
    I am new in java programming. I would like to know how to add images into a java application (not an applet). If i could get an standard example about how to add a image to a java application, I would apreciated it. Any help will be greatly apreciated.
    Thank you,
    Oscar

    Your' better off looking in the java 2d forum.
    package images;
    import java.awt.*;
    import java.awt.image.*;
    import java.io.FileInputStream;
    import javax.imageio.ImageIO;
    import javax.swing.*;
    /** * LogoImage is a class that is used to load images into the program */
    public class LogoImage extends JPanel {
         private BufferedImage image;
         private int factor = 1; /** Creates a new instance of ImagePanel */
         public LogoImage() {
              this(new Dimension(600, 50));
         public LogoImage(Dimension sz) {
              //setBackground(Color.green);      
              setPreferredSize(sz);
         public void setImage(BufferedImage im) {
              image = im;
              if (im != null) {
                   setPreferredSize(
                        new Dimension(image.getWidth(), image.getHeight()));
              } else {
                   setPreferredSize(new Dimension(200, 200));
         public void setImageSizeFactor(int factor) {
              this.factor = factor;
         public void paintComponent(Graphics g) {
              super.paintComponent(g);
              //paint background 
              Graphics2D g2D = (Graphics2D) g;
              //Draw image at its natural size first. 
              if (image != null) {
                   g2D.drawImage(image, null, 0, 0);
         public static LogoImage createImage(String filename) { /* Stream the logo gif file into an image object */
              LogoImage logoImage = new LogoImage();
              BufferedImage image;
              try {
                   FileInputStream fileInput =
                        new FileInputStream("images/" + filename);
                   image = ImageIO.read(fileInput);
                   logoImage =
                        new LogoImage(
                             new Dimension(image.getWidth(), image.getHeight()));
                   fileInput.close();
                   logoImage.setImage(image);
              } catch (Exception e) {
                   System.err.println(e);
              return logoImage;
         public static void main(String[] args) {
              JFrame jf = new JFrame("testImage");
              Container cp = jf.getContentPane();
              cp.add(LogoImage.createImage("logo.gif"), BorderLayout.CENTER);
              jf.setVisible(true);
              jf.pack();
    }Now you can use this class anywhere in your pgram to add a JPanel

  • How to hide a cmd.exe window while my app run

    When i start my application whit .BAT, console window show's too.
    How can i hide this console window?

    I would say use a native installer if possible. Install4J is a very reasonable price, $400 or something and works on windows, mac osx and solaris/linux, provides native launchers on all platforms and can do quite a bit more than that. Very small price to pay if you are working with commercial apps or have a little money to spare and want your apps looking good.
    VAInstall I think is a free opensource that does alright, a bit more complex to use, but works. I think it has an .exe launcher on windows.

  • How to use session object in windows application

    hi, I am programming in jdeveloper. i need to know that while i m making a web application i can use a session object for the particular session. now i m builiding a windows application for my final semester and i need to insert product id and then it should go to another frame and there it can store multiple information for a particular product id.
    e.g
    product id : 001
    next frame.
    filter name.
    filter position.
    when these are added then it should be able to add more filters for the same product id and i dont understand how to do that.
    Please let me know as i am lost and dont know how to proceed further. if some body wants to have a look on the codes he is most welcome.
    Waiting for an answer
    thank you

    Hi,
    in Swing applications you don't have a session object to store data. You can use a helper class though to act as a temporary memory. Just create a static class that has a hashtable method to add / read / remove data
    Frank

  • How to attach database in sql server 2005 restricted mode

    hi i have a database i want once i have attach database in sql server 2005, anyone cannot do detach, script and delete my database except myself. I mean i want to secure my database to avoid unauthorized persons access
    how it is possible in sql server 2005 express management studio

    There are restrictions for normal Logins but a administrator in SQL server can always detach,script and delete your database.
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
    My TechNet Wiki Articles

  • Walkthrough: Displaying Data from Oracle database in a Windows application.

    This article is intended to illustrate one of the most common business scenarios such as displaying data from Oracle database on a form in a Windows application using DataSet objects and .NET Framework Data Provider for Oracle.
    You can read more at http://www.c-sharpcorner.com/UploadFile/john_charles/WalkthroughDisplayingDataOracleWindowsapplication05242007142059PM/WalkthroughDisplayingDataOracleWindowsapplication.aspx
    Enjoy my article.

    hi,
    this is the code :
    public class TableBean {
    Connection con ;
    Statement ps;
    ResultSet rs;
    private List perInfoAll = new ArrayList();
    public List getperInfoAll() {
    int i = 0;
    try
    con = DriverManager.getConnection("url","root","root");
    ps = con.createStatement();
    rs = ps.executeQuery("select * from user");
    while(rs.next()){
    System.out.println(rs.getString(1));
    perInfoAll.add(i,new perInfo(rs.getString(1),rs.getString(2),rs.getString(3)));
    i++;
    catch (Exception e)
    System.out.println("Error Data : " + e.getMessage());
    return perInfoAll;
    public class perInfo {
    String uname;
    String firstName;
    String lastName;
    public perInfo(String firstName,String lastName,String uname) {
    this.uname = uname;
    this.firstName = firstName;
    this.lastName = lastName;
    public String getUname() {
    return uname;
    public String getFirstName() {
    return firstName;
    public String getLastName() {
    return lastName;
    ADF table code:
    <af:table value="#{tableBean.perInfoAll}" var="row"
    binding="#{backing_Display.table1}" id="table1">
    <af:column sortable="false" headerText=""
    align="start">
    <af:outputText value="#{row.firstName"/>//---> Jdeveloper 11g doesn't allow me to use this.. it says firstName is an unknown property..
    </af:column>
    </af:table>
    Please tell me is this the way to do it.. or is it a must to use the DataCollection from the data controls panel...
    Thanks...

  • Question on Quorum : Windows Server 2012 R2 + SQL 2014 AlwaysOn AG

    OS on all nodes : Windows Server 2012 R2
    SQL on all nodes : SQL Server 2014 CU2
    2 cluster nodes in primary data center and AlwaysOn AG doing Sync Transfer between these nodes with auto failover.
    2 cluster nodes in DR data center(Different subnet) and AlwaysON AG doing an Async Transfer between primary replica and these nodes with manual failover.
    As this is a multi sub-net cluster we are giving DR nodes 0 vote. 2 nodes on primary DC has votes and a file share on the primary DC has a vote.
    If the primary DC is gone,then should we re-assign node votes to the 2 nodes in DR site and again manually configure a file share witness and give it a vote?
    Whats the best strategy here? Any recommendation is highly appreciated.
    Thank you,

    Anup,
    Think if we have network issues between Primary DC and DR DC. DR node might think…Hey, I’m the only one running now. I can take all the resources. We do not want nodes in the secondary site to contribute to a decision to take the cluster offline
    when there is nothing wrong with the primary site. Do you mean to say Dynamic Quorum is smart enough to handle this situation?
    Is it smart enough on it's own? No. That's why someone has to determine which site they want to stay up.
    If you're using dynamic quorum, a new property was introduced called "LowerQuorumPriorityNodeID" which is set at the cluster level. Give it the node of one and only one of the secondary site servers. Set a fileshare witness (if possible) as the
    odd vote and make sure both sites can see it equally well. Set this property on the cluster for a node on the secondary site.
    http://technet.microsoft.com/en-us/library/dn265972.aspx#BKMK_TieBreak
    Assume that the fileshare goes down and you have 2 nodes at the local site and 2 nodes at the DR site. Suddenly, communicates between the two are severed. If you have dynamic quorum set and the property I mentioned above, the secondary site will shut down
    and the local site will stay up as the secondary site is set for a lower precedence.
    Please note, the only reason I brought this up was because you're on Windows Server 2012R2 as this is when it was first introduced.
    -Sean
    Sean Gallardy | Blog | Microsoft Certified Master

  • Workflow Manager Configuration Issue Windows Server 2012 R2 / SQL 2014

    Hello All,
    Environment:  SharePoint 2013 Enterprise with SP1
    Farm consists of
     2 App Server, 2 Web Server and 2 SQL Servers all the server have Windows 2012 R2 
    OS .  The SQL backend is SQL Server 2014
    Installed Workflow manager on the Web server, the configuration ran fine without any errors. Trying to browse the workflow management site via IIS Manager encountered Certificate Error clicked Continue to this website which gives a HTTP 403 Forbidden and
    following detail message
    This error (HTTP 403 Forbidden) means that Internet Explorer was able to connect to the website, but it does not have permission to view the webpage.
    Checked the web site Workflow Management Site in the IIS manager which has only one folder bin . I was not able to submit the Screenshot
    I have installed the latest patch for the Workflow manager and the Service Bus
    Question I have
    Should there be more folder under the Workflow Management Site.
    Why is the Web site not showing the web page
    Is workflow manager supported for Windows Server 2012 R2 and SQL 2014
    Thanks
    Dhanraj

    Hi Dhanraj,
    I captured the screenshot from my IIS Manager on workflow server. There is only bin folder under Workflow Management site
    If I browser workflow host uri from IIS Manager
    https://localhost:12290, I received certification error, and I chose the continue to this website, it returned me as follow:
    From the link: http://support.microsoft.com/kb/2902007/en-us It is supported on Windows Server 2012 r2 if you have install latest update.
    Here is an article which talks about error:
    http://www.sp2013blog.com/Lists/Posts/Post.aspx?ID=36
    In addition, here is the reference for troubleshooting workflow manager 1.0 management:
    http://msdn.microsoft.com/en-us/library/jj193529(v=azure.10).aspx#AnalyzingWorkflowManagementLogs
    You could also open SharePoint Designer 2013 and see if you could create a workflow on platform 2013.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • How deploy existing database in my windows phone 7.8 app?

    I'm trying to add datas on my database in my app when is running. but this is a lot of datas and the app crashes for out of memory exception and now I trying to create the same database separately and add it by default
    already created instead add data in the app. But I'm thinking about how can I access to it i mean how place it in the isolated storage?

    Create the database in your app project and place it in isolated storage at first startup.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with
    undefined objects and unknown namespaces.
    I've gotten this to work with isostorespy program for pre-loading databases:
    https://msdn.microsoft.com/en-us/library/windows/apps/hh286411(v=vs.105).aspx
    I am trying to include the database with my project as content though as the link above says. It may help you out.
    Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth. - "Sherlock holmes" "speak softly and carry a big stick" - theodore roosevelt. Fear leads to anger, anger leads to hate, hate leads to suffering
    - Yoda. Blog - http://www.computerprofessions.co.nr

  • How to setup database user for windows NT SSO

    Hi,
    We have a scenario where we have to setup a database user so that SSO can be worked in windows environment.
    We have oracle 10g installed on UNIX server. Now we want to setup a autosys user which will also be a winows user for eg by the name kumaral and domain (which is Logon option in windows) will be FM, so eventually user name will be FM\kumaral. Autosys will be on windows machine and we have installed oracle client on this machine.
    On oracle database we have created two user by following syntax:
    (1) CREATE USER "OPS$FM\KUMARAL" IDENTIFIED EXTERNALLY;
    (2) CREATE USER "OPS$FM\kumaral" IDENTIFIED EXTERNALLY;
    Also we have provided connect grant to these users.
    GRANT CONNECT TO "OPS$FM\KUMARAL".
    GRANT CONNECT TO "OPS$FM\kumaral".
    I am login in windows through FM\kumaral user, but we are not able to connect to oracle through this user, we are trying to connect to oracle from below mentioned query:
    sqlplus /
    but we are not able to connect.
    Can someone please help me on this?
    Thanks in Advance.
    Amit.

    Check MOS note :
    WIN: Setup O/S Authentication [ID 60634.1]
    Regards
    Rajesh

  • How to convert databases into schemas

    Hi
    i have got 3 small size databases P1, P2 and P3 on 3 different servers.
    I have got another database SUPER in a different server.
    Now I want the 3 databases to incorporated into SUPER as schemas.
    Thus after transfer, SUPER will have 3 additional schemas P1, P2, P3 with the
    corresponding users and data.
    Please reply.
    Thanks.

    Hi,
    Assuming there is only one owner of all objects in each of the small databases, this is my suggestion.
    1. export all tables of the in each of the small databases...
    you will generate 3 *.dmp files for example:
    p1.dmp,p2.dmp,p3.dmp
    2. create 3 users in the SUPER database as P1,P2,P3
    3. Import the three dump files into the SUPER database similar to the ff:
    a. imp username/password@SUPER file=p1.dmp fromuser=p1_owner touser=P1
    b. imp username/password@SUPER file=p2.dmp fromuser=p2_owner touser= P2
    c. imp username/password@SUPER file=p3.dmp fromuser=p3_owner touser= P3
    Hope this solves your problem..
    Regards,
    Mike
    Message was edited by:
    Mike

  • Find/replace window in Mac OS - how to attach to main document window?

    At work I use Windows and the find/replace window is part of the main document window. At home, I use Mac OS and the find/replace window is a separate floating window which is annoying because it means I'm constantly dragging it out of my way...is there a way to attach it to the the main document window on Mac ?

    It works!  Thank you.  The strange thing is, I already had a check mark on it, but I unchecked it and then rechecked it and it worked.
    BTW, I've not visited this forum for quite a while.  It was difficult to find my way to the InDesign Discussions.  There's so much stuff in between logging on to Adobe Forums and getting to this location.  I consider the changes a huge step backward.  I realize that you're probably not involved in it, but I hope someone who is sees this feedback about the forum layout.  Fortunately, it's only a one-time problem.  I've made a new bookmark for this forum.

  • How do I export into a windows media file ?

    I've been working on a project that requires both a quicktime and a windows media ( and /or real player) file to be made, so as to post on a website. I've got the quicktime file made, but what do I choose for a windows media file? - what options should I choose in export to make this happen?
    I'm on FCP 5.1
    and am using quicktime 7
    thanks!

    You need Flip4mac (the studio version ~$49US) to export windows media.
    It does a great job.
    good luck.
    x
    society of the dilletanti   Mac OS X (10.4.5)   T plus three and counting ...

  • How to attach XSL into XML generated by XMLEncoder?

    Hi everyone,
    I used XMLEncoder to generate an XML file. But XMLEncoder does not provide anyway to attach XSL style sheet before generating the XML. The only way I can attach XSL style sheet is to manually edit the XML file, which I do not want to do. Is there anyway to insert the XSL sytle sheet tag using Java code? Any suggestions? thanks

    I am not quite sure that this would work, but in theory (I have never tested it, and I am not a java-guru) it just might work. I havent worked a lot with piped streams either, so there might be a flaw there that I dont know about.
    import java.io.*;
    import javax.xml.transform.*;
    import javax.xml.transform.stream.*;
    // Making the pipes
    PipedInputStream inpipe = new PipedInputStream();
    PipedOutputStream outpipe = new PipedOutputStream( inpipe );
    // Redirecting XML encoding to pipe
    new XMLEncoder( outpipe );
    // Making a transformer with xsl schema
    TransformerFactory tFactory = TransformerFactory.newInstance();
    StreamSource xslsource = new StreamSource( "xslsource.xsl")
    Transformer transformer = tFactory.newTransformer( xslsource );
    // Transforming from pipe to file
    StreamSource xmlsource = new StreamSource( inpipe );
    File xmlfile = new File( "xmlfile.xml" )
    StreamResult xmlresult = new StreamResult( xmlfile );
    transformer.transform( xmlsource, xmlresult );
    ...Think about it or try it out...
    Good luck!
    /Richard

Maybe you are looking for

  • Help!Apache compiling with gcc in Solaris 10

    Greetings I am having problems with Apache 1.3. When I am running the script ./src/Configure my output is: #./Configure Using config file: Configuration Creating Makefile + configured for Solaris 2100 platform + setting C pre-processor to gcc -E + us

  • Laserjet 3050 with MacBook Pro

    I saw another support message say that the HP laserjet 3050 is no longer supported on the Mac. Is this true? After a recent Mac update I have been unable to print. The printer dialog just says "Waiting for printer to become available." And it never b

  • 2 levels of STO b/w 3 plants

    Dear consultants, My client has 3 plants (0001 as Sales Plant, 0002 as distribution center, 0003 as production plant) And we need to implement the following scenario: 1) In sales plant will create sales orders and run MRP to create purchase requisiti

  • How come I can't play videos anymore?

    I'm running iPhoto v 7.1.5; OS X 10.9.1, but I can't play videos anymore? How is this possible?  What do I need to do? Please help.

  • Anglican iCal calendar

    I have been trying to search for an iCal calendar for any Anglican church holidays, but coming up empty.  Was hoping someone might point me in the right direction. Thanks