Click here to Skip to main content
15,918,808 members
Home / Discussions / Database
   

Database

 
AnswerRe: How to do a Select/Where x=NULL Pin
S Pandian25-Aug-06 22:37
S Pandian25-Aug-06 22:37 
QuestionProgramming SQL Database Question Pin
Jethro6324-Aug-06 10:11
Jethro6324-Aug-06 10:11 
AnswerRe: Programming SQL Database Question Pin
Colin Angus Mackay24-Aug-06 11:23
Colin Angus Mackay24-Aug-06 11:23 
GeneralRe: Programming SQL Database Question Pin
Jethro6327-Aug-06 21:22
Jethro6327-Aug-06 21:22 
GeneralRe: Programming SQL Database Question Pin
Colin Angus Mackay27-Aug-06 21:51
Colin Angus Mackay27-Aug-06 21:51 
GeneralRe: Programming SQL Database Question Pin
Jethro6329-Aug-06 3:05
Jethro6329-Aug-06 3:05 
GeneralRe: Programming SQL Database Question Pin
Colin Angus Mackay29-Aug-06 11:23
Colin Angus Mackay29-Aug-06 11:23 
GeneralRe: Programming SQL Database Question Pin
Jethro6331-Aug-06 3:17
Jethro6331-Aug-06 3:17 
Hi Colin:

I have set up the following SqlCommand object:

<br />
SELECT COUNT(*) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = StationData<br />


Visual Studio automatically altered the text of this command to read:

<br />
SELECT COUNT(*) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = [StationData]<br />


When I execute this using ExecuteScaler, an exception is thrown. The exception text reads: "Invalid column name 'StationData'".

This is puzzling, as the SQL command is clearly referring to a table, not a column.

Mark
GeneralRe: Programming SQL Database Question Pin
Colin Angus Mackay31-Aug-06 8:49
Colin Angus Mackay31-Aug-06 8:49 
GeneralRe: Programming SQL Database Question Pin
Jethro6331-Aug-06 9:13
Jethro6331-Aug-06 9:13 
QuestionPage Performance Pin
Amit Kumar G24-Aug-06 7:41
Amit Kumar G24-Aug-06 7:41 
AnswerDon't recache the data Pin
Ennis Ray Lynch, Jr.24-Aug-06 10:35
Ennis Ray Lynch, Jr.24-Aug-06 10:35 
QuestionConnector/Net 5.0.0 and Attributes Pin
knoppis24-Aug-06 6:42
knoppis24-Aug-06 6:42 
GeneralImport Data Into SQL Server 2005 Express Pin
Bassam Abdul-Baki24-Aug-06 6:36
professionalBassam Abdul-Baki24-Aug-06 6:36 
GeneralRe: Import Data Into SQL Server 2005 Express Pin
Mike Dimmick24-Aug-06 12:19
Mike Dimmick24-Aug-06 12:19 
GeneralRe: Import Data Into SQL Server 2005 Express Pin
Bassam Abdul-Baki25-Aug-06 2:49
professionalBassam Abdul-Baki25-Aug-06 2:49 
QuestionHow do I write this query? Pin
netDeveloper24-Aug-06 1:00
netDeveloper24-Aug-06 1:00 
AnswerRe: How do I write this query? Pin
Colin Angus Mackay24-Aug-06 2:17
Colin Angus Mackay24-Aug-06 2:17 
Questionexport dataset to excel?? Pin
steven_wong23-Aug-06 23:21
steven_wong23-Aug-06 23:21 
QuestionStored Proc Error help. Pin
vipinpaliwal198023-Aug-06 21:04
vipinpaliwal198023-Aug-06 21:04 
AnswerRe: Stored Proc Error help. Pin
Navi1523-Aug-06 23:34
Navi1523-Aug-06 23:34 
QuestionSql query Pls help [modified] Pin
vipinpaliwal198023-Aug-06 20:54
vipinpaliwal198023-Aug-06 20:54 
AnswerRe: Sql query Pls help Pin
Malcolm Smart23-Aug-06 21:00
Malcolm Smart23-Aug-06 21:00 
AnswerRe: Sql query Pls help Pin
bose_here23-Aug-06 21:17
bose_here23-Aug-06 21:17 
AnswerRe: Sql query Pls help Pin
Edbert P23-Aug-06 21:21
Edbert P23-Aug-06 21:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.