sqlconnection
C# SqlConnection can't connect
I want to connect to an online SQL database. to do that, I use this code: SqlConnection conn = new SqlConn开发者_StackOverflowection(\"Data Source=77.243.225.193;User ID=rune;Password=secret;database[详细]
2023-03-22 12:49 分类:问答Not calling SqlConnection.Close() in Windows Forms - Why does it work sometimes
A friend of mine was hosting an ASP.NET 2.0 app at home until he moved and I offered to host it on my own Win7/IIS7/SQLE2008r2 server.[详细]
2023-03-22 06:44 分类:问答Is this Sql-injection-proof Asp.net code?
Problem: I have a form with text values, and a function that must return a string query based on the values of the text values too.[详细]
2023-03-17 03:46 分类:问答How to refresh the state of a SqlConnection?
I have this code: if (con.SqlConnection.State == System.Data.ConnectionState.Broken || con.SqlConnection.State == System.Data.ConnectionState.Closed[详细]
2023-03-16 08:52 分类:问答Session-Per-Request with SqlConnection / System.Transactions
I\'ve just started using Dapper for a project, having mostly used ORMs like NHibernate and EF for the past few years.[详细]
2023-03-09 23:09 分类:问答Bug for simple quotation marks in connection to database
I have the following code to add a new user: using System; using System.Collections.Generic; using System.Linq;[详细]
2023-03-08 02:28 分类:问答Does my .Net SqlConnection object close on its own
We have a simple loop process that does some stuff on some datarows. When commiting changes the new row and a SqlConnection object are passed to a method that handles the row change or addition.[详细]
2023-03-08 01:23 分类:问答SQL connection to localhost
I install DENWER and with help of built-in PhpMyAdmin create a database on localhost. When i connect to database in 开发者_如何学Pythonmy C# application i get \"SQL Exception was unhandled\". Dont und[详细]
2023-03-01 14:16 分类:问答connecting to local database in wpf application : error 26
WPF with local database application I was about to start but I faced this problem A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was n[详细]
2023-02-28 11:05 分类:问答ASP.NET MVC Manage SQLConnection with Dapper
I am giving the new Dapper Micro ORM released by Stack Overflow/Sam Saffron a quick go using MVC.I\'m wondering what is the simplest way to manage a SQLConnection object inside my controller?I am doin[详细]
2023-02-26 16:51 分类:问答