If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
@@IDENTITY for Access -- Is it thread safe?
Is @@IDENTITY thread safe in that it returns the autoincrement value for the
most recent insert for that thread or just the most recent insert by any thread? Tim says @@IDENTITY works with ADO and but not DAO. What about ODBC? I'm looking at http://msdn.microsoft.com/library/de...asp?frame=true and I'm very confused! I'm sure that MS Access does not, for example, support stored procedures. Tim says there are a lot of TSQL features supported in MS Access. Is there a list somewhere? I'm looking at Dino "Building Web Solutions with ASP.NET and ADO.NET" and I see really fancy SQL like SELECT CASE GROUPING(o.customerid) WHEN 0 THEN o.customerid ELSE '(Total)' END AS AllCustomerSummary, CASE GROUPING (os.orderid) WHEN 0 THEN od.orderid ELSE -1 END AS IndividuallyCsutomerSummary, FROM Orders o, [Order Details] od GROUP BY o.customerid, od.orderid WITH ROLLUP Will these fancy keywords like CASE and ROLLUP work in MS Access? There used to be MSAccess SQL syntax at search.microsoft.com but I cannot find it anymore. Thanks, Siegfried Could someone kindly point me to the URL on the SQL syntax for MSAccess and specifically where the IDENTITY keyword is documented? Quite right: it's @@IDENTITY. Look here http://doc.ddart.net/mssql/sql70/globals_7.htm or search the MSDN site too. B Wishes Tim F "Siegfried Heintze" wrote in : I'm confused! This is for T-SQL (aka MS SQL Server). Does this also work for MSAccess? Yes, as long as you use the ADO library (not DAO, which was never updated to Jet 4). I'm not completely sure that ADO/T-SQL handles the entire SQL syntax, but most everyday things like @@IDENTITY, CHECK constraints, DEFAULT values and so on are there. That is why the answer to the question "Is DAO better for Access + Jet than ADO" is, "Yes, except for..." Nothing in life is ever straightforward! Best wishes Tim F |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sort descending by THREAD | Michael G. Scott | General Discussion | 1 | August 27th, 2004 08:53 PM |
outlook 03 hangs, error and won't open even in safe mode | Dan | Installation & Setup | 25 | August 3rd, 2004 01:16 AM |
Can you delete a thread? | The Old Timer | Outlook Express | 6 | June 15th, 2004 07:46 AM |
Saving posts thread in OE 6? | Michael Drach | Outlook Express | 0 | May 30th, 2004 09:23 AM |
Office XP | Ed Lester | Setup, Installing & Configuration | 1 | May 27th, 2004 09:30 AM |