SQL Server basics

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a Dataset containing a DataTable (say, 'dt1') that has all the fields that are contained in a SQL Server database's table. In addition, it contains a field (let's call it 'HasItems') of type boolean. I want to populate 'dt1' with all the records in the SQL Server table, and populate the 'HasItems' field with True if matching records exist in another SQL Server table (actually a view), and False if no matching records exist. I could do this easily in Access, but I'm new to SQL Server, and need to know the best way to go about it. (The way I'm doing it now has me thinking, "First the earth cooled, then the dinosaurs came...")

Specific help would be appreciated, but also a reference I could use to ramp up my SQL Server skills would be nice too

Thanks.
 
* "=?Utf-8?B?cG1jZ3VpcmU=?= said:
I have a Dataset containing a DataTable (say, 'dt1') that has all the
fields that are contained in a SQL Server database's table. In
addition, it contains a field (let's call it 'HasItems') of type
boolean. I want to populate 'dt1' with all the records in the SQL
Server table, and populate the 'HasItems' field with True if matching
records exist in another SQL Server table (actually a view), and False
if no matching records exist. I could do this easily in Access, but I'm
new to SQL Server, and need to know the best way to go about it. (The
way I'm doing it now has me thinking, "First the earth cooled, then the
dinosaurs came...").

ADO.NET group:

<
Web interface:

<http://msdn.microsoft.com/newsgroup...roup=microsoft.public.dotnet.framework.adonet>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top