Find Column in SQL table With Info Schema

by ebarcza 2/26/2013 12:56:00 PM
SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME LIKE '%Export%'

Tags:

SQL SERVER

Using Linq to filter a datatable and bind to Grid

by ebarcza 2/5/2013 4:14:00 AM
   1:   ds = whiteboard.GetWhiteboard_InterConnects(Convert.ToDateTime(WhiteboardDate), WhereClause);
   2:   
   3:   dt = ds.Tables[0];
   4:   var query =
   5:      from record in dt.AsEnumerable()
   6:      orderby record.Field<int>("TL")
   7:      where record.Field<int>("TL") > 0
   8:      select record;
   9:   
  10:  rlvInterConnects.DataSource = query.AsDataView();

Tags: , ,

.NET | LINQ

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen

About the author

Name of author Author name
Something about me and what I do.

E-mail me Send mail

Calendar

<<  March 2019  >>
MoTuWeThFrSaSu
25262728123
45678910
11121314151617
18192021222324
25262728293031
1234567

View posts in large calendar

Recent comments

Tags

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2019

Sign in