Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
.NET and @@identity
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00666202
Message ID:
00666412
Views:
22
Yes, I've tried both with dbnull as the result each time.
ds=sqlData.runsql("ident_current('dealer')","dealer") does work.

Do you understand why?

>Did you try
ds=sqlData.runsql("select @@identity","dealer")
>ds=sqlData.runsql("select scope_identity()","dealer")
>
>
>>I don't know what you mean by commandtype is text. Do you see from my info here that I am using commandtype text? If so, ident_current('dealer') is working for me though @@identity and scope_identity are not.
>>
>< snip >
Previous
Reply
Map
View

Click here to load this message in the networking platform