all groups > dotnet ado.net > october 2007 > threads for october 22 - 28, 2007
Filter by week: 1 2 3 4 5
How much of the functionality of SQL Server is mirrored in ADO.Net
Posted by B. Chernick at 10/28/2007 3:48:00 PM
Ok, bear with me. This is a bit lengthy. This roughly explains a real-life
legacy data structure problem I’m having.
Assume a SQL Server 2000 database with 2 tables, Table1 and Table2.
Table1 has fields id1 (Integer, primary key, but NOT an identity field) and
content (varchar 10). ... more >>
Missing first record
Posted by EdwardH at 10/28/2007 3:26:00 PM
Using asp.net and .net framework 2 and SQL server 2000
I am using simple SELECT statement in SP to retrieve data and then bind to a
datagrid but fail to pick up the first record in the dataset:
invConn = New
SqlConnection(ConfigurationManager.ConnectionStrings("Connectstring").Connec... more >>
Get Query string from Dataset/Datatable
Posted by Johnny E. Jensen at 10/27/2007 11:47:48 PM
Hello
When i fetch data from database i do the following:
DataSet ds = new DataSet();
OledbConnection con = new OledbConnection(ConnectionString);
using ( OledbCommand cmd = con.CreateCommand())
{
cmd.CommandText = "SELECT * FROM [tblCustomers] WHERE [CustomerName]
LIKE 'A%';";
... more >>
Save mix data in database
Posted by Husam at 10/27/2007 10:43:00 PM
Hi EveryBody:
What is the data type that I have to use when I want to save mix data in
database for example photos,music,text fiel,doc file and movies ?
any help will be appreciated regard's
Husam... more >>
DAtaset comparision ??
Posted by calderara at 10/27/2007 2:41:00 AM
Dear all,
What is the best way to compare 2 dataset ?
What I mean by that is not comparing that its teh same object but allso that
rows data values in both .
In other words I need an effeective way which tells me if records between 2
dataset are the same or different
thnaks for help ... more >>
databinding
Posted by at 10/26/2007 9:39:38 PM
I have a checkbox (along with textboxes) that I am trying to use as a
databound control to an integer field on a database. I am using
Format and Parse with the checkbox to write -1 to the database if the
checkbox is unchecked and 0 if checked. I am finding that the Dataset
and Database are not... more >>
there seems to be some overhead between SQL Server 2005 and a CLR function written in C#. Why is this?
Posted by DR at 10/26/2007 9:24:24 PM
there seems to be some overhead between SQL Server 2005 and a CLR function
written in C#. Why is this?
I have a simple wraper around System.Diagnostics.Stopwatch.GetTimestamp() :
public partial class UserDefinedFunctions
{
[Microsoft.SqlServer.Server.SqlFunction]
public static lon... more >>
How do I (cleanly) dispose of a row in DataGridView DataError even
Posted by B. Chernick at 10/26/2007 11:13:01 AM
(Reposted from Winforms forum. Not sure where this belongs.)
I'm writing a Winforms project in VB/Dot Net 2.0 and I'm having some trouble
handling the DataError event.
The grid is bound to a filtered binding source. Add is enabled. Part of
the primary key is set by one of the cells ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Inconsistent dat paremeter in query
Posted by HMike at 10/25/2007 11:14:00 PM
I am using the same code to query different databases, one SQL 2005 and the
other SQL 2000. The query contains a date paremeter @Date...
Me.SqlSelectCommand1.Parameters.AddRange(New
System.Data.SqlClient.SqlParameter() {New
System.Data.SqlClient.SqlParameter("@Date", System.Data.SqlDbType.D... more >>
web service for accessing db?
Posted by Andy at 10/25/2007 8:17:16 PM
hi,
is web service good solution for accesing (havily) database (remote or not)?
that looks slow, any other methods for secure connection? SOme of coworkers
wants to use web service because they don't want
expose connection string.
thanks fro advise
... more >>
Null Dates in Dataset
Posted by Robert E. Flaherty at 10/25/2007 10:19:00 AM
Using C# 2.0 & SQL Server 2000, have a stored procedure that return 0, 1, or
more rows. At least one of the columns is a date and it may null. I have
created an XSD of the output from the stored proc. The entry for the
nullable date column is "<xs:element name="Sent_Dttm" minOccurs="0"
ty... more >>
what are the memory caps for threads running as a CLR stored procedure executed by sql server 2005? is it limited by OS only or also by sql servers me
Posted by DR at 10/24/2007 8:37:56 PM
what are the memory caps for threads running as a CLR stored procedure
executed by sql server 2005? is it limited by OS only or also by sql servers
memory limits? e.g. lets say my clr stored procedure is executed by sql
server 2005 then it creates 10 threads and each thread builds a giant arra... more >>
Access vs vb.net/ado.net
Posted by John at 10/24/2007 7:43:36 PM
Hi
What are the advantages of writing an app in vb.net/ado.net as opposed to MS
Access? I need this to sell the idea to the management.
Many Thanks
Regards
... more >>
Unable to start TSQL Debugging. Could not attach to SQL Server Process on 'srvname'. The RPC server is unavailable.
Posted by DR at 10/24/2007 7:37:41 PM
Unable to start TSQL Debugging. Could not attach to SQL Server Process on
'srvname'. The RPC server is unavailable.
I get this error when I try to run a SQL Server Project with a CLR stored
Procedure in it. The target DB is SQL Server 2005 and im using VS 2005. I
simply create a new SQL Ser... more >>
datatable vs custom List<MyClass>
Posted by paul at 10/24/2007 5:16:01 PM
Let's say I want a read-only copy of a simple query that joins 2 tables. When
I compare a DataTable (adapter.fill) and a custom List + DataReader, I see
that the custom sol'n is about 6x faster and takes 5x less memory. For my
test I read about 100K rows and then bind to a grid so the timing ... more >>
how to insert record in a dataSet into another database table
Posted by Toyin at 10/24/2007 7:25:02 AM
hi, pls can someone help me out. its very urgent i get the solution today. i
have a webservice that i use to retrieve new record from a database, also
there is a client application (window form) that calls this service which
returns the record in a dataset. now i need to insert the record in t... more >>
Memory keeps creaping up...why?
Posted by Jerry at 10/23/2007 9:53:37 AM
I have a simple subroutine (see below) which reads a table and populates =
the items of a combobox. As the subroutine is executed, I'm watching =
the taskmanager and the memory in use increases; however, once I get to =
the Error_Exit: logic and start to close and dispose my memory =
variables,... more >>
Copy database schema from Access to SQL Server
Posted by schneider NO[at]SPAM rehm.de at 10/23/2007 7:36:49 AM
Hi all,
I'm trying to write an application that takes an Access database as
template to customize a new or existing SQL Server database. When
something in the template database is changed, I want to apply these
changes to the SQL database. For example if new columns are added to a
table or co... more >>
Decimal data type wont work!
Posted by Cirene at 10/22/2007 9:21:40 PM
I have a SQL Express db with a table field defined as data type
decimal(18,0).
When I type in .785 in the table field it rounds it to 1.
Any ideas why????
... more >>
Question about finding records using Stored Procedures
Posted by news.microsoft.com at 10/22/2007 5:56:40 PM
I have a table called Customer. I have a locator screen which is composed
of a grid and a couple of search boxes. The user is going to choose which
customer records to display in the grid. The choices are LastName or
firstName or any part of them, Social Security Number, Status
(Active,In... more >>
Question about SUM query
Posted by Cirene at 10/22/2007 12:55:28 PM
I have a "transaction" table with 2 columns, TransTypeId and TransAmt.
Example:
TransTypeId TransAmt
A 100
A 200
B 100
C 50
B 100
A 100
I am ... more >>
i have a problem . please help me
Posted by hamid hashemi at 10/22/2007 3:47:58 AM
Hello,
I am writing ASP.NET application using SQL Server 2005 Express Edition.
my connection string is :
"Data
Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|\\DB.mdf;Integrated
Security=True;Connect Timeout=30;User Instance=True";
I used connection strings syntax from www.connec... more >>
|