Forum Replies Created

Viewing 15 posts - 2,131 through 2,145 (of 3,616 total)

  • RE: Difficulty with a stored proc after porting from a table to a schema

    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...

  • RE: Storing Multiple Values

    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.

  • RE: SELECT INTO

    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...

  • RE: SELECT INTO

    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...

  • RE: table datatype vs temporary table

    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. ...

  • RE: n-hibernate and dynamic sql - DBA vs Developers

    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...

  • RE: get data from 1 column but on diff conditions

    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...

  • RE: table datatype vs temporary table

    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...

  • RE: SELECT INTO

    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...

  • RE: 64 bit memory issues

    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...

  • RE: sp_oacreate versus xp_cmdashell and best practices

    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? ...

  • RE: 64 bit memory issues

    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.

  • RE: TinyInt, SmallInt, Int and BigInt

    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...

  • RE: Error 8144 two many arguments specified & Error 201 parameter missing

    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...

  • RE: how to speed up replication for a huge batch job

    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...

Viewing 15 posts - 2,131 through 2,145 (of 3,616 total)