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

Obelisk of Theodosius Contents History Description Notes Bibliography Further reading External links Navigation menuAge of spirituality : late antique and early Christian art, third to seventh centuryOver 60 picturesObelisks of the World41°00′21.24″N 28°58′31.43″E / 41.0059000°N 28.9753972°E / 41.0059000; 28.97539727724550-7235741376235741376

밀양 대씨 역사 각주 함께 보기 둘러보기 메뉴밀양 대씨

1973년 목차 사건 문화 탄생 사망 노벨상 달력 둘러보기 메뉴