¡@

Home 

c# Programming Glossary: database

Cross-thread operation not valid: Control accessed from a thread other than the thread it was created on

http://stackoverflow.com/questions/142003/cross-thread-operation-not-valid-control-accessed-from-a-thread-other-than-the

so that the corresponding data can be fetched from the database. c# multithreading winforms invoke share improve this question..

Create Excel (.XLS and .XLSX) file from C# [closed]

http://stackoverflow.com/questions/151005/create-excel-xls-and-xlsx-file-from-c-sharp

for ExcelLibrary Here is an example taking data from a database and creating a workbook from it. Note that the ExcelLibrary..

What are the pros and cons to keeping SQL in Stored Procs versus Code

http://stackoverflow.com/questions/15142/what-are-the-pros-and-cons-to-keeping-sql-in-stored-procs-versus-code

working on C# ASP.NET Forum . At the moment most of the database access is done by building the SQL inline in C# and calling.. Why are your windows apps connecting directly to a central database That seems like a HUGE security hole right there and bottleneck.. 95 of 'pushed changes' affect the code and not the database. If you're pushing 20 things to the webservers that month and..

TransactionScope automatically escalating to MSDTC on some machines?

http://stackoverflow.com/questions/1690892/transactionscope-automatically-escalating-to-msdtc-on-some-machines

However whenever you open a second connection to a database causing the database to enlist the System.Transactions infrastructure.. you open a second connection to a database causing the database to enlist the System.Transactions infrastructure detects that..

Returning IEnumerable<T> vs IQueryable<T>

http://stackoverflow.com/questions/2876616/returning-ienumerablet-vs-iqueryablet

on an IQueryable T that query will be executed in the database if possible. For the IEnumerable T case it will be LINQ to object.. original query will have to be loaded into memory from the database. In code IQueryable Customer custs ... Later on... var goldCustomers.. on the other hand will execute the original query in the database then filtering out the non gold customers in the memory IEnumerable..

Proper use of the IDisposable interface

http://stackoverflow.com/questions/538060/proper-use-of-the-idisposable-interface

up unmanaged resources. To me unmanaged means things like database connections sockets window handles etc. But I've seen code where.. using IDisposable to clean up unmanaged resources such as database connections and bitmaps. But suppose that _theList in the above.. eventually come along and free it What if there's an open database connection Surely we don't want that connection sitting open..

Random row from Linq to Sql

http://stackoverflow.com/questions/648196/random-row-from-linq-to-sql

sql share improve this question You can do this at the database by using a fake UDF in a partial class add a method to the data..

ExecuteReader requires an open and available Connection. The connection's current state is Connecting

http://stackoverflow.com/questions/9705637/executereader-requires-an-open-and-available-connection-the-connections-curren

state is Connecting When attempting to connect to MSSQL database via ASP.NET online I will get the following when two or more.. static SqlConnection conn null c# .net sql server ado.net database connection share improve this question Sorry for only commenting..

Making Entity Class Closed for Changes

http://stackoverflow.com/questions/11425993/making-entity-class-closed-for-changes

composition over inheritance EF 4.1 Code first vs Model Database first Strategy Pattern and Dependency Injection using Unity..

How to restore a database from C#

http://stackoverflow.com/questions/1466651/how-to-restore-a-database-from-c-sharp

code I am using to restore the backup. public void RestoreDatabase String databaseName String backUpFile String serverName String.. sqlRestore.Devices.Add deviceItem sqlRestore.Database databaseName ServerConnection connection new ServerConnection.. new Server connection sqlRestore.Action RestoreActionType.Database string logFile System.IO.Path.GetDirectoryName backUpFile logFile..

Using StringWriter for XML Serialization

http://stackoverflow.com/questions/1564718/using-stringwriter-for-xml-serialization

further go into the XML to DB problem. When writing to the Database I got the following exception System.Data.SqlClient.SqlException..

Should I learn VB.NET or C#? [closed]

http://stackoverflow.com/questions/1653895/should-i-learn-vb-net-or-c

using are SQL Server WPF etc. I just love the concept of Database file system.So those who want to know more about Database file.. Database file system.So those who want to know more about Database file system here are the links DBFS This one is really good.Serves..

Connecting to SQL Server with Visual Studio Express Editions [closed]

http://stackoverflow.com/questions/188963/connecting-to-sql-server-with-visual-studio-express-editions

are Microsoft Access SQL Server Compact 3.5 and SQL Server Database File. BUT if you use Visual Web Developer 2008 Express you can.. question You should be able to choose the SQL Server Database file option to get the right kind of database the system.data.SqlClient..

Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine

http://stackoverflow.com/questions/1991643/microsoft-jet-oledb-4-0-provider-is-not-registered-on-the-local-machine

Passing List<> to SQL Stored Procedure

http://stackoverflow.com/questions/209686/passing-list-to-sql-stored-procedure

AddItemsToReport string connStr int Id List int itemList Database db DatabaseFactory.CreateDatabase connStr string sqlCommand.. string connStr int Id List int itemList Database db DatabaseFactory.CreateDatabase connStr string sqlCommand AddItemsToReport.. int Id List int itemList Database db DatabaseFactory.CreateDatabase connStr string sqlCommand AddItemsToReport DbCommand dbCommand..

Serializing and Deserializing Expression Trees in C#

http://stackoverflow.com/questions/217961/serializing-and-deserializing-expression-trees-in-c-sharp

Expressions in C# I would like to store Expressions in a Database and load them at run time. c# serialization expression trees..

Query Microsoft Access MDB Database using LINQ and C#

http://stackoverflow.com/questions/295772/query-microsoft-access-mdb-database-using-linq-and-c-sharp

Microsoft Access MDB Database using LINQ and C# I have a .MDB database file and I am wondering..

Drag and drop to Desktop / Explorer

http://stackoverflow.com/questions/3040415/drag-and-drop-to-desktop-explorer

which loads a Filestructure Folders Files from a Database into a WPF ListView. Now I'd like to grab a file from this ListView..

SQL Express Connection string - Relative to application location

http://stackoverflow.com/questions/3500829/sql-express-connection-string-relative-to-application-location

of a unit test project in c#. My databases is located in . Databases MyUnitTestDB.mdf I would like to use a relative path or variable.. C blah blah blah yea yea yea MyApplication Databases MyUnitTestDB.mdf .. I have seen the use of DataDirectory but.. Server . SQLExpress AttachDbFilename DataDirectory MyDatabase.mdf Database MyDatabaseForTesting Trusted_Connection Yes In..

c# - approach for saving user settings in a WPF application?

http://stackoverflow.com/questions/3784477/c-sharp-approach-for-saving-user-settings-in-a-wpf-application

appear as if the application settings do not change. Q1 Database or other approach I do have a sqlite database that I will be.. in the database would be as good as any approach Q2 If Database What database table design One table with columns for different..

Query extremely slow in code but fast in SSMS

http://stackoverflow.com/questions/7637907/query-extremely-slow-in-code-but-fast-in-ssms

many articles before eg. see How Data Access Code Affects Database Performance . Once the problem is understood the solutions are..

Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. The statement has been terminated

http://stackoverflow.com/questions/8602395/timeout-expired-the-timeout-period-elapsed-prior-to-completion-of-the-operation

1 using Application OnlineUsers 0 2 the other one using Database. so for method #2 i should reset all OnlineUsers At Application_Start...

ServiceStack.Net Redis: Storing Related Objects vs. Related Object Ids

http://stackoverflow.com/questions/8914349/servicestack-net-redis-storing-related-objects-vs-related-object-ids

when designing a NoSQL Redis application Designing a NoSQL Database using Redis General Overview of Redis and .NET Schemaless versioning..

Queuing in OneWay WCF Messages using Windows Service and SQL Server

http://stackoverflow.com/questions/9702379/queuing-in-oneway-wcf-messages-using-windows-service-and-sql-server

or a list of employees. READING Logging WCF Request to Database Guaranteed processing of data in WCF service MSMQ vs. SQL Server..

How to restore a database from C#

http://stackoverflow.com/questions/1466651/how-to-restore-a-database-from-c-sharp

FILELISTONLY to list the logical file names. r nRESTORE DATABASE is terminating abnormally. I assume there is some way to tell..

How to create “embedded” SQL 2008 database file if it doesn't exist?

http://stackoverflow.com/questions/1715691/how-to-create-embedded-sql-2008-database-file-if-it-doesnt-exist

public virtual void CreateNew string createDDL @ CREATE DATABASE this.DBName this.BuildMasterConnectionString this.DBConnection.Open..

Speed up insert mdb

http://stackoverflow.com/questions/2248604/speed-up-insert-mdb

INTO NewTable FROM Text HDR YES FMT Delimited IMEX 2 DATABASE C Docs .Some.CSV You can use something similar with non standard..

Exclusive access could not be obtained because the database is in use

http://stackoverflow.com/questions/4046708/exclusive-access-could-not-be-obtained-because-the-database-is-in-use

string backUpPath string sRestore USE master RESTORE DATABASE DatabaseFullPath FROM DISK N' backUpPath ' WITH FILE 1 NOUNLOAD.. not be obtained because the database is in use. RESTORE DATABASE is terminating abnormally. Changed database context to 'master'... easy way on a MS SQL Server to kick all users off is ALTER DATABASE MyDB SET Single_User WITH Rollback Immediate GO Now you can..

How to create SQL Server 2008 database full backup programmatically in desired folder

http://stackoverflow.com/questions/4466428/how-to-create-sql-server-2008-database-full-backup-programmatically-in-desired-f

this question Just execute SQL Server command BACKUP DATABASE database_name TO DISK 'd path to backup file on the server.bak'..

logins , users, permissions in sql express 2005 , with diagram , flowchart

http://stackoverflow.com/questions/5117029/logins-users-permissions-in-sql-express-2005-with-diagram-flowchart

Would be a great help. I want to GRANT DENY permissions of DATABASE LEVEL such as CREATE DROP ALTER DATABASE of TABLE LEVEL such.. permissions of DATABASE LEVEL such as CREATE DROP ALTER DATABASE of TABLE LEVEL such as INSERT DELETE ALTER UPDATE of COLUMN..

How to monitor SQL Server table changes by using c#?

http://stackoverflow.com/questions/5288434/how-to-monitor-sql-server-table-changes-by-using-c

ASP.NET pages low number of client notifications . ALTER DATABASE UrDb SET ENABLE_BROKER Implement the OnChange event to get notified..

How to execute a stored procedure within C# program

http://stackoverflow.com/questions/1260952/how-to-execute-a-stored-procedure-within-c-sharp-program

Products n try conn new SqlConnection Server local DataBase master Integrated Security SSPI conn.Open SqlCommand cmd new..

jQuery AutoComplete multiple Output

http://stackoverflow.com/questions/12855617/jquery-autocomplete-multiple-output

I am using jQuery AutoComplete to fetch results from a DataBase based on the value inputted. The user will then click a search..

Populate TreeView from DataBase

http://stackoverflow.com/questions/361661/populate-treeview-from-database

TreeView from DataBase I have a database table named Topics which includes these fields..

Check if datetime instance falls in between other two datetime objects

http://stackoverflow.com/questions/5672862/check-if-datetime-instance-falls-in-between-other-two-datetime-objects

the time date does not matter to me. For example i got DataBase entry for a staff who works between 10 00 Am 9 00 Pm and me..

Unable to open the physical file Operating system error 32

http://stackoverflow.com/questions/6347312/unable-to-open-the-physical-file-operating-system-error-32

to it using Server Explorer in Visual Studio 4.Right click DataBase and Copy Connection string. Insert it into WebConfig File like..

SqlCommand or SqlDataAdapter?

http://stackoverflow.com/questions/8640982/sqlcommand-or-sqldataadapter

you to automatically handle update in DataSet back to DataBase. SqlCommandBuilder Use SQLCommand This will also comes when..

Update DataSet, How?

http://stackoverflow.com/questions/993198/update-dataset-how

If I change any cell in the Datagrid How I can update the DataBase too thank's in advance c# share improve this question I..