Groups | Blog | Home


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
all groups > dotnet ado.net > march 2005 > threads for march 8 - 14, 2005

Filter by week: 1 2 3 4 5

Easy way to Sync ?
Posted by Sniper at 3/14/2005 11:45:03 PM
Hi Guys, can anyone tell me a good open source project or tool that I can use to sync data over the dial-up conection between SQL Servers? I tried the replication it's giving wired messages. Please help !!! Thanks, -Aruna ...more >>


Data Access Block - FillDataSet and Output Parameters
Posted by Jonas at 3/14/2005 10:35:55 PM
Hi! I'm using the Data Access v2 building block from MS for my data access classes. I have a method which uses SqlHelper.FillDataSet to retrieve a resultset from a stored procedure. Now I have added three output parameters to return some extra info, but for some reason the values aren't ret...more >>

DataSet Parent.Child.GrandChild Relationship
Posted by Travis at 3/14/2005 9:44:54 PM
I have a DataSet.... With these tables: Parent, Child, and GrandChild. Each table has an Id, parentId and Name field. (except the Parent table does not have a parentId) naturally. With these Relations: ds.Relations.Add("ParentToChild",ds.Tables["Parents"].Columns["Id"],ds.Tables["Children"...more >>

Dataset, Select, XMHelL
Posted by James Chambers at 3/14/2005 8:06:51 PM
Ok, I have been beating my head against the monitor now for weeks. My family no longer recognizes me and I am hearing tales about Uncle Bob coming to visit even. This can't be this hard. I have a significant amount of experience programming with VB 4 and 5. That, of course, was about 6 y...more >>

DataTable Limitations
Posted by Christopher Luther at 3/14/2005 6:40:34 PM
I've found a MSDN reference to the fact that an ADO.NET DataTable is limited to 16,777,216 rows of data [1], but what I cannot find is a reference for the maximum columns per DataTable, maximum bytes per DataRow, etc. Is this information documented anywhere? TIA! - Christopher [1] ...more >>

HowTo Compare Binary and int colns
Posted by sjoshi at 3/14/2005 5:56:58 PM
I need to compare and update a Binary(8) coln with values from an Int(4) coln. The table definitions are : CREATE TABLE [dbo].[COREBaseClass] ( [oid] [uniqueidentifier] NOT NULL , [ConditionID] [int] NOT NULL , [persistentFlag] [int] NOT NULL , [UIDCreator] [u...more >>

Unable to install setup program for MSDE
Posted by Kim Chi via DotNetMonster.com at 3/14/2005 2:19:05 PM
To setup MSDE2000a in my computer, I modified the "setup.ini" file to include the "instancename" and "targetdir" after the "[option]" statement. This was followed by entering the following command at the command prompt: c:\setup /settings "C\MSDERelA" sapwd="sa" A dialog box pop up and say...more >>

SQL Data Adapter Fill method hangs when called in web service
Posted by moondaddy at 3/14/2005 2:17:04 PM
I have some data access code that runs fine when called from a vb.net 1.1 winform. But when the exact same code is called from a web service it times out. All code is running on my development machine and the data access code is talking to sql server also on my dev. machine. The only thing ...more >>



ADO.NET 2.0 Question
Posted by Sahil Malik at 3/14/2005 1:07:06 PM
I ran across this ultra fantastic ADO.NET 2.0 thing - http://codebetter.com/blogs/sahil.malik/archive/2005/03/14/59761.aspx?Pending=true I was wondering if there is a way to specify a ConflictResolution strategy for a generated TableAdapter? Or will be a part of Beta2? Thanks. - Sahil Mal...more >>

OleDBDataAdapter and Excel file
Posted by Oriane at 3/14/2005 10:52:00 AM
Hi, I just want to configure a dataAdapter of an Excel file with Jet 4.0. The problem is that, when I use the wizard I realize that I can connect = to my file with the account "Admin" and an empty password. The = connection test succeeds. But when I'm finished with the wizard (clicking on t...more >>

Oracle error when i use System.Data.OracleClient 1.0.5000.0
Posted by ram at 3/14/2005 10:38:50 AM
Hi, I am calling an oracle built in procedure pkg_util.compile_schema from my VB.NET code this throws an excpetion ORA-02074: cannot ALTER PACKAGE COMPILE in a distributed transaction ORA-06512: at "SYS.DBMS_UTILITY", line 425 , this was working fine when i used with .NET 1.0 System.Data.Or...more >>

Help! Object must implment IConvertible durint Update
Posted by sjoshi at 3/14/2005 8:58:36 AM
Hello All I have schema as such: <xs:element name="OFDateProxies"> <xs:complexType> <xs:sequence> <xs:element name="M_CRProxy_OID" msdata:DataType="System.Guid, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" /> <xs:element name="M_CRP...more >>

Extracting data from a dataset returned by web service
Posted by mlsrinivas NO[at]SPAM gmail.com at 3/14/2005 5:13:44 AM
Hi all, I getting dataset as output from a method a web service. Along with other info this dataset is having wave file in binary base64 format in one of the columns. How to extract the data and create a wave file from this? Please help. Being a newbie to .NET technologies, this has becom...more >>

Exception while executing Stored Procedure
Posted by ramnadh_nalluri NO[at]SPAM semanticspace.com at 3/14/2005 3:45:44 AM
I got the below exception while executing a Stored Procedure from by using an adapter. It is showing timed out exception. But when i execute the same Stored Procedure in the database it is retrieving the results in few milli seconds. I doesn't understand why it was giving this error. For the sam...more >>

inserting Turkish chars into sql server
Posted by Sergei Shelukhin at 3/14/2005 3:39:38 AM
Hi. Here's the problem. I have ASP.NET web app and SQL Server 2k database. In the app, there's this button handler. string sql = "INSERT INTO Word (Word,WTranslation,Comment) VALUES ('"+txWord.Text.Trim()+"','"+txTranslation.Text.Trim()+"','"+txComment.Text.Trim()+"')"; SqlCommand c...more >>

"ORA-00936: missing _expression" vs Parameters.Add
Posted by mhongsyok NO[at]SPAM yahoo-dot-com.no-spam.invalid at 3/13/2005 9:36:51 PM
I am using Parameters.Add to my OleDb.OleDbCommand as follows. cmd.Parameters.Add("@ListName", TextBox1.Text) cmd.Parameters.Add("@OutputFile", TextBox2.Text) It works beautifully with MS Access and SQL Server. But, I am now getting an error of "ORA-00936: missing _e...more >>

Connection pooling and changed password issue
Posted by Siobhan at 3/13/2005 1:39:08 PM
Hi I have a problem I suspect is to do with connection pooling. If I connect as username/password, and the dispose of the connection am I correct in thinking the next time I connect to the same datasource with username/password then the connection pool will be used and the same connection ...more >>

Pass the datatable of one dataset to another
Posted by Chris at 3/13/2005 8:41:02 AM
Hello, How can I pass a datatable of a typed dataset to a datatable in an untyped dataset? Thanks...more >>

Deleting duplicates
Posted by Peter Schmitz at 3/13/2005 1:15:02 AM
Hi is there any fast way to delete all duplicates of a given record in a table (e.g. in an Access database)? Does a SQL statement exist that is able to do this? Thanks Peter...more >>

Avoiding SQL Injections
Posted by at 3/12/2005 8:26:18 PM
Is the single act of using stored procedures (in place of dynamic SQL) the only thing you have to do to prevent SQL injection attacks? Thank you, Eric ...more >>

Transaction context in use by another session
Posted by PL at 3/12/2005 10:51:13 AM
We are getting this error intermittently and I have failed to find find a solution since I don't fully understand the issue. All I can gather is that the transaction is running too long and this is the cause of the problem (?) If someone could suggest a solution I would really appreciate i...more >>

Dataset
Posted by Krishna Kumar at 3/12/2005 10:50:35 AM
Hi, I am searching for file name in database. From SQL Server Stored Procedure i get data into DataAdapter. From DataAdapter i fill into dataset, and i show the records in datagrid. From 2 lakh record, my stored procedure checks for validation and give me 10 records. It takes much time. ...more >>

Cast from untyped to typed DataRow
Posted by razdanro at 3/12/2005 9:03:03 AM
I have a typed DataSet and I execute the Select Methd on one of the DataTables. Later I have to assign the first row returned by this Select (which is a plain, untyped DataRow) to a typed DataRow variable. I use cast, but it fails at runtime: "Specified cast is not valid".Is there any way aroun...more >>

ADO time limit bug: DB connecting to itself
Posted by Gwyn Evans at 3/12/2005 7:19:02 AM
Dear all, I would be grateful for any help with this issue. I have written the code below which is executed by a button on a form in an Access 2000 database in windows 2000. The idea is programmatically to copy a table called tblPubs (a table of newspapers) into a local database shell in ...more >>

Retrieving new information
Posted by Nathan at 3/12/2005 6:39:28 AM
Hi, I'm an ADO.NET beginner. I have an application in which all my database updates are done on the main form. It includes numerous dialogs which access the dataset information, then the dataset is updated when returning to the main form. If one user goes to one form and edits new data a...more >>

How to add and call multiple subreports from the header report
Posted by Almannan at 3/12/2005 2:21:43 AM
Hi, I have to add three sub reports to a single report based on three different field values so Can I add several sub reports to a single report if yes then how. Please send the detail flow. Eagerly waiting for response. Almannan M. K. ...more >>

Failed to connect DB
Posted by Wong CS at 3/12/2005 12:15:13 AM
Dear developers, Execption verifying password. Login failed for user 'NT AUTHORITY\NETWORK SERVICE'. my connection is correct... the connection string correct... but i dunno wat wrong wif that... thanks and advice. cheers, Wong CS ...more >>

Concurrent Connections / Shared Transaction
Posted by Shawn B. at 3/11/2005 11:02:08 PM
Greetings, I have two SqlCommands objects that each need to execute concurrently but I want them both to be a part of the same transaction. What I'm doing is created one SqlCommand and Beginning a transaction. I have another SqlCommand that is being executed from within an Asynchronous de...more >>

Data Access Application Block Question - return param
Posted by moondaddy at 3/11/2005 5:59:02 PM
I dont know if this is the correct group to place this question, but it seemed like the most likely. In the DAAB, I dont see any methods that return a parameter. Is there an NonExecuteQuery method where I can use a return parameter? Thanks. -- moondaddy@nospam.com ...more >>

Attach a DataTable to a DataSet
Posted by Sylvain Larin at 3/11/2005 4:32:03 PM
I have a business object that return the list of contacts to the user interface. Here is the code of the method: public DataTable getContact () { // I know, this part should be in the Data Layer... SqlConnection conn = new SqlConnection (...); DataSet dsContact = new DataSet (...more >>

Sceppa's ADO.Net Bible Question
Posted by Jay Pondy at 3/11/2005 4:13:03 PM
In Chap 13 David shows you how to bind a second form to the same data source by passing the CurrencyManager as an arg to the EditDetail Method of the second form: Public Sub EditDetail(byval CM as CurrencyManager) drvDetail = Ctype(CM.Current, DataRowView) vueDetail = drvDetail.DataVi...more >>

System.Data.SqlClient.SqlException: Timeout expired.
Posted by Sam at 3/11/2005 2:29:30 PM
I had large database (transaction record > 1 million) at SQL Server and I trying to load data from SQL Server into Datagrid via ASP.Net 1.1 and ADO.Netx. However, it give error message as below during processing. While I checked at Query Analyser, it take 2 minutes + for search this rec...more >>

quick question
Posted by (rbutch NO[at]SPAM coair.com) at 3/11/2005 2:12:05 PM
when creating an instance of a Command object can you do mulitple inserts? or would i have to keep creating a new instance each time i wanted a new row? if you can do multiples, how would i instantiate that same obj each time? Dim cmd As New OleDbCommand("Insert into TimeCard2(Empl_id,balance_...more >>

Concurrently violation
Posted by HungTrinh at 3/11/2005 1:57:32 PM
Hi All, I use CommandBuilder to create UpdateCommand. But it raise a "Concurrently violation" error. Could you tell us how to solve this problem. This error rarely happen. private static int Update(string name, DataRow row, string connection) { using(OleDbConnection cn = new Ol...more >>

Please help
Posted by nashak NO[at]SPAM hotmail.com at 3/11/2005 1:17:36 PM
Hello, I'm working on a asp.net project under VS-2003. I have created a database project and created some stored procedures. When I run my app, I get the error - "Stored procedure not found". Do I need to make a copy of my SP to the database thru Server Explorer? Also, when I try to put...more >>

Is it possible to set CommandTimeout at connection level?
Posted by Serg at 3/11/2005 12:54:28 PM
Our app uses third party component and we do not have source code. That component requires as parameter Connection object only and we do not have access to the Command object it creates inside. So if query it generates exceeds 30 seconds timeout exception occurs. Is it possible to set CommandT...more >>

Access through Win2000 workstations
Posted by Olav at 3/11/2005 11:19:03 AM
Hi, We are installing our app in a customers network. The app is using ADO.NET with .NET Framework 1.1. DB is MSDE. The clients is running Win XP, 2000, ME and NT 4.0. The app is installed on the server and when we start it from the workstations is runs fine on the XP workstations but not on ...more >>

max pool size reached on dev workstation
Posted by Timo at 3/11/2005 7:55:14 AM
In the course of debugging applications on my development workstation (ASP.NET 1.1.4322, SQL Server 2000, ADO.NET) the app will sometimes be unable to establish a database connection when I choose Debug->Start. (When stopped during debugging, the code does not always reach the Finally {} block w...more >>

excel formulas and visual c# .net
Posted by Kostas Alifantis via .NET 247 at 3/11/2005 6:22:32 AM
Hi, I developed an application in visual c# .net This application reades an excel file and displays its contents into a dataGrid (OleDbDataAdapter). What I discovered is that if a cell in excel has a constant, then i can retrieve its contents. Also, if a cell has a formula (e.g. =K10) and K10 h...more >>

Commit/Rollback Transaction generates an error.
Posted by Edward Fernandes at 3/11/2005 3:53:05 AM
I have table Employee - Code varchar(5) Name varchar(100) Age int Using Ado.Net 1) Create a SQLConnection Object and open the connection. 2) Create a SQLCommand object using that connection. 3) Create a Transaction using SQLConnection.BeginTransaction(System.Data.IsolationLevel....more >>

Replacing internal with public in typed dataset?
Posted by Carolina at 3/11/2005 2:49:02 AM
Hi! I would really like to use some of the internal constructors and properties in my typed dataset from another assembly. Does anyone know of a way to do this without writing proxy classes or manually changing the dataset.cs-file everytime it's been generated?...more >>

Migrating SQLServer DBs to Sybase
Posted by iva lopes via .NET 247 at 3/10/2005 11:57:36 PM
Hi there, i have to move a bunch of SQLServer DBs onto SYbase. My VB.NEt code uses all the functions in System.Data.SqlClient... do i need to change all my code now for sybase? And do I have to use ODBC? My expeerience here is limited! thanx iva ----------------------- Posted by a user from ...more >>

DataView rows - filtered
Posted by matt NO[at]SPAM mailinator.com at 3/10/2005 10:19:13 PM
hello, so the DataView object is confusing me. i have a dataset of a bunch of rows, some of white my page needs to filter out before binding. no problem, i make a new dataview, set a filter and then bind the dv to my page. ala: DataView myDV = New DataView(myDS.Tables[0], "Show=1", "ID DESC...more >>

Access query parameters not auto-created in Server explorer
Posted by Tim Young via .NET 247 at 3/10/2005 9:54:57 PM
Hi all, I'm using an Access DB with a bunch of queries. I've created a web service in VS 2003 and have drag/dropped the queries onto the workspace. This works fine, but the parameters are not auto-created as they are with SQL Server, for example. Does anyone have an idea on what the problem i...more >>

vb.net 2003
Posted by Derrick McDaniel via .NET 247 at 3/10/2005 6:20:27 PM
(Type your message here) I want to put the data I enter in my form using vb.net into a database using microsoft access -------------------------------- From: Derrick McDaniel ----------------------- Posted by a user from .NET 247 (http://www.dotnet247.com/) <Id>X5zGJFw8V0mMijW0TaBbmg==</I...more >>

Error...
Posted by Wong CS at 3/10/2005 5:47:05 PM
Dear developer, I have experience this error message: System.NullReferenceException: Object reference not set to an instance of an object. at GreenBid_mobile.LoginProc.ValidateLogin(String EmailAdd, String Password) in c:\inetpub\wwwroot\greenbid_mobile\loginproc.asmx.cs:line 108 Here is ...more >>

When to use MSDE/Sql Server (when using VB.NET)
Posted by DraguVaso at 3/10/2005 2:56:35 PM
Hi, I'm just wondering when I better should use an Sql Server or when a MSDE. Whet are the advantages of one to another en the limits etc. And this espacially when using them as databases for VB.NET-applications. Any information would be great! Thanks a lot in advance, Pieter ...more >>

about GetDate(T-SQL)
Posted by kylin at 3/10/2005 2:07:31 PM
SELECT GETDATE() July 29 1995 2:50 PM (1 row(s) affected) ---------------------- how can changed this format: 1995-29-05 14:50, Just in storeprocess ? ...more >>

about the storeprocess
Posted by kylin at 3/10/2005 12:51:54 PM
ALTER PROCEDURE Login @LName nvarchar(50), @Pwd nvarchar(500) AS declare @myID int SET NOCOUNT ON if exists ( select @myID = ID from kylin_user where lname=@lname and pwd=@pwd ) begin insert into kylin_log(UID,TLogin)values(@myID,Getdate()) end RETURN but it mind that...more >>

Using IDataAdapter to fill a strongly-typed dataset
Posted by Robert Bouillon at 3/10/2005 12:47:57 PM
We're using abstract interfaces for the data access in our classes. We're using strongly-typed datasets when using data adapters. We can use a SqlDataAdapter to fill a strongly-typed dataset using the Fill method, but we can't get the same result if we've cast the object to an IDataAdapter's f...more >>

SQL View
Posted by Sam at 3/10/2005 12:45:50 PM
How to use SQL View via ado.net in asp.net? Any reference at website? Please advise. ...more >>

dispose()
Posted by Sam at 3/10/2005 11:42:36 AM
how to dispose connection pooling when aspx is discontinued? In VB, the syntax is unload but how about aspx ? ...more >>

Which one is better one SQL or DataSet Transactions
Posted by Microsoft at 3/10/2005 11:30:48 AM
I am developing a project, in that i use SQL Transactions to begin a transaction like if i want to save the details of the user along with the Address first i will save the details of the user and then the address. in my database i have these type of files: Person, user, Address, userAddress : p...more >>

Which one is better one SQL or DataSet Transactions
Posted by Microsoft at 3/10/2005 11:29:31 AM
I am developing a project, in that i use SQL Transactions to begin a transaction like if i want to save the details of the user along with the Address first i will save the details of the user and then the address. in my database i have these type of files: Person, user, Address, userAddress ...more >>

Sending data to access query from Visual .net form
Posted by srusc NO[at]SPAM hotmail.com at 3/10/2005 10:34:17 AM
Hi There, I have made a query called "Schedule",in access using few tables. Has fields like Order #, Required Date, Quantity ordered etc.. Depending upon the Required date field I provide on the input of the query. The query filters and displays results based on that. I want to use a form using...more >>

Question about DataSet.WriteXML method.
Posted by Ken Varn at 3/10/2005 10:05:21 AM
I have a DataSet in which one row contains a column with a string that has CR or LF characters in it. I am converting this DataSet to XML by calling DataSet.WriteXml(). I would have expected CR and/or LF characters to be translated to numeric character entry values. Instead, they are written o...more >>

Cannot open a password protected access database
Posted by John at 3/10/2005 8:31:05 AM
I am unable to open a password protected Access Database programtically. I have office 2003 installed on my machine. I am using the OleDb namespace in C#. I can open the database in access. I can open the database programatically if I remove the password. Here are the last 3 connection stri...more >>

MSSQL - ON DELETE SET NULL
Posted by Philipp Schumann at 3/10/2005 6:00:10 AM
Hello NG, Does SQL Server support "ON DELETE SET NULL"? I have a couple of CREATE TABLE / ALTER TABLE commands that are all in one string, separated by ";\r\n", and send them to SQL Server (without transaction context). The SQL itself is created dynamically, but here is a sample (for si...more >>

Combining multiple datatables on a unique ID
Posted by 11Oppidan at 3/9/2005 8:17:25 PM
Hi, Using VB .NET I want to combine app 100 different ADO.NET datatables, each with app 50,000 records which have been populated from SQL. They share a common ID, and I would like to group by this ID and sum up the other 4 columns to give me one master table. I understand how to populate ...more >>

Deploy applcation VBNET and Sql
Posted by Carlos G via DotNetMonster.com at 3/9/2005 7:08:10 PM
Hello friends i have a question. Is about the deployment an application net over a pc. I installed the netframework 1.1 and i copied the applicattion . The problem es when the application tried to connect Sql. Dont do it Thanks -- Message posted via http://www.dotnetmonster.com...more >>

How to read from DataReader and Update using DataAdapter
Posted by Mori at 3/9/2005 6:29:03 PM
I am looking for example of reading one table using datareader and updating another with the values using a dataadapter....more >>

SqlDecimal MaxValue
Posted by Chris at 3/9/2005 3:13:59 PM
Has anyone noticed that the doc for this says: The value of this constant is 79,228,162,514,162,514,264,337,593,543,950,335 but that it is actually 99,999,999,999,999,999,999,999,999,999,999,999,999? Just thinking that Microsoft has a (minor) documentation error that should be fixed. ...more >>

Performance Problems with filtering in Dataview
Posted by Robert Gregory via DotNetMonster.com at 3/9/2005 2:13:04 PM
Hi all! I would really appreciate getting some help on the following problem: I use a cached dataview as a source for my datagrid. The user selects items from controls and based on the selections a filter is applied on the dataview and the datagrid re-databinded. Now the problem: when I test th...more >>

SqlCommand fires too soon.....
Posted by Jeppe Dige Jespersen at 3/9/2005 1:18:59 PM
I have the following: ___________________________________ Dim cmdSaveUser As New SqlCommand cmdSaveUser.Connection = con 'con has been configured previously cmdSaveUser.CommandType = CommandType.StoredProcedure cmdSaveUser.CommandText = "spInsertUser" cmdSaveUser.Parameters.Add("@FirstN...more >>

Losing records in a transaction
Posted by Shyamalan Chemmery via DotNetMonster.com at 3/9/2005 12:16:59 PM
I'm currently using .NET 1.0 and MS .NET provider for Oracle to connect to my Oracle9i R2(9.2.0.5) database. I have a piece of code which in essence is as given below Try m_Conn = New OracleConnection(strDBConnString) m_Conn.Open() m_Trans = m_Conn.BeginTransaction() '...more >>

DataTable.TableName returns "Table"??
Posted by Antonio Ooi at 3/9/2005 11:52:44 AM
Hi, I get a DataTable based on this simple query: SELECT * FROM Customers Later, I want to know just the table name because I do not want to play with the string within the SELECT statement. I expect DataTable.TableName to give me an exact name, i.e. "Customers", but it gives me "Table" r...more >>

How to select distinct values
Posted by Sylvain Larin at 3/9/2005 10:30:49 AM
I have a DataSet filled from a previous query to the database. I need to get the distinct values from a field in the DataSet. Is there a way to acheive this without going through the DataTable or by hitting again the database? TIA...more >>

DataTable.Select question
Posted by Mika M at 3/9/2005 9:54:49 AM
Hi! An application adds DataRows into DataTable in random period of time, and after adding new rows saves DataTable as XML-file. DataTable contains DateTime Field named as "SaveTime", and some other fields... About "SaveTime" field, schema looks like... <xs:element name="SaveTime" type=...more >>

Data Adapter Problem?
Posted by G Dean Blake at 3/9/2005 9:43:27 AM
The following is an issue using ado.net in an asp.net page using SQL Server.... I have a Statement that when executed from my asp.net dataadapter takes about 24,000 reads according to SQL Profiler. I think the read count is accurate as it grids a long time. The same statement when execu...more >>

DataRowCollection.InsertAt method
Posted by Dei at 3/9/2005 9:12:39 AM
Hi to you all, I wonder if anyone has been able to get the DataRowCollection.InsertAt method to work correctly? I added 2 rows in DataGrid using InsertAt function. After I edited one of the rows and moved to Up/Down, a new identical row appeared in the DataGrid. Is this a bug? Any ...more >>

FTP a text file
Posted by (rbutch NO[at]SPAM coair.com) at 3/9/2005 8:43:34 AM
guys, i need some help on this one. i need to set up a program that will create a text file (done that). then ftp that file to an IP address, say IPAddress=204.23.144.21 IPLogin=ftpmylogin IPPassword=mypwd this program can be in VB.NET or ASP.NET - doesnt really matter. whichever is the eas...more >>

Trying to use Nile Oracle DAAB in VB
Posted by (kzimme NO[at]SPAM dot.state.wy.us) at 3/9/2005 8:16:03 AM
I am trying to use the Oracle DAAB found in the Nile application at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/manprooracperf.asp. I am trying in VB 2003 to call an Oracle 9i stored procedure with parameters but I cannot seem to get past the compiler. Oracle...more >>

Wierd Occurrance
Posted by Todd Bright at 3/9/2005 8:03:04 AM
I have an intermittant problem that occurs a couple of times a week in a handful of places in the code (the same places at different times). The error is 'Object reference not set to an instance of an object'. After much research (it's not my code), I've found that it is occuring when a dat...more >>

REGISTERED CAD/CAM/GIS softwares!
Posted by (danielhtools NO[at]SPAM yahoo.com) at 3/9/2005 7:24:22 AM
hi all ! see my site and you understand all. www.michaeliusis.narod.ru Hi all ! I provide CRACKED engineering and technical software at this topics: 1. Civil and Structural 2. 2. Survey , GIS , Rock , Soil and Water 3. Architectural 4. CAD-CAM 5. FEA , CFD and CAE 6. Electrical ,...more >>

SPs, sqlCommand and Terminal Services
Posted by Benny Olsson at 3/9/2005 5:21:53 AM
Hi all, I just ran into something very, very strange.. I have this application which fires of a series of SQL Scripts using the sqlCommand Object. One of the statements executes the procedure "sp_addMergePublication" on the server. If I do this on a local machine, everything works fi...more >>

DataSet Filter
Posted by Jon at 3/9/2005 5:13:02 AM
Hello all. I'm trying to filter a dataset using the below snippet, however, it's returning 2 rows and it should only return 1. Can anyone please hel?p DataView dv = new Customer().GetCustomerFiles(4).Tables[0].DefaultView; dv.RowFilter = "FileType = 'Company Info'"; int b = dv.Tabl...more >>

Big Problem on SQL Server link to Web Services
Posted by Wong CS at 3/9/2005 2:30:44 AM
Dear developers, i hav face a big problem on connect my web services to my DB. i m using MS SQL Server 2000 to build the web services.. but i cannot invoke the input into the database and "HTTP 500 - Internal server error" on the IE. I hav try the same thing on newly created ASP.NET Web Appl...more >>

changing the table a dataadapter accesses
Posted by dennist685 at 3/9/2005 1:39:06 AM
changing the table a dataadapter accesses If I want to change the table a dataadapter accesses, can I remove the former table from the dataset's xsd file by simply deleting it? Thank you in advance. dennist685 ...more >>

Inject timeout BUT it's success
Posted by Thana N. at 3/8/2005 11:33:02 PM
Hi, My program uses DAAB to inject data to SQLServer using ExecNonQuery() with stored procedure. In normal case, it works property. But in some situations such as database backup process, I got timeout error and my program will retry to inject until success. In this week, I've found tha...more >>

DataRowCollection InsertAt method
Posted by msnews.microsoft.com at 3/8/2005 8:04:20 PM
Hi to you all, I wonder if anyone has been able to get the DataRowCollection.InsertAt method to work correctly? I added 2 rows in DataGrid using InsertAt function. After I edited one of the rows and moved to Up/Down/Left/Right, a new identical row appeared in the DataGrid. Is th...more >>

AutoIncrementSeed une solution complète qui marche
Posted by Jean-Luc PUCHOT at 3/8/2005 6:49:00 PM
C'est un mini exemple avec un DataGrid, un bouton "Add" (pas nécessaire, juste pour le code) et un bouton "Update". Le but : Utiliser des valeurs négatives pour les nouvelles saisies dans les champs auto incrémentés. Lors de la mise à jour avec DAProduits.Update(...), on cherche l...more >>

Timeout on Connection Pool
Posted by Steve Harris at 3/8/2005 6:48:20 PM
I'm getting the following error message in an ASP.NET application: Time Expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached. I've read several KB articles on this an...more >>

Selecting a Row in a DataTable
Posted by Nick at 3/8/2005 4:19:05 PM
Hi I'm very new to this so forgive me if I've made very amateur mistakes. I am writing a web page for work so that items in a database can be queried and then amended if required. I've written a function which returns a DataSet. I call this function from a sub procedure and assign the re...more >>

Dataset XML Select
Posted by Reg at 3/8/2005 4:17:02 PM
Hello, I use VB.net I have a XML file and I read it with a dataset : myDS.readxmlschema("test.xsd") myDS.readxml("test.xml") I have 3 tables in my dataset. Is it possible to select easily data like with SQL ? ex. Select name from Table1 Where region = (Select num From Table2) .... T...more >>

Removing empty fields from a bound datagrid
Posted by JackBusiness NO[at]SPAM gmail.com at 3/8/2005 3:57:24 PM
Howdy folks: Long time listener...first time poster. My issue is that I am binding DB data to a datagrid using the <%# Container.DataItem("FOO") %> methodology. So my question is this...if FOO is empty, how can I substitute it out and replace it with something like "Not Entered"? Yes, I...more >>

Efficient Database Paging Tests
Posted by H. Williams at 3/8/2005 2:12:16 PM
I have been trying to determine the fastest way to implement database paging for an Access database with an ASP.NET front-end. I have a difficult database because the user can change the sorting and the fields are not unique, which excludes the "Select TOP" approach. Also the database has ...more >>

OleDbDataAdapter Partial Fill
Posted by H. Williams at 3/8/2005 1:42:07 PM
I'm using a OleDbDataAdapter to partially fill a dataset: Overloads Public Function Fill(DataSet, Integer, Integer, String) As Integer Everything works, but the function only return the records filled. Is there any way to get the total record count, without another command? ...more >>

Batch Queries with OLEDB
Posted by H. Williams at 3/8/2005 1:36:25 PM
I'm trying to use a batch SQL statement with an OleDbDataReader and the NextResult method. I tried: "SELECT Pages FROM Documents ; SELECT Date FROM Orders;" However, I get the error: "Characters found after end of SQL statement. " If I try removing the semicolon I get "Syntax Error in Query ...more >>

use of SqlDataAdapter with a table without Primary Key
Posted by DraguVaso at 3/8/2005 12:41:15 PM
Hi, I thought it isn't possible to use a SqlDataAdapter and a Databound grid when there isn't a 'real' primary key on the table. Although, is there a way to use it, and define somewhere in the SqlDataAdapter my own primary key on the table? I can't add a primary key to the table, so I guess...more >>

Format of the initialization string does not conform to specification...
Posted by gloria at 3/8/2005 12:31:15 PM
I am trying to load data from a flatfile into a dataset, but I get the following errror: "Couldn't connect: Format of the initialization string does not conform to specification starting at index 170." What am I doing wrong? --gloria -------------------------- schema.ini: [861D_NI_0308...more >>

Timeout at runtime but no timeout at design time in VS2003
Posted by Patrice Raucq at 3/8/2005 11:31:20 AM
Hi all, I have a timeout problem when retrieving data from my DB in a C# program. Everything is OK at design time : I can generate a Dataset and populate it with its data. Important note : the View1 is based on a UserDefined function returning a table variable, it takes 54 seconds to retr...more >>

Filter DataView for Duplicates?
Posted by xenophon at 3/8/2005 8:42:24 AM
I have a DataTable with duplicates in a column. I would like to display only this column in a DataView, but remove any duplicates that exist. How can I do that? Thanks. ...more >>

Error - No Value Given For One OR More required Parameters
Posted by Shariq at 3/8/2005 8:41:12 AM
I have the following lines of VB.Net code. Its works if the HDR property is set to "No" but changing it to "Yes" generates the error "No Value Given For One OR More required Parameters". What am I missing? Dim sInsert, sSelect, sConn, sFile As String sFile = txtFileName.Text....more >>

Multi-Database Transactions
Posted by David Wimbush at 3/8/2005 7:13:51 AM
I've been looking into adding transaction capabilities into my object model framework. I always understood that, with SQL Server, a transaction could only cover one database, regardless of whether the transaction was done in a stored procedure or ADO ('classic ADO' or ADO.Net). But when I starte...more >>

re:creating a combobox column
Posted by pbrunes NO[at]SPAM gmail-dot-com.no-spam.invalid at 3/8/2005 3:37:04 AM
In my first post I tried to explain that I want to make a combobox column in a datagrid. But without having to buy a reference from a company I'm stuck! Did it make it a bit clearer? thanks! Posted Via Usenet.com Premium Usenet Newsgroup Services ----------------------------------------...more >>

I would like to insert a new column in DataTable at a specified position
Posted by Vikram at 3/8/2005 12:44:19 AM
I would like to insert a new column in DataTable at a specified position, is it possible and how ? Thanks...more >>


DevelopmentNow Blog