RE: SqlConnection question
From: Senguttuvan (cheran_76_at_yahoo.com)
Date: 04/20/04
- Next message: Edwinah63: "NOT USING RECORDSETS - "Transaction cannot have multiple recordsets with this cursor type. Change the cursor type, commit the transaction, or close one of the recordsets.""
- Previous message: Stephen Howe: "Re: Delay in displaying web pages"
- In reply to: Sam Johnson: "SqlConnection question"
- Next in thread: Jerry Pisk: "Re: SqlConnection question"
- Reply: Jerry Pisk: "Re: SqlConnection question"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 20 Apr 2004 16:46:03 -0700
Hi Sam,
The following query will return 1 if the table exist in the database. Just replace the 'Table Name' with the table name you want to check for the existence.
select count(*) from SYSOBJECTS where name = 'Table Name'
Thanks,
Senguttuvan
----- Sam Johnson wrote: -----
Hi,
how can I test if a specific table on an SQL- Server (that I'm connected to) exists or not?
Thanks
Sam
- Next message: Edwinah63: "NOT USING RECORDSETS - "Transaction cannot have multiple recordsets with this cursor type. Change the cursor type, commit the transaction, or close one of the recordsets.""
- Previous message: Stephen Howe: "Re: Delay in displaying web pages"
- In reply to: Sam Johnson: "SqlConnection question"
- Next in thread: Jerry Pisk: "Re: SqlConnection question"
- Reply: Jerry Pisk: "Re: SqlConnection question"
- Messages sorted by: [ date ] [ thread ]