Results 1 to 5 of 5

Thread: Need Design help to query the databse.

  1. #1
    Join Date
    Jan 2009
    Posts
    44

    Need Design help to query the databse.

    Hi,

    I am workin with visual studio 2005, framework require help with windows forms.
    I want to fetch data from database where i want to put a sql query which needs to be flexible in terms of where & order by clauses.
    Can you suggest me any better method that I should use? The application will fetch one record from database at a time.

  2. #2
    Join Date
    May 2008
    Posts
    2,389

    Re: Need Design help to query the databse.

    Try
    1. ADO.NET SQL Command Objects
    OR
    2. ADO.NET Entities framework with Linq to Entities and ESQL

  3. #3
    Join Date
    Jan 2009
    Posts
    38

    Re: Need Design help to query the databse.

    Well My databse is in Ms access & do you think ADO.NET Entities framework is worth learning for the same?

    Regards,

  4. #4
    Join Date
    Jan 2009
    Posts
    10

    Re: Need Design help to query the databse.

    If you're only bringing back 1 records at a time, why do you need an ORDER
    BY?

  5. #5
    Join Date
    May 2008
    Posts
    2,297

    Re: Need Design help to query the databse.

    what you're describing can be done against an Access/JET/ACE or a SQL
    Server database but if not done correctly, only one user will be able to
    access the data at any one time. When you execute a query

    SELECT name, address, city, state FROM Customers WHERE State = 'TX'
    ORDER BY CountyCode, Name

    you'll return all of the customers in Texas--one row at a time if you use a
    DataReader. However, until you fetch the last row, the database engine will
    (probably) impose "share locks" on the data rows (and pages) that will
    prevent changes to the underlying rows. For this reason (and many others) we
    generally fetch the rows into a server-side cursor or into a client-side
    structure like a DataTable or TableAdapter using a Fill or Load method. This
    releases the locks and lets other users access the data.

Similar Threads

  1. What mistakes to avoid in SQL Server query design
    By Galbraith in forum Software Development
    Replies: 5
    Last Post: 06-03-2010, 03:49 AM
  2. Pass query in design mode in Access 2007
    By Chandranath in forum Windows Software
    Replies: 5
    Last Post: 08-01-2010, 06:45 AM
  3. Replies: 3
    Last Post: 08-08-2009, 10:48 AM
  4. Turn on MySQL query cache to speed up query performance
    By DMA2Superman in forum Software Development
    Replies: 3
    Last Post: 07-07-2009, 10:26 AM
  5. Active Directory and DMZ design query
    By MilesAway in forum Active Directory
    Replies: 2
    Last Post: 16-02-2008, 11:48 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,258,921.09876 seconds with 17 queries