Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I don't understand.
Message
From
13/08/2003 11:24:24
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
I don't understand.
Miscellaneous
Thread ID:
00819794
Message ID:
00819794
Views:
59
Hi,

If i send this with SPT on MSQL:
USE pub
next send:
USE Master; SELECT ?par  ; SELECT DB_NAME()
VFP ask me par, i put 1.
On MSQL Profiler i see:
exec sp_executesql N'USE Master; SELECT @P1   ; SELECT DB_NAME()', N'@P1 int', 1
Now i send on connection:
SELECT DB_NAME()
I get Master !!!!! why ?

But if i send:
USE pub
and
exec sp_executesql N'USE Master; SELECT @P1   ; SELECT DB_NAME()', N'@P1 
and
SELECT DB_NAME()
I get pub. I aspect this.

Where is VFP trick ?

Thanks
Next
Reply
Map
View

Click here to load this message in the networking platform