
Basically don't copy half of a create table statement and you should be ok. There should be no issues with formatting as long as you copy the statement in it's entirety.

Yes, there would be no issues with opening the file in notepad and copying from there.

Nathon, Yeah, the forums need a little better formatting tools. I think, due to my lack of knowledge, that I am approaching this all wrong though. IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'.') AND type = 'D')ĭo I just add the two lines you've suggested to the top of that query before I execute? My instincts here tell me that, because these tables don't exist in my new database, that this is going to produce an error because the above few lines appear to want to "Alter" the table? Also, I can create a new "query" in my hosted MSSQL database, but it won't let me cut n paste the query code from the. IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'.') AND type = 'F')ĪLTER TABLE. ? Here is the first section (10 lines) of code held in my. Yes, it was a dump of objects + data from the database. I would appreciate any advice / assistance. Msg 262, Level 14, State 1, Line 3 CREATE TABLE permission denied in database 'master'. Msg 262, Level 14, State 1, Procedure dt_getpropertiesbyid_u, Line 18 CREATE PROCEDURE permission denied in database 'master'. What am I missing / doing wrong? After the query completed, there were errors showing such as: Msg 262, Level 14, State 1, Procedure dt_getobjwithprop_u, Line 21 CREATE PROCEDURE permission denied in database 'master'. It did ask me for the connection details for my new hosted MSSQL database, so I assumed it was uploading to there but when I open that in MSSQL SMSE 2008 it doesn't show any new tables.

sql file and then clicking "Execute", which did take a bit of time to complete, but I don't understand what has happened in that process. I've tried simply going "File > Open", selecting my. How do I do this? I'm using Microsoft SQL Server Management Studio Express 2008. sql backup file into my new hosted MSSQL database. I have a new web hosting company, who I also purchase MSSQL database space from, and I want to transfer the data from my. sql file which was a dump from an MSSQL database table hosted with a web hosting company.
