Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
You can't think of a SQL Server database as an Access database, it's whole 'nother animal. Get yourself MSDE from Microsoft (it's a free download). After working with it a bit you'll have answered a lot of questions. SQL Server creates new, imports, and exports. To do it through code requires TSQL knowledge, however you might be able to do it with simple, but equivelant Execute-Non-Query statements - I've never tried to be honest, but you will need to still worry about the connection and login, and the server still has to exist at some location regardless of how you do it.
Posted
You can always detach a sql database (sp_detach_db)' date=' copy the .mdf .ldf (and any .ndf i9f they exist) to the new server and can then attach them there (sp_attach_db)[/quote']

 

What are these sp_attatch_db and sp_detach_db u speak of?

Also, im not to familar in this whole subject. do you think you could explain a little more. ie, im not sure what servers my users are going to have, so do i have to make a new one? how?

  • Administrators
Posted

sp_attach_db and sp_detach_db are two stored procedures that are part of a standard SQL server install.

If you use a tool like Query Analyzer to execute them they will allow you to copy the physical DB files from one location to another and then re-attach the database to the new server - effectively allowing you to copy a DB between PCs.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...