Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
I cannot use Except keywords due to version problem. Anyone here know. How can i select all rows except not those rows which contain specific text.select all rows except those which contain specific text.I cannot use Except Keyword due to version problem in MS S.Q.L
select * from your_table
where some_column not like '%specific text%'
Select * from Table1
where EmpPU NOT Like '%CSE%'
AND EmpPU NOT Like '%ECE%'
AND EmpPU NOT Like '%EEE%'
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
So here is what I have
txtFull.Text = txtFirst.Text + “\n” + txtSecond.Text;
not sure why its not working
You should use the quotes " (Unicode: U+0022) for strings instead of the comma quotation mark “...” (Unicode: U+201C and U+201D)
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I have a table with 30 rows, i want to fetch rows from 15-25 using LINQ, tried using Range operator but that is not working in my scenario.
any help appreciated.
You can use <your linq>.Skip(n).Take(m), which will take the values between n and m.
You can use Skip() and Take() for that:
var result = query.Skip(14).Take(11);
(But I'm not 100% sure your query provider can translate that correctly to sql).
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
How can i read each row in Datagrid one at a time.
For example my datagrid has 5 data on it. And each data corresponds to a method / function in my C# solution.
I want to read it as data 1 then perform the corresponding function under that data.
then read data 2 then perform the corresponding function under that data 2. and so on..
Can anyone give me some idea how?
I assume you are not following MVVM, Get the Items From Your DataGrid like this,
var tmplist = (ObservableCollection<YourDataGridObject>)DataGrid.ItemsSource;
foreach (YourDataGridObjectitm in tmplist)
{
///Access elements
}
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 8 years ago.
Improve this question
select cast(' ' as varchar(1000)) as myfield, otherfield
from tab1;
I need to convert above SQL to Linq-To-Sql.
Maybe:
from item in dataContext.Items
select new { MyField = "", Item = item };
Unfortunately, AMAIK, there is no way to declare * in projection in LINQ. Thus to have all other fields alongside your MyField field, you should write them all.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
For example I have this string:
BTW This is a comment "hahaha"
BTW is a comment operator and all statements after it are ignored.
I need to put BTW as 'comment_operator' and 'This is a comment "hahaha"' as 'comment' in a datagridview.
But I can't do it because I used space as a delimiter in my code, so 'This is a comment "hahaha"' will be concatenated too but I need it as it is.
Can someone enlighten me with this? Thanks.
I assume you want the separate 2 parts by the first occurrence of space. You can use the code below:
string text = #"BTW This is a comment ""hahaha""";
string comment_operator = text.Substring(0, text.IndexOf(' '));
string comment = text.Substring(comment_operator.Length + 1);