![]() |
|
|
|||||||
| Register | Donations | Netphoria's Amazon.com Link | Members List | Photo Album | Mark Forums Read |
![]() |
|
| Welcome to the Netphoria Message Board. | |
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Apocalyptic Toaster
![]() ![]() ![]() ![]() ![]()
Posts: 15,931
|
I hate this shit, but I'd need to externalize ONE table into a second database (i.e. in a RAM drive).
Now I know both MySQL and Oracle offer this feature, but does MSSQL? And if it's possible, how? I already thought of simply ordering a plug-in (now for only $4.999,-), but I don't really think it's worth it ![]() Thanks a lot.
__________________
Save Russian Jews, collect valuable prizes! |
|
|
|
| Sponsored Links |
|
|
|
|
#3 (permalink) |
|
no more than sympathy
![]() ![]() ![]() ![]() ![]() Location: lying on the floor
Posts: 14,581
|
it sounds like you want to have a database on a ramdrive where there's one table in it, which has been in another database previously?
if so: create a database in the sql-manager and put the datafiles onto the ramdrive, then do: select * into [new_database]..tablename from [old_database]..tablename and voila |
|
|
|
|
|
#6 (permalink) | |
|
no more than sympathy
![]() ![]() ![]() ![]() ![]() Location: lying on the floor
Posts: 14,581
|
Quote:
![]() Code:
alter database [dbname] add filegroup ramfilegroup go alter database [dbname] add file (name= ramfile, filename='[path on ramdisk]') to filegroup ramfilegroup go alter table [tablename] drop constraint [primary key name] with (move to ramfilegroup) go alter table [tablename] add constraint [primary key name] PRIMARY KEY([columns of primary key]) go |
|
|
|
|
|
|
#8 (permalink) |
|
no more than sympathy
![]() ![]() ![]() ![]() ![]() Location: lying on the floor
Posts: 14,581
|
bitteschön. i'm not quite sure if other indezes on the table are moved as well, so it might be a good idea to drop every constraint and index (apart from the primary key one) before you do those steps above and then re-apply them afterwards to make sure they are on the ramdisk as well
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Stuff that sucks | Pasta of Muppet | General Chat Message Board | 7 | 09-13-2008 01:03 PM |
| Anyone Who Cares About This Band Understands This | silverfrick | Smashing Pumpkins/Billy Corgan Discussion | 18 | 06-20-2008 07:50 PM |
| 10 year old little shit | Elvis The Fat Years | General Chat Message Board | 13 | 05-12-2008 05:55 PM |
| who missed sh sh shayne? | sh sh shayne | General Chat Archive | 32 | 02-12-2008 11:19 PM |