PC Review


Reply
Thread Tools Rate Thread

deleteting a table in SQL server

 
 
thriveni
Guest
Posts: n/a
 
      8th Jun 2004
I use access2000.
I have a DSN established to SQL server. I have a table in
SQL server that is not and should be linked in access.
However I want to delete this table if it exists. How can
I do through VBA/DAO ?
any help would be appreciated.

 
Reply With Quote
 
 
 
 
Chris Nebinger
Guest
Posts: n/a
 
      9th Jun 2004
Do you want to delete the table in SQL Server, or just the
link?

If you want to delete it, just issue the following SQL
Statement:

Drop Table TableName


If you want to delete the link:
On Error Resume Next
DoCmd.DeleteObject acTable,"TableName"


Chris Nebinger


>-----Original Message-----
>I use access2000.
>I have a DSN established to SQL server. I have a table in
>SQL server that is not and should be linked in access.
>However I want to delete this table if it exists. How can
>I do through VBA/DAO ?
>any help would be appreciated.
>
>.
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Outer Join SQL Server table with Access table, How ? Bing Microsoft Access External Data 2 11th Sep 2009 08:49 PM
How to fetch data from Sql Server table for Comparison and how to do the table binding? ajmera.puneet@gmail.com Microsoft ADO .NET 0 31st Jul 2006 06:31 PM
dynamic query to insert rows from sql server attached table to mdb table webdb_advisor@hotmail.com Microsoft Access VBA Modules 4 29th Oct 2005 05:59 PM
SQL Server Store Procedure returning data from a temp table or a table variable to Access anasser Microsoft Access 1 21st Oct 2005 03:55 PM
Import rows from Table A/Server X to Table B/Server Y Robcast Microsoft C# .NET 1 14th Sep 2004 10:43 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:53 PM.