If you're already connected to a specific database you can use the
following query to determine if the table exists.
SELECT table_name FROM INFORMATION_SCH EMA.TABLES
WHERE table_type = 'BASE TABLE'
The other choice for table_type is 'VIEW'.
--Mary
On Sun, 18 Apr 2004 06:41:02 -0700, "Sam Johnson"
<anonymous@disc ussions.microso ft.com> wrote:
[color=blue]
>Hi,
>
>how can I test if a specific table on an SQL- Server (that I'm connected to) exists or not?
>
>Thanks
>Sam[/color]
If you're already connected to a specific database you can use the
following query to determine if the table exists.
SELECT table_name FROM INFORMATION_SCH EMA.TABLES
WHERE table_type = 'BASE TABLE'
The other choice for table_type is 'VIEW'.
--Mary
On Sun, 18 Apr 2004 06:41:02 -0700, "Sam Johnson"
<anonymous@disc ussions.microso ft.com> wrote:
[color=blue]
>Hi,
>
>how can I test if a specific table on an SQL- Server (that I'm connected to) exists or not?
>
>Thanks
>Sam[/color]
"Sam Johnson" <anonymous@disc ussions.microso ft.com> wrote in message
news:6E8AF8A0-6818-400D-AFAB-A1387201F54B@mi crosoft.com...[color=blue]
> Hi,
>
> how can I test if a specific table on an SQL- Server (that I'm connected
> to) exists or not?
>
> Thanks
> Sam[/color]
"Sam Johnson" <anonymous@disc ussions.microso ft.com> wrote in message
news:6E8AF8A0-6818-400D-AFAB-A1387201F54B@mi crosoft.com...[color=blue]
> Hi,
>
> how can I test if a specific table on an SQL- Server (that I'm connected
> to) exists or not?
>
> Thanks
> Sam[/color]
Comment