| | |
Backuping error
Please support our MS SQL advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Oct 2008
Posts: 57
Reputation:
Solved Threads: 1
Hello!
I want to use the following code
But all I ever get is the error message: "Incorrect syntax near IN"
How could I solve this?
But when I miss the IN clause, it works perfectly.
I think the problem is that I'm not connected to the second database, which I need to copy the data into. But how is it possible to be connected to two databases via one connection string?
Thank you very much!
I want to use the following code
sql Syntax (Toggle Plain Text)
SELECT * INTO Persons_Backup IN 'Backup.mdb' FROM Persons
But all I ever get is the error message: "Incorrect syntax near IN"
How could I solve this?
But when I miss the IN clause, it works perfectly.
I think the problem is that I'm not connected to the second database, which I need to copy the data into. But how is it possible to be connected to two databases via one connection string?
Thank you very much!
Last edited by peter_budo; Nov 19th, 2008 at 8:26 pm. Reason: Please [code] tag, instead of [quote]
•
•
Join Date: Dec 2007
Posts: 252
Reputation:
Solved Threads: 27
try this
sql Syntax (Toggle Plain Text)
USE Persons; GO BACKUP DATABASE Persons TO DISK = 'Z:\SQLServerBackups\Persons.Bak' WITH FORMAT, MEDIANAME = 'Z_SQLServerBackups', NAME = 'Full Backup of Persons'; GO
![]() |
Similar Threads
- Spyware..about:blank help plz (Viruses, Spyware and other Nasties)
Other Threads in the MS SQL Forum
- Previous Thread: Need Advice please
- Next Thread: Upload an Image on SQL
| Thread Tools | Search this Thread |
connectingtodatabaseinuse count cursor data database datepart deadlock delete_trigger highperformancecomputing hpc hpcserver2008 ibm iis loop maximum microsoft ms mssql multithreading news number permission query reporting result server services sets source sql sqlserver sqlserver2005 supercomputing uniqueid update view





