Click here to Skip to main content
15,891,607 members
Home / Discussions / Database
   

Database

 
GeneralRe: try to get trigger_body over 32KB size Pin
Guillermo Rivero29-Jan-04 2:01
Guillermo Rivero29-Jan-04 2:01 
GeneralRe: try to get trigger_body over 32KB size Pin
yu-yu29-Jan-04 3:58
yu-yu29-Jan-04 3:58 
GeneralRe: try to get trigger_body over 32KB size Pin
Guillermo Rivero29-Jan-04 4:21
Guillermo Rivero29-Jan-04 4:21 
GeneralDataTable Pin
Guinness4Strength25-Jan-04 7:16
Guinness4Strength25-Jan-04 7:16 
GeneralRe: DataTable Pin
-Dr_X-25-Jan-04 8:22
-Dr_X-25-Jan-04 8:22 
GeneralRe: DataTable Pin
Rein Hillmann25-Jan-04 21:01
Rein Hillmann25-Jan-04 21:01 
Generalseach or rowfilter by word Pin
Member 76660824-Jan-04 12:11
Member 76660824-Jan-04 12:11 
GeneralRe: seach or rowfilter by word Pin
-Dr_X-24-Jan-04 14:17
-Dr_X-24-Jan-04 14:17 
Are you talking about a query or filtering a datatable?

SQL in .Net use the '%' wildcard
e.g. Select LastName From tblUsers Where LastName Like '%bri%'
This will retrieve all rows with 'bri' in the last name.

DataTable in .Net the '%' wildcard is used as well.

Dim dv as DataView
Dim dt as DataTable
Dim dr as DataRow
Dim r as Integer 'loop for each row

'Populate the DataTable
...
...
'Now take the populated dt and make it a DataView and Filter it.
dv = dt.DefaultView
dv.RowFilter = 'LastName Like '%bri%'
For r = 0 to dv.Count-1 'Rows in the dataview
dr = dv.item(r).Row
'Print the values for LastName column
System.Diagnostics.debug.WriteLine(dr.Item("LastName"))
Next

Now this was taken off the top of my head so I am sure there may be some syntax errors, but you should get the idea.

Hope this is what you were looking for.
Michael


GeneralSQL Server 2000 date comparision Pin
Sarvesvara (BVKS) Dasa23-Jan-04 22:28
Sarvesvara (BVKS) Dasa23-Jan-04 22:28 
GeneralRe: SQL Server 2000 date comparision Pin
Mazdak24-Jan-04 2:10
Mazdak24-Jan-04 2:10 
GeneralRe: SQL Server 2000 date comparision Pin
Sarvesvara (BVKS) Dasa24-Jan-04 17:45
Sarvesvara (BVKS) Dasa24-Jan-04 17:45 
GeneralRe: SQL Server 2000 date comparision Pin
Serge Lobko-Lobanovsky28-Jan-04 23:17
Serge Lobko-Lobanovsky28-Jan-04 23:17 
GeneralSQL Password Validation Does Not Work Pin
Brendan Vogt23-Jan-04 2:16
Brendan Vogt23-Jan-04 2:16 
GeneralRe: SQL Password Validation Does Not Work Pin
Steve S23-Jan-04 2:25
Steve S23-Jan-04 2:25 
GeneralRe: SQL Password Validation Does Not Work Pin
Mazdak23-Jan-04 2:32
Mazdak23-Jan-04 2:32 
GeneralRe: SQL Password Validation Does Not Work Pin
Mike Dimmick26-Jan-04 2:44
Mike Dimmick26-Jan-04 2:44 
GeneralFormatting MSDE Output Pin
monrobot1322-Jan-04 18:52
monrobot1322-Jan-04 18:52 
GeneralRe: Formatting MSDE Output Pin
Not Active23-Jan-04 3:51
mentorNot Active23-Jan-04 3:51 
GeneralRe: Formatting MSDE Output Pin
monrobot1323-Jan-04 10:54
monrobot1323-Jan-04 10:54 
QuestionCount rows with SqlDataAdapter?? Pin
hxxbin22-Jan-04 11:52
hxxbin22-Jan-04 11:52 
AnswerRe: Count rows with SqlDataAdapter?? Pin
-Dr_X-22-Jan-04 12:13
-Dr_X-22-Jan-04 12:13 
AnswerRe: Count rows with SqlDataAdapter?? Pin
Mike Dimmick23-Jan-04 0:17
Mike Dimmick23-Jan-04 0:17 
GeneralRe: Count rows with SqlDataAdapter?? Pin
hxxbin26-Jan-04 4:38
hxxbin26-Jan-04 4:38 
GeneralDatabase name via ADO Pin
Mike Eriksson22-Jan-04 1:03
Mike Eriksson22-Jan-04 1:03 
GeneralAccess query Pin
toticow22-Jan-04 0:28
susstoticow22-Jan-04 0:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.