Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in SQL Server only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
SQL Server
replacement for DFirst() function in SQL
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
AlAsh
#1
replacement for DFirst() function in SQL
Oct 7 '10, 04:45 PM
i am translating and access application to SQL application and i need to know what you use instead of Dfirst function
thanks
NeoPa
Recognized Expert
Moderator
MVP
Join Date:
Oct 2006
Posts:
32668
#2
Oct 7 '10, 05:15 PM
I don't believe there is a direct equivalent. You would probably use a subquery instead.
Comment
Post
Cancel
ck9663
Recognized Expert
Specialist
Join Date:
Jun 2007
Posts:
2878
#3
Oct 8 '10, 06:09 AM
Not that I know of, Neo. Subquery or CTE is probably the efficient solution for this.
~~ CK
Comment
Post
Cancel
NeoPa
Recognized Expert
Moderator
MVP
Join Date:
Oct 2006
Posts:
32668
#4
Oct 8 '10, 01:02 PM
Quite right CK. I should have mentioned the CTE, or Common Table Expression, facility introduced in SQL 2005. It can make for much tidier, more readable and more efficient code.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment