all groups > dotnet ado.net > july 2004 > threads for monday july 26
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Sql Command Paramaters
Posted by SubstandardSnowman at 7/26/2004 8:35:20 PM
I'm building a dynamic command like this.
"SELECT * FROM Clients WHERE FirstName LIKE @FirstName"
and I set the paramater like this.
sqlCMD.Paramaters.Add("@FirstName", "%" & fnameVariable & "%")
The reason I'm doing this is I need it to search the whole field to see if it contains any of ... more >>
how to use default value in sqlCommand
Posted by tonyqus at 7/26/2004 2:41:09 PM
In Sql Server, I can use syntax to insert a record with default value:
insert table1(a,b,c)values('A','B',default)
But in .Net, if I want to use default value in Adapter.InsertCommand,for
example,
SqlAdapObj.InsertCommand.Parameters.Add(New
SqlClient.SqlParameter("@testField"))
SqlAdapObj.... more >>
BLOB,and storing duplicate documents to create document version system
Posted by vikas NO[at]SPAM thenextround.com at 7/26/2004 1:21:50 PM
I am trying to create a document version management system using
ADO.net and SQL server.
I am storing the document in an Image field in the database.
I could sucessfully implement check in , check out, undo check out
functions but i am having one problem.
When i check out a document , make some... more >>
Update in DataGrid
Posted by Mariame at 7/26/2004 11:21:49 AM
Hi everyone,
how could i update in datagrid & then update in the database???
Thx & Regards
begin 666 smiley_doh.gif
M1TE&.#EA$ `0`.8``/GRZ_;NY/GMWN[N[OGKV?GHT_CFS_CDR>3DY-[FWOGA
MPOG?OOG;M?G7K?G4I=C8V.+2OO_,F?/0H_C+D?+,F_C*C]_1OOC)C?C&A<S,
MS/''D_#"A?2_?/F^<_:Y:[#,T/&]>=>^GO>U:_FW8OFT6Z[... more >>
generic ADO.NET classes?
Posted by Sankar Nemani at 7/26/2004 10:04:36 AM
Is there any discussion on the availability of generic classes for ADO.NET
classes to create strongly typed versions? We were able to create typed
datasets easily but it was not easy to create a typed datatable "that could
give a typed DataView" since DataView is what is mostly used for
databind... more >>
Getting data in class hierarchy (C#)
Posted by MattC at 7/26/2004 9:47:38 AM
I have a class hierarchy that is, for simplicity sake, two levels deep.
User -> MoreSpecificUser
In most cases it will only be necessary for me to retrieve information for
one or the other. I figure if I dont need all the data that the parrent has
to offer why get it.
So here was my solu... more >>
How to use SQLBinary?
Posted by Roy Chastain at 7/26/2004 8:41:32 AM
I have a varbinary field in my table. (It has the potential of being rather large.)
I need to read this value, change it and write it back.
I have gotten as far as using the GetSQLBinary method of the SqlDataReader. What I don't know is what do I actually have at that
point. I would assume... more >>
|