Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Attach SQL database

Status
Not open for further replies.

moolie

Programmer
May 7, 2002
193
CA
Hello all.

I'm trying to create a function in an Access front end that will allow me to attach and detach database's on the hosting SQL server. Any suggestions?
 
thanks for the responce.

I am changing my request.

I have been able to connect using a script run through osql from command line that I will activate from access no biggie.

exec sp_attach_db N'test',
@filename1 = N'C:\test\test.mdf'
@filename2 = N'C:\test\test.ldf'
go

This attached the db in sql server and calls in TEST.

Next I need to add a user login to this db and assign permissions to it.

Maybe the sql server forum would be better.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top