Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ExecuteNonQuery doesn't respect local tables
Message
 
To
All
General information
Forum:
ASP.NET
Category:
ADO.NET
Title:
ExecuteNonQuery doesn't respect local tables
Environment versions
Environment:
VB.NET 1.1
OS:
Windows XP SP1
Database:
MS SQL Server
Miscellaneous
Thread ID:
01067192
Message ID:
01067192
Views:
60
To all,

I'm running the ExecuteNonQuery method of a standard ADO.NET SQLCommand class. When I create a local table (CREATE TABLE #myTable ...) I get an error message "Invalid object name '#myTable'".

It's not my syntax, I'm using code that's derived from code I developed to create and load a DB via Query Analyzer.

I can create, populate and drop "regular" tables, but ADO.NET/SQL Server doesn't like the '#'.

TIA,
Thom C.
Next
Reply
Map
View

Click here to load this message in the networking platform