Click here to Skip to main content
15,918,193 members
Home / Discussions / Database
   

Database

 
GeneralRe: SqlConnection problem on ASP.NET Web Application Pin
yogesh_kumar_agarwal1-Mar-08 0:41
yogesh_kumar_agarwal1-Mar-08 0:41 
GeneralRe: SqlConnection problem on ASP.NET Web Application Pin
laziale1-Mar-08 0:08
laziale1-Mar-08 0:08 
GeneralRe: SqlConnection problem on ASP.NET Web Application Pin
papadimitriou1-Mar-08 12:57
papadimitriou1-Mar-08 12:57 
GeneralProximity search - Full Text Index Search Pin
Arindam Tewary29-Feb-08 1:54
professionalArindam Tewary29-Feb-08 1:54 
GeneralGet all records from a recursive table Pin
Khawar Abbas129-Feb-08 1:27
Khawar Abbas129-Feb-08 1:27 
GeneralRe: Get all records from a recursive table Pin
Giorgi Dalakishvili29-Feb-08 1:45
mentorGiorgi Dalakishvili29-Feb-08 1:45 
GeneralSQL Server CE "IF" Problem Pin
Jacquers29-Feb-08 0:55
Jacquers29-Feb-08 0:55 
GeneralRe: SQL Server CE "IF" Problem Pin
Mike Dimmick3-Mar-08 3:15
Mike Dimmick3-Mar-08 3:15 
Jacquers wrote:
I could do it in code, but it seems inefficient as it would be a two step process.


Forget worrying about this with regard to SQL "Server" CE - it's an in-process database so you're pretty much just calling into a DLL.

Something that few developers seem to be aware of is that "SQL" "Server" CE is particularly poor at using SQL. You are much, much better served by binding directly to a table using a SqlCeCommand with the CommandType property set to CommandType.TableDirect and the IndexName property set to the name of the index you want to search by, and calling ExecuteResultSet to get a SqlCeResultSet object. Specify ResultSetOptions.Updatable to directly edit the bound table.

You can then use the Seek method to move to a specific row. If it's there, you can use indexing operations or the SetValue/SetValues/Setdatatype methods to set the values of the row and call Update to commit the change. If not, you can create a new row by creating a SqlCeUpdatableRecord (by calling CreateRecord on the resultset), setting its values, and calling Insert on the resultset to insert it.

For more information and benchmarks, see SQL Compact Edition Insert Performance[^] from PocketPCDN.com.


DoEvents: Generating unexpected recursion since 1991

GeneralRe: SQL Server CE "IF" Problem Pin
Jacquers3-Mar-08 6:24
Jacquers3-Mar-08 6:24 
Questionhow to use crytal report with vb? Pin
sejal_tank29-Feb-08 0:41
sejal_tank29-Feb-08 0:41 
GeneralRe: how to use crytal report with vb? Pin
yogesh_kumar_agarwal29-Feb-08 0:52
yogesh_kumar_agarwal29-Feb-08 0:52 
Generaldatabinding textbox to a database Pin
laziale28-Feb-08 23:04
laziale28-Feb-08 23:04 
GeneralRe: databinding textbox to a database Pin
Joe28-Feb-08 23:13
Joe28-Feb-08 23:13 
GeneralRe: databinding textbox to a database Pin
laziale28-Feb-08 23:26
laziale28-Feb-08 23:26 
GeneralRe: databinding textbox to a database Pin
yogesh_kumar_agarwal29-Feb-08 0:09
yogesh_kumar_agarwal29-Feb-08 0:09 
GeneralRe: databinding textbox to a database Pin
laziale29-Feb-08 0:28
laziale29-Feb-08 0:28 
GeneralRe: databinding textbox to a database Pin
yogesh_kumar_agarwal29-Feb-08 0:57
yogesh_kumar_agarwal29-Feb-08 0:57 
GeneralRe: databinding textbox to a database Pin
laziale29-Feb-08 1:20
laziale29-Feb-08 1:20 
GeneralInserting strings that contains comma Pin
Deques28-Feb-08 21:33
Deques28-Feb-08 21:33 
GeneralRe: Inserting strings that contains comma Pin
Colin Angus Mackay28-Feb-08 21:44
Colin Angus Mackay28-Feb-08 21:44 
Generalsearch the data using GSM modem Pin
ieyra20428-Feb-08 17:59
ieyra20428-Feb-08 17:59 
GeneralConcurrency violation: the DeleteCommand affected 0 of the expected 1 records. Pin
baranils28-Feb-08 8:19
baranils28-Feb-08 8:19 
GeneralDeleted Record In SQL TAble Pin
kibromg28-Feb-08 7:12
kibromg28-Feb-08 7:12 
GeneralRe: Deleted Record In SQL TAble Pin
pmarfleet28-Feb-08 19:54
pmarfleet28-Feb-08 19:54 
GeneralProblem with update statement Pin
matjame28-Feb-08 3:20
matjame28-Feb-08 3:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.