I have a website I have developed using a databse and I have created some security on the site. This ceates another DB called ASPNETDB.MDF.
The main site database is on a server at the website host. At this time the aspnetdb is in the APP_DATA folder of my website.
I want to copy the tables and their data from the aspnetdb to the main database. I have connected to both in SQL Server Mgt studio. I right clicked one of the tables I want to copy and selected AScript Table>Creat to>New Query. I copied and pasted the query to a new query for the database I want to copy the table to and ran the query. the first lines of the query are:
USE [\C:\WEBSITES\CHAMBEROFCOMMERCE - WITH SECURITY\APP_DATA\ASPNETDB.MDF]
GO
/****** Object: Table [dbo].[aspnet_Users] Script Date: 12/09/2009 14:20:00 ******/
SET ANSI_NULLS ON
GO
The first line is errored as not existing. Presumably because it does not exist on the server I am trying to copy to. What syntax should i use to point at the correct database please?
Geoff