Any C# WinApplication with Install Sheild Building to .exe with SqlServer DatabaseHow do I calculate someone's age in C#?Calculate relative time in C#What is the difference between String and string in C#?Hidden Features of C#?Calling the base constructor in C#Cast int to enum in C#How do I enumerate an enum in C#?How do I create an Excel (.XLS and .XLSX) file in C# without installing Microsoft Office?Why is Dictionary preferred over Hashtable in C#?how to publish c# window application installer

Is differentiation as a map discontinuous?

Why is a road bike faster than a city bike with the same effort? & how much faster it can be?

What benefits does the Power Word Kill spell have?

Do we know the situation in Britain before Sealion (summer 1940)?

Fuel sender works when outside of tank, but not when in tank

What secular civic space would pioneers build for small frontier towns?

OSM Thunderforest API keys in QGIS3

Why did the Soviet Union not "grant" Inner Mongolia to Mongolia after World War Two?

Is the mass of paint relevant in rocket design?

Excel Solver linear programming - Is it possible to use average of values as a constraint without #DIV/0! errors or sacrificing linearity?

What is the difference between an astronaut in the ISS and a freediver in perfect neutral buoyancy?

Late 1970's and 6502 chip facilities for operating systems

Quick Yajilin Puzzles: Scatter and Gather

What exactly did this mechanic sabotage on the American Airlines 737, and how dangerous was it?

How to create fractional SI units (SI...sqrts)?

Examples of "unsuccessful" theories with afterlives

How to deal with a Homophobic PC

Is there any relation/leak between two sections of LM358 op-amp?

Can I take new (still in their boxes) PC parts in my checked in luggage?

Is it possible to encode a message in such a way that can only be read by someone or something capable of seeing into the very near future?

Does "as soon as" imply simultaneity?

Is it impolite to ask for halal food when traveling to and in Thailand?

what should be done first, handling missing data or dealing with data types?

Which place in our solar system is the most fit for terraforming?



Any C# WinApplication with Install Sheild Building to .exe with SqlServer Database


How do I calculate someone's age in C#?Calculate relative time in C#What is the difference between String and string in C#?Hidden Features of C#?Calling the base constructor in C#Cast int to enum in C#How do I enumerate an enum in C#?How do I create an Excel (.XLS and .XLSX) file in C# without installing Microsoft Office?Why is Dictionary preferred over Hashtable in C#?how to publish c# window application installer






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















i have compile the application to Setup.exe with Install Sheild in Visual studio 2015 with SQL server 2012. The application work on my computer but when i transfer Setup.exe it to clients computer it didnt work generate problem with client computer.



Need A way to handle the application with



  1. I have attached the database to SQLSERVER Managment studio.



  2. I have
    change configuration File Data Source=""to client computer Address
    but still not working.



    public static string GetConnection()





    return ConfigurationManager.ConnectionStrings["MyCon"].ConnectionString;


    SqlConnection con = new SqlConnection(GetConnection());
    public Form1()

    InitializeComponent();


    private void button1_Click(object sender, EventArgs e)


    con.Open();
    SqlCommand cmd = new SqlCommand("Select EmpID from RegForm",con);
    int i= Convert.ToInt32(cmd.ExecuteScalar());
    if(i!=0)

    MessageBox.Show("value type is " + i);
    con.Close();
    MessageBox.Show("Connection is closed ");







I just want that this compile application Start working with setting path in configuration DataSource Attribute nd the programming start working with Active Database










share|improve this question





















  • 1





    That doesn't look like valid sql.

    – LarsTech
    Mar 28 at 17:44











  • Lars Tech :the connection string is in App.config file let me share it with you. <connectionStrings> <add name="MyCon" connectionString="Data Source=RISESTARSQLEXPRESS;Initial Catalog=Z-JanPayroll;Integrated Security=True" providerName="System.Data.SqlClient" /> </connectionStrings>

    – Ibrar Ahmad
    Mar 28 at 17:46












  • Doesn't change my comment. Look at your query. Copy and paste your code next time.

    – LarsTech
    Mar 28 at 17:53











  • change the query; on my machine it work fine but on client machine it didnt work

    – Ibrar Ahmad
    Mar 28 at 17:59












  • You haven't told us what the errors are. "not working" is not a good diagnosis for us. Give us the exact exception message you are seeing.

    – LarsTech
    Mar 28 at 18:10

















0















i have compile the application to Setup.exe with Install Sheild in Visual studio 2015 with SQL server 2012. The application work on my computer but when i transfer Setup.exe it to clients computer it didnt work generate problem with client computer.



Need A way to handle the application with



  1. I have attached the database to SQLSERVER Managment studio.



  2. I have
    change configuration File Data Source=""to client computer Address
    but still not working.



    public static string GetConnection()





    return ConfigurationManager.ConnectionStrings["MyCon"].ConnectionString;


    SqlConnection con = new SqlConnection(GetConnection());
    public Form1()

    InitializeComponent();


    private void button1_Click(object sender, EventArgs e)


    con.Open();
    SqlCommand cmd = new SqlCommand("Select EmpID from RegForm",con);
    int i= Convert.ToInt32(cmd.ExecuteScalar());
    if(i!=0)

    MessageBox.Show("value type is " + i);
    con.Close();
    MessageBox.Show("Connection is closed ");







I just want that this compile application Start working with setting path in configuration DataSource Attribute nd the programming start working with Active Database










share|improve this question





















  • 1





    That doesn't look like valid sql.

    – LarsTech
    Mar 28 at 17:44











  • Lars Tech :the connection string is in App.config file let me share it with you. <connectionStrings> <add name="MyCon" connectionString="Data Source=RISESTARSQLEXPRESS;Initial Catalog=Z-JanPayroll;Integrated Security=True" providerName="System.Data.SqlClient" /> </connectionStrings>

    – Ibrar Ahmad
    Mar 28 at 17:46












  • Doesn't change my comment. Look at your query. Copy and paste your code next time.

    – LarsTech
    Mar 28 at 17:53











  • change the query; on my machine it work fine but on client machine it didnt work

    – Ibrar Ahmad
    Mar 28 at 17:59












  • You haven't told us what the errors are. "not working" is not a good diagnosis for us. Give us the exact exception message you are seeing.

    – LarsTech
    Mar 28 at 18:10













0












0








0








i have compile the application to Setup.exe with Install Sheild in Visual studio 2015 with SQL server 2012. The application work on my computer but when i transfer Setup.exe it to clients computer it didnt work generate problem with client computer.



Need A way to handle the application with



  1. I have attached the database to SQLSERVER Managment studio.



  2. I have
    change configuration File Data Source=""to client computer Address
    but still not working.



    public static string GetConnection()





    return ConfigurationManager.ConnectionStrings["MyCon"].ConnectionString;


    SqlConnection con = new SqlConnection(GetConnection());
    public Form1()

    InitializeComponent();


    private void button1_Click(object sender, EventArgs e)


    con.Open();
    SqlCommand cmd = new SqlCommand("Select EmpID from RegForm",con);
    int i= Convert.ToInt32(cmd.ExecuteScalar());
    if(i!=0)

    MessageBox.Show("value type is " + i);
    con.Close();
    MessageBox.Show("Connection is closed ");







I just want that this compile application Start working with setting path in configuration DataSource Attribute nd the programming start working with Active Database










share|improve this question
















i have compile the application to Setup.exe with Install Sheild in Visual studio 2015 with SQL server 2012. The application work on my computer but when i transfer Setup.exe it to clients computer it didnt work generate problem with client computer.



Need A way to handle the application with



  1. I have attached the database to SQLSERVER Managment studio.



  2. I have
    change configuration File Data Source=""to client computer Address
    but still not working.



    public static string GetConnection()





    return ConfigurationManager.ConnectionStrings["MyCon"].ConnectionString;


    SqlConnection con = new SqlConnection(GetConnection());
    public Form1()

    InitializeComponent();


    private void button1_Click(object sender, EventArgs e)


    con.Open();
    SqlCommand cmd = new SqlCommand("Select EmpID from RegForm",con);
    int i= Convert.ToInt32(cmd.ExecuteScalar());
    if(i!=0)

    MessageBox.Show("value type is " + i);
    con.Close();
    MessageBox.Show("Connection is closed ");







I just want that this compile application Start working with setting path in configuration DataSource Attribute nd the programming start working with Active Database







c# .net






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 28 at 17:58







Ibrar Ahmad

















asked Mar 28 at 17:38









Ibrar AhmadIbrar Ahmad

62 bronze badges




62 bronze badges










  • 1





    That doesn't look like valid sql.

    – LarsTech
    Mar 28 at 17:44











  • Lars Tech :the connection string is in App.config file let me share it with you. <connectionStrings> <add name="MyCon" connectionString="Data Source=RISESTARSQLEXPRESS;Initial Catalog=Z-JanPayroll;Integrated Security=True" providerName="System.Data.SqlClient" /> </connectionStrings>

    – Ibrar Ahmad
    Mar 28 at 17:46












  • Doesn't change my comment. Look at your query. Copy and paste your code next time.

    – LarsTech
    Mar 28 at 17:53











  • change the query; on my machine it work fine but on client machine it didnt work

    – Ibrar Ahmad
    Mar 28 at 17:59












  • You haven't told us what the errors are. "not working" is not a good diagnosis for us. Give us the exact exception message you are seeing.

    – LarsTech
    Mar 28 at 18:10












  • 1





    That doesn't look like valid sql.

    – LarsTech
    Mar 28 at 17:44











  • Lars Tech :the connection string is in App.config file let me share it with you. <connectionStrings> <add name="MyCon" connectionString="Data Source=RISESTARSQLEXPRESS;Initial Catalog=Z-JanPayroll;Integrated Security=True" providerName="System.Data.SqlClient" /> </connectionStrings>

    – Ibrar Ahmad
    Mar 28 at 17:46












  • Doesn't change my comment. Look at your query. Copy and paste your code next time.

    – LarsTech
    Mar 28 at 17:53











  • change the query; on my machine it work fine but on client machine it didnt work

    – Ibrar Ahmad
    Mar 28 at 17:59












  • You haven't told us what the errors are. "not working" is not a good diagnosis for us. Give us the exact exception message you are seeing.

    – LarsTech
    Mar 28 at 18:10







1




1





That doesn't look like valid sql.

– LarsTech
Mar 28 at 17:44





That doesn't look like valid sql.

– LarsTech
Mar 28 at 17:44













Lars Tech :the connection string is in App.config file let me share it with you. <connectionStrings> <add name="MyCon" connectionString="Data Source=RISESTARSQLEXPRESS;Initial Catalog=Z-JanPayroll;Integrated Security=True" providerName="System.Data.SqlClient" /> </connectionStrings>

– Ibrar Ahmad
Mar 28 at 17:46






Lars Tech :the connection string is in App.config file let me share it with you. <connectionStrings> <add name="MyCon" connectionString="Data Source=RISESTARSQLEXPRESS;Initial Catalog=Z-JanPayroll;Integrated Security=True" providerName="System.Data.SqlClient" /> </connectionStrings>

– Ibrar Ahmad
Mar 28 at 17:46














Doesn't change my comment. Look at your query. Copy and paste your code next time.

– LarsTech
Mar 28 at 17:53





Doesn't change my comment. Look at your query. Copy and paste your code next time.

– LarsTech
Mar 28 at 17:53













change the query; on my machine it work fine but on client machine it didnt work

– Ibrar Ahmad
Mar 28 at 17:59






change the query; on my machine it work fine but on client machine it didnt work

– Ibrar Ahmad
Mar 28 at 17:59














You haven't told us what the errors are. "not working" is not a good diagnosis for us. Give us the exact exception message you are seeing.

– LarsTech
Mar 28 at 18:10





You haven't told us what the errors are. "not working" is not a good diagnosis for us. Give us the exact exception message you are seeing.

– LarsTech
Mar 28 at 18:10












0






active

oldest

votes














Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);














draft saved

draft discarded
















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55403792%2fany-c-sharp-winapplication-with-install-sheild-building-to-exe-with-sqlserver-d%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid …


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55403792%2fany-c-sharp-winapplication-with-install-sheild-building-to-exe-with-sqlserver-d%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to preserve electronics (computers, tablets and phones) for hundreds of years Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) The network's official Twitter account is up and running again. What content…How might modern humans leave a message for 50,000 years?How would an aquatic race develop computers?How do we make computers care for human life?Keeping supplies for 1000 yearsWhat will cell phones become in 100 years?What body armor protects against a laser?Could a society attain 1800s technology if limited to using copper and bronze?Electricity power (magic) and electronicsScavenging metal resources in post-apocalypse after 100 yearsWhy would precursors create devices that can survive and still work after hundreds of years?

155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해

Convert JSON to MapSimplest way to convert a string representing JSON array into Java array List of key value pairsHow to take String JSON values into HashMapConvert a JSON String to a HashMapCreating BSON object from JSON stringJSONObject - How to get a value ?Better Map ConstructorReading JSON from Url javaUpdate columns if input values are not null otherwise ignore and keep the existing values of column in databaseHow to store object represented as Json string into Couchbase Lite?Go JSON into MapHow do I efficiently iterate over each entry in a Java Map?Sort a Map<Key, Value> by valuesHow to round a number to n decimal places in JavaCan comments be used in JSON?How do I read / convert an InputStream into a String in Java?How can I pretty-print JSON in a shell script?What is the correct JSON content type?How can I deserialize JSON to a simple Dictionary<string,string> in ASP.NET?Why does Google prepend while(1); to their JSON responses?Parse JSON in JavaScript?