Working c# application from another PC with SQL Server 2012 [closed] - c#

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have a C# application with SQL Server, and I have one database and lots of tables. If I want run this application from another PC, what can I do?
For example I will set up SQL Server 2012 Express on the other PC, then should I attach my database? Or anyway? Second question when I install just SQL Server 2012 Express, how can I attach my database?

SQL Server and C# are made to talk to each other across machines (client/server). To connect from a C# program to a SQL Server database you need to know the instance name (the SQL Server install where you can have more then one instance per physical machine), the database name and depending on whether you are using built in security (where you are using your sign in account on the client which has privileges on the server) or not in which case you need to provide a user name/password that does have privileges on the server.

Related

How monitoring application with C# betwen SQL Server 2005 and SQL Server 2019 [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I have two SQL Server servers. Server A - SQL Server - 2005 and server B - SQL Server 2019 faster. Both of them are the same but with different versions.
How to monitor procedures and functions between two servers, one 2005 and the other 2019 using C#. The two are the same but with different versions.
I want to develop a desktop application that monitors the updates that are made on the 2005 server and updates 2019.
I want only a tip. No C# Code. Thanks.
Is this possible?
I need a little bit idea to start my code.
to monitor db activities you can use sql server features like sql job , db management (email feature) to get update via email about event occured to servers .
to view both server's activities from one server you create a link server from sql19 to sql05 .

Listing contents of SQL table on ASP.NET web page [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I have Windows Server 2012 R2 and SQL Server 2016. There are many events writing to SQL table.
I want to build a web page to list events those are getting directly from connected SQL Server table.
Both SQL Server and IIS(8.5) are installed on the same machine.
The page would need to be dynamically updated whenever SQL Server table's record added/changed.
I really have no clue where to move on right now. Could anyone briefly explain me steps I need to do or throw me a proper "how to" article PLEASE?
Also, is there a way to performed without doing Visual Studio projects and such. I plan to automate the process with Powershell scripts.
This link should help you ...
https://msdn.microsoft.com/en-us/library/tw738475.aspx

How to have a link on local pc to an application on a remote pc? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have a WPF application on a server on my network with his app.config file and all the stuff it needs to run; I would like to open this application on clint pc on the network, but executing it on the server: I am trying to have a link to the application with some sort of network path, but I can't manage to do it.
I'll explain it in a second way: something like desktop links to programs in theri folders, but instead of being in the same machine, the program would be on a remote server in the network... is that possible somehow?
Using the Terminal Server technology "RemoteApp" should act like you are wanting it to act. The app will appear to be running on the client machine but it actually will be running on the server.
You will need the server running the app to be Windows Server 2008 R2 or newer and it will need to be configured as a terminal server roll.

C# use program with local database on another computer without SQL Server [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I wrote simple program with local database created in Visual Studio. It works well on my computer, but when I run it on another computer (without any SQL Server) it says it can't find server and advise to check that local database runtime is turned on in SQL Server.
How do I make my application that uses LocalDb run on a client computer that doesn't have SQL Server installed?
You don't need to install the entire SQL Server Express on the client computer, you only need the SqlLocalDB.msi.
Source
You need to install the database where the client can access it, like the current local machine or somewhere on their network. In any case you'll work, you'll need some kind of database.

how to create .net application with database for my client [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have created a .Net application which has some functionality to store and retrieve records from SQL database.
But now I have to create a setup of this application and install it on client side. But I don't know how to do that. Plus database functionality should also work on client end I mean he should be able to add and delete the records through program.
I have to create a setup for my .net application which also consist database file all connectivity. So when I install it on client machine it should not ask for database or connectivity stuff.
If you have created SQL Server Database for your WinForms application then you would probably need to deploy same SQL Server version that you used to the clients server/PC.
Otherwise you will need to restructure your code for SQL ServerCE or whichever database you would use.
SQL Server compact download: http://www.microsoft.com/cs-cz/download/details.aspx?id=17876
You will just need to pass the .sdf file to your WinForms project and use similar syntax as for SQL Server.
E.g.
SqlCeConnection conn =
new SqlCeConnection(#"Data Source=|DataDirectory|\dbJournal.sdf");
conn.Open();
Note: That you could install only SQL Server Express which is NOT full version of SQL Server and doesn't require that much disk space and processing power.
SQL Server Express download: http://www.microsoft.com/en-us/download/details.aspx?id=29062
Recommend to see (SQL CE): .NET Window Forms local database
This article will be helpful for creating set up. For Database support, add compact edition of your database into setup file.

Categories