renaming a table



I am using RDA to download a table of staff records from a SQL Server Db to
my SQL CE database. My problem is that you have to drop the existing table
first. If I do that and the download fails for some reason, i have lost the
table that was there. i could first check for a valid connection before
dropping the CE table but there is still a chance it could fail for other
reasons.

i was thinking that i would rename the local CE table and then drop it if
the download succeeded or name it back to its original name if the download
fails.

I wasn't sure of the best way to do this (couldn't find anything in ALTER
TABLE).

Also, I was curious how other people might have solved this problem.

Thanks,

-Rob

.



Relevant Pages

  • Re: Ftp from within excel
    ... ie when the sql server generated a csv file, this process is completed, the ... > connection when that file is done and then to start download. ... > Dim strDirectoryList As String ...
    (microsoft.public.excel.charting)
  • Re: Ftp from within excel
    ... ie when the sql server generated a csv file, this process is completed, the ... > connection when that file is done and then to start download. ... > Dim strDirectoryList As String ...
    (microsoft.public.excel.misc)
  • Re: Ftp from within excel
    ... ie when the sql server generated a csv file, this process is completed, the ... > connection when that file is done and then to start download. ... > Dim strDirectoryList As String ...
    (microsoft.public.excel.printing)
  • Re: Ftp from within excel
    ... ie when the sql server generated a csv file, this process is completed, the ... > connection when that file is done and then to start download. ... > Dim strDirectoryList As String ...
    (microsoft.public.excel.crashesgpfs)
  • Re: Ftp from within excel
    ... ie when the sql server generated a csv file, this process is completed, the ... > connection when that file is done and then to start download. ... > Dim strDirectoryList As String ...
    (microsoft.public.excel.programming)

Loading