small question

209 byte By lior6543 at 2007-11-24 8:26:11
while accessing a database (*.mdb file) on a multi-client c# program,<br/>do i have to worry about "single write - multi reader" protection<br/>or ADO.NET is taking care of this for me (accessing the file)????

pass dataset to new database

1184 byte By codegatman at 2007-11-24 8:26:23
hello :) :) I have a data set i created with some merges, i want to put that dataset into another database that has the same datastruture already, but the table is empty.The following code doesn't give any errors but doesn't put anything into the database, am i missing some code to accomp...

Case Sensitivity and Access

361 byte By gz32xg at 2007-11-24 8:31:09
I am trying to load a dataset using the like command, but I have not had success with case sensitivity. My sql statements will always get all matches.Exampleselect * from tablewhere id like '%A%' I cant get it to only get the upper case 'A'. Is there a way to do thisThanks in A...

DataTable.Select - How do you select values that have a quote in the name?

584 byte By JetDeveloper at 2007-11-24 8:39:13
I have a data table and want to select a value. The database has a string with the value4,4' DDDYes, the value has a single quote in it. How do I use the Select function of DataTable to select this value.It does not look like it's possibletable.Select("Value = '4, 4' DDD'")...

ADO books

298 byte By VB-pretty-n-da-best at 2007-11-24 8:40:19
Can Andy or anyone introduce me some good books about ADO, I intend to study ADo after i made an operation to change my gender, this is truthfull, I have nothing to hide even in public like this. I am really sorry if that is an irrelevent...hmm... "confession".<br/>Thanks very much in advance

simple question

64 byte By lior6543 at 2007-11-24 8:40:26
what is the difference between SQLConnection & OleDbConnection ?

Client side DataGrid Row Selections with a color

361 byte By prasadbn at 2007-11-24 8:51:25
I have a checkbox in the Datagrid header, when i check the checkbox all the rows in my datagrid should be changed to different color. can i achieve this at the client side. After selecting the rows when i click on any button can i retrieve id column of the rows for update or delete action. I will ap...

MS Access: Use reserved word in select as statement, how can I?

407 byte By Ai _Jun_Zhang at 2007-11-24 8:51:35
Hi!I am using MS ACCESS. I retreive data in my SQL statement in my ADO.net. My statement is:Select Group_Name as Group from myTableHowever, I get error saying that Group is a reserved word and cannot be used in the select statment.Is there any way that I can use a reserved word for an alias in my se...

MSDE and Windows 95,98,Me

993 byte By Formax at 2007-11-24 8:56:31
Hello everyone! I have a big problem cos I want to do some things with MSDE and I experience some difficulties...I have some questions, if somebody knows please enlighten me...1. Can I use MSDE in Windows 98, 95, Me? If I can, what are the requirements? Will the MSDE server run properly as in Window...

Datagrid sort and refresh

546 byte By Raquel at 2007-11-24 9:00:42
Hi everybody, I have a problem. A friend and me are doing a contact center program using Datagrids in c#. Well, in the datagrid we have some rows. Each row, when you do a double click shows a new form with the information of the row. Ok, to here it's okey. But if i sort a column doing a click i...

MS Access Like

721 byte By swalker at 2007-11-24 9:03:19
in my Access DB I have some records likeCOP_QCC Minor 5647662_loooo!#@#$$%^&*(+_(*&_long_nameNS1 Self_TestCOP_QCC Minor 5647662_loooo!#@#$$%^&*(+_(*&_long_nameNS1 No_PowerCOP_QCC Minor Device10 NS1 Self_TestI wanna list out all records which are having "5647662_loooo!#@#$$%^&*(+_(*&_long_nameNS1"Whe...

Enumerate SQL data sources

187 byte By RoyceF at 2007-11-24 9:11:51
Hi,<br/>How can I enumerate SQL data sources in my domain using C#? I found MS KnowledgeBase article 310107, but I can't get the code to even compile.<br/>Thanks,<br/>Royce

Access table schema

407 byte By RoyceF at 2007-11-24 9:27:48
Hi, I am using the GetSchemaTable() method of the C# .NET OleDbDataReader class to read the schema of an Access table. The following columns always have the same wrong values: AllowDBNull = True IsUnique = False IsKey = False IsAutoIncrement = FalseWhy do these schema columns show the opposite valu...

NHibernate: Timestamp - problem with mapping file

952 byte By THY02K at 2007-11-24 9:29:45
How do you map TimeStamp (SQL Server) to DateTime (.NET) datatype? I ran into the following error:"Could not cast the value in field ts_times4_ to the Type TimestampType. Please check to make sure that the mapping is correct and that your DataProvider supports this Data Type."My table:CREATE TABLE [...

Why it does not use the ADODB.dll in the GAC?

557 byte By Ai _Jun_Zhang at 2007-11-24 9:32:04
Hi!I have installed Office 2003 and all the PIA are installed in GAC. I checked the GAC, there is a ADODB.dll in C:\WINDOWS\assembly\GAC and version is 7.0.3300.0.However, in my project, when I reference ADO 2.7, it does not pick up the one from GAC instead it referes to a path "D:\InetPub\wwwroot\...

Navigation in Rows of the Dataset

241 byte By acinarab at 2007-11-24 9:35:22
I wonder how navigation is done in the Dataset . for example by using Recordset we could do this by Calling MoveNext() .. and methods like this.<br/>In Dataset class I could not find any thing related to this.<br/>thanks for helps.

SELECT AVG(DateTimeColumn) FROM TimeLog?

149 byte By THY02K at 2007-11-24 9:38:42
Hey guys, how do I:<br/>SELECT AVG(SomeDateTimeColumn) FROM TimeLog WHERE EMPID=12345<br/>Any useful script for lazy me? Thanks in advance.

Concurency Violation:Update command...

430 byte By jasie24 at 2007-11-24 9:38:45
I'm dealing with an old problem...When i have a datagrid,and use an adapter on it,what is the procedure, to solve this error Concurency Violation:Update command affected...orConcurency Violation: Delete command affected...p.s: (i used) onDataAdapter_RowUpdated() ''' somtin lik...

List of reserved word in Access

171 byte By jhammer at 2007-11-24 9:41:29
Does any one know where can i find a list of all ms-access reserved words?<br/>(The words that needs [] in the SQL statements)/<br/>I couldn't find one anywhere.

NHibernate: Criteria query - Parents property as select criteria.

1110 byte By THY02K at 2007-11-24 9:42:40
SUBJECT: Criteria query - Parent's property as select criteria.Hi, I'm trying to issue a SELECT statement via Criteria query, but can't get it working...Basically, I have two classes:Public Class MyChildClass...Public Property MyParent As MyParentClass...End PropertyPublic Property Ch...

obtaining a sqlconnection from gui

490 byte By wrcstewart at 2007-11-24 9:49:23
Having set up my connection using the database explorer - the drag and drop stuff works fine. But i now need to access that connection to write some code. How is that connection found from say the datasource control. Or is that really a new connection object is generated every time an sql request is...

NHibernate Query Analyzer - tutorial anyone?

209 byte By THY02K at 2007-11-24 9:52:34
Hey guys, just downloaded, "NHibernate Query Analyzer", I unpacked it, but now wondering what to do with it. Is there any tutorial for this tool? Or should I resort to SQL Server's SQL Profiler... Thanks.

NHibernate - proper way to do UPDATE/DELETE?

876 byte By THY02K at 2007-11-24 9:52:36
Hi, I'm not sure if I'm doing my UPDATE's and DELETE's the proper way:Basically, I want to make sure what I updates, or deletes, in fact exists (ie not deleted by another user) before I actually perform the operation:o_session = SetupBISConnection(...)trx = o_session.BeginTransac...

Distinct Count in MDX

141 byte By muikwai01 at 2007-11-24 9:53:06
The DistinctCount function in MDX is applied to topmost level of a dimension only, what should I do if I need to applied this to all levels ?

default value

242 byte By allahmorad at 2007-11-24 9:56:24
Hi,<br/>i have a table in database sql server<br/>one field from this has a default value,<br/>i create dataadapter and dataset<br/>and create dataentery form(with databinding)<br/>when i make new record<br/>that field dont show default value

Programmatically import XML into Access?

740 byte By ariela.grin at 2007-11-24 10:00:34
I have a .NET application (C#) that uses Access Database as the applications repository.The application loads the data into DataSet and converts it to internal objects. Upon user request the application does the exact opposite: Converts the data into a DataSet and then updates the original .mdb file...

Trouble with a Access Db w/password......

434 byte By Qwick1E at 2007-11-24 10:05:50
When I set a password to my access db.myCon = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=db.mdb;Password=password");myCon->Open();I get a exception error."The workgroup information file is missing or opened exclusively by another user"..but when I remove it, it open ok. Wh...

Save DataTable to dbf

203 byte By kost81 at 2007-11-24 10:16:12
Hi to Everybody!<br/>Ive got such problem. I have DataTable and I need to save it in dbf file. I need create .dbf file and then save DtataTables contents there.<br/>Does anyone have any suggestions?

Closing Connection

325 byte By cik at 2007-11-24 10:17:11
I Use ADOX to create an Access DatabaseInterop::ADOX::CatalogClass* db = new CatalogClass();db->Create(String::Concat(S"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=",dbPath,this->ID,S"\\dbConv.mdb;"));Now I want to close the connection but I don't now how.Help me please!!!...

Import From Excel To SQLServer

578 byte By ddrib at 2007-11-24 10:20:36
Hi everyone,I need import a mass o data from excel to SQL, I wrote 2 peace of code that import from Excel and bring it to a dataset, so to send to SQL I did two diferents routine but I'm still not happy with the performance! LookFirstly I Tryied - For Each drow in dt.row call my stored pro...

how can i change ados namespace?

365 byte By liuyue at 2007-11-24 10:21:45
i want to apply ado to access database. i put following in my stdafx.h#import "c:\Program Files\Common Files\System\ADO\msado15.dll" no_namespace rename("EOF", "adoEOF") but when i compile ,there are some similar errors ,for example ,"error C2011: 'LockTypeEnum' : 'enum' type red...

MySQL OLEDB driver

1041 byte By HairyMonkeyMan at 2007-11-24 10:26:04
I've been looking around the net for one of these today, but I see that mysql don't officially support oledb. They do however have a great ODBC driver that works well (with the odbcConnection object).I have tried using microsoft's oledb for odbc driver to enable me to access my data...

Difference between access and sqlserver

65 byte By lokee at 2007-11-24 10:27:30
this thread explains the difference between access and sql server

ADO Javascript

1405 byte By Matt1701D at 2007-11-24 10:41:02
I am writing an application using ASP VBScript. However, to utilize the onClick methods of an <img> tag, I have to code the function with javascript (I have tried repeatedly to use client side VBScript as the language for the onClick methods and I get an error saying the function is not defin...

ADO C++ Classes?

596 byte By RogerGarrett at 2007-11-24 10:41:04
Are there C++ wrapper classes for ADO?I had started working with DAO for my SQL database needs and found (after much searching) that there are a number of C++ classes provided by Mircosoft to make it easier to use. Then, realising that DAO is deprecated (obsolete) I started looking at ADO, but I can...

Is adodb.connection is still ADO.NET

334 byte By gilkaths at 2007-11-24 10:53:33
Hello,I'm new in VB.NET, I'm just wondering if when use the usual way of connecting to database like ADODB.CONNECTION, is this part of ADO.NET? I check the .NET tab in the reference, and I saw ADODB type is .NET so I think if i didn't use the dataadapter, i'm still using the res...

Few doughts in the .Net

423 byte By j.Sridhar at 2007-11-24 10:56:18
Hi,I have some doughts from the last few days.Please letme know.1) Diffrence between Stored Proceduer and function?2) How to change the datagrid cell color depending upon the data?3) Can I update mutiple rows at a time in a data grid?4) Diffrence between Span and div tag?5) Can I place a text box fo...

Really Really Stuck...:(

224 byte By Vaderman at 2007-11-24 10:58:01
Does anyone know how to retrieve and write a BLOB object from an ACCESS database, using ADO? I can do it using DAO though..<br/>ADO is a little bit more involved than I anticipated! lol..<br/>Regards<br/>John

Retrieving the ID of last inserted record...

2943 byte By Vaderman at 2007-11-24 11:03:14
I have the following code to insert a New row in VC++ using ADO (NOT ADO.Net.) DB_STATUS status = SUCCESS; HRESULT hr; CString strForename; CString strSurname; PersonalRecord.GetPersonalDetails(strForename, strSurname); m_strSQLCommand.Format(IDS_STRING_INSERT_NEW_PERSONAL_RECORD, strForename, strS...

Unable to delete last row of dataset

213 byte By ygupta_2000 at 2007-11-24 11:08:23
Using delete method works from 1 to second last row of a table in dataset. But for last row it is neither showing exception nor deleting it.<br/>Any suggestions or workaround?<br/>I am using vb.net and ado.net 1.1

Connect to SQL 2000

582 byte By RobDog888 at 2007-11-24 11:09:04
I have used ADODB for several years and now I have been using VB.NET for a short couple of months. Now I need to learn how to use ADO.NET. Could someone tell me how to use ado.net in relation to adodb? DataSets, DataTables, etc. didnt exist in adodb, only recordsets and command objects. :(Using SQL...

Problem updating database using WS and DataSet

1043 byte By ykaeder at 2007-11-24 11:10:12
I am having a problem using the DataAdapter.Update methond. I am trying to move data from one database to another using a web service. What I want to do is create a data set on a client, pass the data set to a web service and then insert all rows into a database. I have created a data adapter with i...

Mind Boggling comboBox problem. When is the index created when you set DataSourc

1631 byte By blastnsmash at 2007-11-24 11:12:08
Hello all.Hopefully i've just overlooked something...ComboBox's DataSource is set to a DataSet. However, I want to change the index of the comboBox right away which I cannot do. Like so://returns dataset filled with infoDataSet MyDataSet = DataClass.getDataSet(SomeOleDbCommand, "Golf");//T...

Change in Order of records

421 byte By kingkedar at 2007-11-24 11:12:40
Hi,I am executing a query from Vb using ADO / Informix drivers to Informix server.If I am running the same query on informix console I am getting records in a particular oder but If I am executing the same query from VB then the recordset that I am receving is coming in a seperate order than Informi...

Importing in Access pogrammatically?

439 byte By kobus at 2007-11-24 11:15:03
HiIs there a quicker and more efficient way of importing data programmatically from a table in database A into a table in database B using a C# windows application?At the moment I open the connection to database A and read the data form the table into a dataReader object. Then I open the connection...

ReportingService \ URL Access - login credentials

1188 byte By THY02K at 2007-11-24 11:26:09
Can you specify user account and password with Reporting Service / URL access?I know you could with Reporting Service Web Service Library:Dim rs As New ReportingService()rs.Credentials = System.Net.CredentialCache.DefaultCredentials'Orrs.Credentials = New System.Net.NetworkCredential(username,...

Enterprise Library - Appl Block - how to build?

1610 byte By THY02K at 2007-11-24 11:26:17
I just downloaded Enterprise Library Application Blocks from MSDN, the latest version June 2005 ( http://msdn.microsoft.com/practices/GetStarted/default.aspx?pull=/library/en-us/dnpag2/html/entlib.asp). I open the solution for "Data Access Application Block \ Data Design" and tried to compile it:The...

Dataset

120 byte By j.Sridhar at 2007-12-4 10:39:19
When we use typed datase and untped dataset?<br/>What is the difference between them?<br/>let me know<br/>thank you

How to reset identity number of primary key given to table

500 byte By mickey229 at 2007-11-24 11:28:43
Can any one know how to reset identity number of primary key ???Let me explained it to you properly, What i want?I have created one table say employee table.And I have assigned primary key to it.I have inserted some rows into it.say 100 rows.So the last identity number would be 100.What I want to do...

FillSchema with join statement of table

380 byte By Jeetu_1978 at 2007-11-24 11:28:48
I am using SQLAdapater class -I have Join statement from which the dataset is been filled & i want to get the schema of the table & get information which is columns are primary-key or not, but i am not able to get it. if i use single slect * from table; then fillschema function give me complete info...