Viewing 15 posts - 2,131 through 2,145 (of 3,616 total)
I've played around with schemas a bit and the problems I have had have been to do with security. To be more precise, granting access to objects in one...
December 18, 2007 at 8:29 am
In terms of design I would have 3 tables
1. Location
2. User
3. LocationUserMap
This means that locations and users are independent and the relationship between them is held in the mapping table.
December 18, 2007 at 8:13 am
Jeff Moden (12/14/2007)
So why do you recommend creating the table first?
Using SELECT INTO to create the initial table structure with no records is "blink of an eye" fast.
SELECT INTO to...
December 17, 2007 at 12:32 pm
So why would SELECT INTO not lock sysobjects?
Surely any form of creation of an object would have a small lock on sysobjects?
The other point is, how often are records created...
December 14, 2007 at 6:25 am
Jeff, I have found that small amounts of data in table variables outperforms the same thing done in temporary tables.
As data volumes increase table variables rapidly lose any advantage. ...
December 14, 2007 at 6:22 am
Let us suppose you have tables with say 25 million bank account details and child benefit information.
You allow direct read access on these tables so said government half wit can...
December 14, 2007 at 5:59 am
I don't really understand what you have written but it sounds as if you want to use a case statement within a SUM.
SELECT SUM(CASE Transactions.TollDiscountID WHEN 4 THEN 1 ELSE...
December 14, 2007 at 5:34 am
The Microsoft article says that table variables are not memory only structures and are created in TEMPDB if needed. My experience has been that large inserts into table variables...
December 14, 2007 at 5:29 am
I would do this in two stages.
SELECT * INTO newtable FROM oldtable WHERE 1=0
INSERT INTO newtable
SELECT * FROM oldtable.
The first statement creates the table in the desired structure but with...
December 14, 2007 at 5:23 am
Fantastic. Thanks for the link. The old problems I described were with the old windows task manager application which simply wasn't geared up to cope with hyperthreaded CPUs...
December 13, 2007 at 12:41 pm
When your developer says "An event" does he mean an event in a database?
Does he need it to be synchronous i.e the instant the event happens, generate a file? ...
December 13, 2007 at 10:13 am
I read somewhere that you have to be careful of the standard windows tools for monitoring memory usage as they don't give an accurate picture of higher memory usage.
December 13, 2007 at 9:07 am
Being both a developer and a DBA, I also use type prefixes on all field names and database objects, which saves a ton of time when developing.
I used to use...
December 13, 2007 at 9:01 am
I work in an environment with SQL2000 and SQL2005 and have found that I run into problems where replication thinks it should be running sp_MSdelMyTable
but replication has created
sp_MSdeldboMyTable.
Check to...
December 3, 2007 at 2:12 pm
I've found that having PULL subscriptions helps because the subscriber has to do alot of the work. With PUSH subscriptions the distributor has to do absolutely everything.
I would also...
December 3, 2007 at 2:08 pm
Viewing 15 posts - 2,131 through 2,145 (of 3,616 total)