sqlconnection
Overhead of creating new SqlConnection in c#
A while back I wrote an ORM layer for my .net app where all database rows are represented by a 开发者_JAVA技巧subclass of DatabaseRecord. There are a number of methods like Load(), Save() etc. In my i[详细]
2022-12-16 04:04 分类:问答SQL in web service best practices
I\'m making a stateless web service which uses Microsoft SQL Server to read data (and only to read), without using transactions. What will be the best of the following:[详细]
2022-12-15 14:57 分类:问答Login failed for user 'username'
I have a form that selects a bunch of rows from a table in my MSSQL server, now, this form is used to update data, which it does correctly, after I update the data using the form however, it redirects[详细]
2022-12-15 11:45 分类:问答Is it important to Open a sql connection in the transactionscope
I created a sqlconnection, CN1. Then this CN1 is opened. Later in the code there is a transactionscope. If I execute a sql command on this CN1 connection, is this within transaction?[详细]
2022-12-15 05:11 分类:问答java analog to C# SqlConnection and data access layer (my attempt)
I\'m trying to work with java data access, so this with what I came up with: Tell me what do you think about this[详细]
2022-12-14 17:35 分类:问答TransactionScope question - how can I keep the DTC from getting involved in this?
(I know the circumstances surrounding the DTC and promoting a transaction can be a bit mysterious to those of us not in the know, but let me show you how my company is doing things, and if you can te开[详细]
2022-12-14 07:39 分类:问答SqlConnection as a static singleton object
public class db { public static string connectionString = WebConfigurationManager.ConnectionStrings[\"connectString\"].ConnectionString;[详细]
2022-12-09 10:44 分类:问答