Netphoria Message Board
Donate to Netphoria to Remove All Ads, Click here for more Info.

Go Back   Netphoria Message Board > General Boards > General Chat Message Board
Register Donations Netphoria's Amazon.com Link Members List Photo Album Mark Forums Read
Netphoria Donations- Click Here
       
Welcome to the Netphoria Message Board.

Reply
 
LinkBack Thread Tools Display Modes
Old 12-05-2008, 06:39 AM   #1 (permalink)
Mo
Apocalyptic Toaster
 
Mo's Avatar
 
Posts: 15,931
Question Anyone good with MSSQL?

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!

 
Mo is offline
Reply With Quote
Sponsored Links
Your Ad Here
Old 12-05-2008, 06:44 AM   #2 (permalink)
no more than sympathy
 
severin's Avatar
 
Location: lying on the floor
Posts: 14,581
Default

what do you want to do exactly? i mean, working with mssql is my job, but i have no idea what you want to do

you can also call me...

 
severin is offline
Reply With Quote
Old 12-05-2008, 06:51 AM   #3 (permalink)
no more than sympathy
 
severin's Avatar
 
Location: lying on the floor
Posts: 14,581
Default

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

 
severin is offline
Reply With Quote
Old 12-05-2008, 07:09 AM   #4 (permalink)
Mo
Apocalyptic Toaster
 
Mo's Avatar
 
Posts: 15,931
Default

Thank fucking god for uncles.

The problem is that we never even touched a second filegroup, since we didn't need it.
But I have the whole three-day weekend to get into that...

Thanks a lot

 
Mo is offline
Reply With Quote
Old 12-05-2008, 07:22 AM   #5 (permalink)
SAIKYO!!!
 
ChristHimself!'s Avatar
 
Location: I did it father!
Posts: 20,191
Default

netphoria: bringing families together

 
ChristHimself! is offline
Reply With Quote
Old 12-05-2008, 07:45 AM   #6 (permalink)
no more than sympathy
 
severin's Avatar
 
Location: lying on the floor
Posts: 14,581
Default

Quote:
Originally Posted by antipop View Post
Thank fucking god for uncles.

The problem is that we never even touched a second filegroup, since we didn't need it.
But I have the whole three-day weekend to get into that...

Thanks a lot
ok, i've got it figured out. what your table needs is a primary key for this to work, so if it doesn't have, please add one

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



 
severin is offline
Reply With Quote
Old 12-05-2008, 07:54 AM   #7 (permalink)
Mo
Apocalyptic Toaster
 
Mo's Avatar
 
Posts: 15,931
Default

Dankeschön

 
Mo is offline
Reply With Quote
Old 12-05-2008, 07:58 AM   #8 (permalink)
no more than sympathy
 
severin's Avatar
 
Location: lying on the floor
Posts: 14,581
Default

Quote:
Originally Posted by antipop View Post
Dankeschön
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

 
severin is offline
Reply With Quote
Old 12-05-2008, 09:05 AM   #9 (permalink)
Mo
Apocalyptic Toaster
 
Mo's Avatar
 
Posts: 15,931
Default

Woo, I did it!


God, I hate MSSQL so much.

 
Mo is offline
Reply With Quote
Old 12-05-2008, 09:25 AM   #10 (permalink)
no more than sympathy
 
severin's Avatar
 
Location: lying on the floor
Posts: 14,581
Default

Quote:
Originally Posted by antipop View Post
Woo, I did it!
oder wer

and i actually like it, but i deal with it on a daily basis and do stuff with it people seldom need to do. you can be surprisingly creative with mssql

 
severin is offline
Reply With Quote
Old 12-05-2008, 09:27 AM   #11 (permalink)
Mo
Apocalyptic Toaster
 
Mo's Avatar
 
Posts: 15,931
Default

Hehe...

Our Belgian and Mexican customers say 'thanks' - we just halved their workflow time. Pfew.
No off to a long weekend.

 
Mo is offline
Reply With Quote
Old 12-05-2008, 09:30 AM   #12 (permalink)
no more than sympathy
 
severin's Avatar
 
Location: lying on the floor
Posts: 14,581
Default

Quote:
Originally Posted by antipop View Post
Hehe...

Our Belgian and Mexican customers say 'thanks' - we just halved their workflow time. Pfew.
No off to a long weekend.
i hope you guys thought of the problems with having data on a ramdisk though..like, it being gone whenever you turn off the machine...

 
severin is offline
Reply With Quote
Old 12-05-2008, 09:32 AM   #13 (permalink)
Mo
Apocalyptic Toaster
 
Mo's Avatar
 
Posts: 15,931
Default

Duh...

That's not really a problem since said data is only important for five seconds, after that we don't care where it goes.

 
Mo is offline
Reply With Quote
Old 12-05-2008, 01:09 PM   #14 (permalink)
no more than sympathy
 
severin's Avatar
 
Location: lying on the floor
Posts: 14,581
Default

Quote:
Originally Posted by antipop View Post
Duh...

That's not really a problem since said data is only important for five seconds, after that we don't care where it goes.
so you go through this hassle for a 5 second gain?

 
severin is offline
Reply With Quote
Old 12-05-2008, 01:12 PM   #15 (permalink)
Mo
Apocalyptic Toaster
 
Mo's Avatar
 
Posts: 15,931
Default

Well, actually it's running quietly in the background now, but... yeah, pretty much. If you are digitizing hundreds of CDs a day every second counts (I suppose).

 
Mo is offline
Reply With Quote
Sponsored Links
Your Ad Here
Reply


Thread Tools
Display Modes

Google


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -5. The time now is 09:38 PM.


Your Ad Here

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0

Smashing Pumpkins, Alternative Music
& General Discussion Message Board and Forums
www.netphoria.org - Copyright © 1998-2009