Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ExecuteNonQuery doesn't respect local tables
Message
From
10/11/2005 12:03:54
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
ASP.NET
Category:
ADO.NET
Environment versions
Environment:
VB.NET 1.1
OS:
Windows XP SP1
Database:
MS SQL Server
Miscellaneous
Thread ID:
01067192
Message ID:
01067233
Views:
15
This message has been marked as the solution to the initial question of the thread.
>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.

Thom,
It works for me. Do you get the error when you create it? Or when you disconnect and connect again?
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform