all groups > dotnet ado.net > january 2007 > threads for january 8 - 14, 2007
Filter by week: 1 2 3 4 5
How to add a new row to typed datatable.
Posted by ad at 1/14/2007 1:32:51 PM
I am using the datatable adapter of VS2005.
How can I add a new row to a typed datatable?
... more >>
Validating an XML file
Posted by Jack White at 1/12/2007 8:00:15 PM
Hi there,
I've created a strongly-typed "DataSet" using VS. If I save the data via
"DataSet.WriteXml()" and later prompt my users for the name of the file in
order to read it back in again (using "DataSet.ReadXml()"), how do I
validate that the file they enter is valid. That is, while
"Da... more >>
Does TableAdaper.Fill() call Connection.Close() internally?
Posted by Ð at 1/12/2007 4:10:16 PM
The Microsoft online help is full of TableAdapter examples like
customersTableAdapter1.Fill(northwindDataSet1.Customers);
I would expect the next line to be something like
customersTableAdapter1.Connection.Close();
But I haven't seen that in the code samples, and VS doesn't gener... more >>
know if a datatable is being schemafilles but not ever filles
Posted by Andrea Caldarone at 1/12/2007 3:41:33 PM
Hi all,
in my program I initialize a lot of datatable (member of the same dataset)
with the .FillSchema method of the adapter at the startup. After when a user
trough the guy requests a such data, I populate the datatable with the .Fill
method.
If I have a such datatable (I'me sure it have... more >>
ReadRepeatable
Posted by jackson at 1/12/2007 2:51:16 PM
..Net v1.1
Can someone tell me if I have ReadRepeatable IsolationLevel right?
Say I begin a transaction with ReadRepeatable. I select a row from table FRUIT. Another user tries to UPDATE the same row in table FRUIT... Are they blocked until I end the transaction?
Or their update goes thru, ... more >>
Copying from one db into another
Posted by John at 1/12/2007 12:36:16 PM
Hi
I am trying to copy data from one db into another. Thanks for everyone who
suggested ways to do that. After some more research I have come up with the
below simple looking way. My question in, is it supposed to work this way
and will it work?
LocalConn.Open()
Dim DBCommand As New ... more >>
Inserting from one db into another
Posted by John at 1/12/2007 3:36:16 AM
Hi
I have open connection to two separate databases. I now need to insert
records from a table in one db into a table in second db. How can I go about
doing it?
Thanks
Regards
... more >>
Help on displaying combobox items
Posted by max at 1/11/2007 7:00:15 PM
Hello,
I have a VS2005 framework and ado.net.
I have an access db with two tables:
1) Patients;
2) Doctors.
The 'Patients table is already filled by a long list of records (coming from
an old access db) in 3 columns: ID, Name, Doctorname (for that patient);
The Doctors table is filled by ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
leave connections open for how long?
Posted by Andrew Robinson at 1/11/2007 3:01:17 PM
I recently got into a discussion with a coworker about just how long to
leave a connection open. I have always opened as late as I can and closed at
the earliest possible point in time.
using (SqlConnection cn = new SqlConnection(DataConnection))
using (SqlCommand cm = new SqlCommand(InsertC... more >>
Restoring DataColumn.AutoIncrement value
Posted by Mario Vázquez at 1/11/2007 12:37:34 PM
Hi All,
I'm deriving the AutoIncrement, AutoIncrementSeed and AutoIncrementStep
properties of DataColumn objects by inspecting the underlying properties of
the source tables in Sql-Server.
When I create and empty row of that table, ado.net generates a new identity
value with the apropiate ... more >>
Bizarre slow query problem (again)
Posted by wizofaus NO[at]SPAM hotmail.com at 1/10/2007 9:44:57 PM
I previously posted about a problem where it seemed that changing the
case of the word "BY" in a SELECT query was causing it to run much much
faster.
Now I've hit the same thing again, where basically almost any change I
make to how the query is executed (so that it still performs the same
fu... more >>
oledbconnection v sqlconnection
Posted by JRD at 1/10/2007 8:05:18 PM
Greetings,
I wrote a wrapper for the ado.net using oledb to make connection to the
database. At the time the purpose of this class was so that I could use it
against any kind of database type. However, I was told recently that
SqlConnection is better to use against sql server.
So I was w... more >>
Dataset from datasource returns no rows
Posted by kwele NO[at]SPAM community.nospam at 1/10/2007 3:59:25 PM
I set up a dataset from Add New Data Source ... on the Data Sources
tab. I selected two tables with a parent/child relationship.
The wizard created the .xsd file. I then dragged the parent datasource
over to the forms designer, where it created a bindingsource,
bindingnavigator and GridView.
... more >>
DataList Not Displaying
Posted by scottf35 NO[at]SPAM gmail.com at 1/10/2007 1:02:34 PM
Hi,
I have recently installed asp.net v1.1.4322 on a Windows Server 2000 so
I could place my new asp.net website on our server.
The server is a production server and has several websites already on
it (before the install of asp.net).
I installed asp.net using aspnet_regiis -i.
The new as... more >>
Detach sql files on closing?
Posted by mtczx232 NO[at]SPAM yahoo.com at 1/10/2007 10:29:32 AM
Detach sql files on closing?
a)I have App that connect directly to SQL files (*.mdf). I realize that
this connection Attach the files to SQL server. How I can force Detach
mdf on closing program?
b)also I try add to project SQL DataBase but I got error that I not
have SQL Express. but I hav... more >>
Change SQL Servers for Application
Posted by AMP at 1/10/2007 1:44:18 AM
I have a small Visual basic.net 2005 application that needs to get data
from SQL servers
How can I make the dataset that uses My.setting.connection, use
differant servers
ie
My Setting.Connection="Data Source=SRV1;Initial Catalog=DB1;Integrated
Security=True
but when used on another site ... more >>
Advanced Select into statement in Access
Posted by khushal999p NO[at]SPAM gmail.com at 1/10/2007 12:32:32 AM
How to do this in MS Access 2000
Select Companyname,Counter = IDENTITY(int, 1, 1) into Custmoers2 from
customers
... more >>
Accessing deleted rows problem
Posted by Rastko Soskic at 1/9/2007 10:56:59 PM
Hi everyone!
As stated in subject I have problem with accessing deleted rows within
dataset,
that is, deleted rows within table contained in dataset.
Dataset is strongly typed (generated by designer).
I need to say that I've done this by following tips in MSDN.
First I create dataset, then ... more >>
Newbie Missing Something with Access DB Update Using VB .NET
Posted by pooba53 NO[at]SPAM gmail.com at 1/9/2007 6:50:05 PM
I have a VB .NET application that is communicating properly with an
Access DB. I have a slew of textbox controls bound to a dataset and
when the application launches, the fields are correctly populated.
If someone changes a value in one of the text boxes, I need to have a
button capture the ch... more >>
Detach sql files on closing?
Posted by mtczx232 NO[at]SPAM yahoo.com at 1/9/2007 1:01:41 PM
a)I have App that connect directly to SQL files (*.mdf). I realize that
this connection Attach the files to SQL server. How I can force Detach
mdf on closing program?
b)also I try add to project SQL DataBase but I got error that I not
have SQL Express. but I have Developer SQL 2005!?
... more >>
Correct error handling in DAL
Posted by BigStef at 1/9/2007 11:44:59 AM
Hi people,
I've been struggling over the past weeks to get rid of my old VB6
habits of using error handling everywhere and I think I'm catching up
quite fast!
I have a question though... I have read many Best Practices topics
about error handling and I trie not to create derived Exception er... more >>
Oracle stored procedure vs. functions? is not a procedure or is undefined
Posted by jobs at 1/9/2007 11:23:18 AM
PLS-00221: PLS-00221: is not a procedure or is undefined FUNCTIONS VS.
STORED PROCEDURES - ADO.NET TO ORACLE FUNCTION
I have a very simple oracle function I'm trying to call from ado.net.
The code works fine for a stored procedure but I get the error
PLS-00221: is not a procedure or is und... more >>
Problems call DataAdapter.Update and Concurrency
Posted by Steve Lloyd at 1/9/2007 11:07:33 AM
Hi all,
I wonder if anyone can explain what is happening here?
I have a dataadapter that I am using to correlate the changes in an SQL
Table to a DataTable. I create a new DataRow then call .Update and
acceptchanges, all works fine. The problem I have is when I try to amend
some of the d... more >>
Fresh installation
Posted by Stig_Kulvedrøsten at 1/8/2007 10:38:55 PM
I've just installed Windows Vista with Visual Studio.Net 2005 and SQL Server
Express Advanced Edition.
When installation of vs.net and sql server was finished I tried to run one
of my sites right away.
This is the error I got:
CREATE DATABASE permission denied in database 'master'.
An atte... more >>
Adapter.Update() problem with Access Database relationship
Posted by divisortheory at 1/8/2007 9:46:44 PM
I have two tables. First table is like this:
TABLE PrimaryTable
----Guid PrimaryID (Primary Key)
----string PrimaryName
----int PrimaryValue
Second table is like this:
TABLE SecondaryTable
----Guid SecondaryID
----Guid PrimaryID
There is a relationship defined between PrimaryTab... more >>
Getting notification from SQL 2005
Posted by Andrea Caldarone at 1/8/2007 6:03:44 PM
Hi all,
I'me using VB 2003 with framework 1.1, and SQL Server 2005 Express as data
provider. Is there a way to get notification from SQL Server 2005? I try to
explain better, let's consider a canonical client - server scenario: one
client changes a data into the SQL 2005 database, this one ... more >>
net fw 3.0
Posted by John at 1/8/2007 12:41:24 PM
Hi
What is the significance of net framework 3.0 for vs 2005 users?
Thanks
Regards
... more >>
Any solution for error message "Could not attach file 'App_Data\Database.mdf' as database 'Database'."?
Posted by ornit_sagy NO[at]SPAM yahoo.com at 1/8/2007 12:04:14 PM
Hello,
I'm trying to connect to Database.mdf from an asp.net file and I get the following error message:
Could not attach file 'App_Data\Database.mdf' as database 'Database'.
CREATE DATABASE permission denied in database 'master'
The coonection string I use is:
Provider=SQLNCLI... more >>
Connection timeout
Posted by DCraig at 1/8/2007 10:34:09 AM
I'm having a problem with one of my forms (using .Net 03 EE, SQL 2K
Standard, XP client and Windows Server03). After editing and deleting a few
records, the form starts timing out, giving me the message;
"Timeout expired. The timeout period elapsed prior to obtaining a
connection from the... more >>
AS 400
Posted by MaryA at 1/8/2007 3:43:01 AM
I am trying to connect to as400 using oledbconnection
the connection is opened but when i try to retreive data i get an error
message
cn = New OleDb.OleDbConnection(StrAS400)
cn.Open()
cmd = New OleDb.OleDbCommand(StrSql, cn)
dr = cmd.ExecuteReader(Com... more >>
Typed Dataset and transactions in ADO.NET 2.0
Posted by STeW at 1/8/2007 3:04:00 AM
Hi all,
I have a general question about typed datased and transaction. Do you
anybody know the best way how to manage transaction typed dataset? Generaly,
when I create dataset and INSERT/UPDATE/DELETE command in a table adapter,
there are connections on commands which are not in transactio... more >>
OT: Looking for a good, free and simple XHTML editor
Posted by Tomasz at 1/8/2007 1:21:03 AM
Hi Everybody!
I am looking for some good, free and *simple* xml/xhtml editor I could
recommend my students. Yes, I know about Visual Web Developer 2005 Express
Edition, but I mean *simple*. I teach an introductory class and most of my
students would be overwhelmed.
Thanks for any hints,
... more >>
|