RE: two sql statement questions
- From: v-kevy@xxxxxxxxxxxxxxxxxxxx (Kevin Yu [MSFT])
- Date: Mon, 13 Nov 2006 05:35:34 GMT
Hi Dave,
As far as I know, SELECT TOP is a standard SQL statement, and can be run on
every database engine. So, even if you're connecting to a database through
ODBC, you can use this syntax.
The refresh dataset process is actually utilizing the feature that SQL
server supports multiple SQL statements execution. However, there are some
issues that prevents this realize with ODBC.
1. Not all database supports multiple SQL statements.
2. Getting the last inserted identity is unique with each database.
If you're trying to run this from ODBC, and you do know what statement can
get the identity, you can put the insert statement and this in 2
OdbcCommand and make the 2 command in one Transaction. Which will help you
achieve this.
HTH.
Kevin Yu
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
.
- Follow-Ups:
- RE: two sql statement questions
- From: David Thielen
- RE: two sql statement questions
- Prev by Date: RE: [ODBC SQL Server Driver][TCP/IP Sockets]ConnectionWrite (send()) e
- Next by Date: RE: two sql statement questions
- Previous by thread: RE: [ODBC SQL Server Driver][TCP/IP Sockets]ConnectionWrite (send()) e
- Next by thread: RE: two sql statement questions
- Index(es):
Relevant Pages
|