Forum Replies Created

Viewing 15 posts - 21,046 through 21,060 (of 22,196 total)

  • RE: SQL 2005 Database Design

    Absolutely true.

    You also might want to look at having simply an Address table with a join table to associate addresses to contacts. That way when you get a married couple...

  • RE: SQL 2005 Database Design

    The first four of those columns you're talking about are there for auditing purposes and shouldn't have anything to do with relational integrity. The last column, the guid, I'm assuming...

  • RE: Creating View with columns values taken from other tables

    Since you're not, in any way relating the data between these tables, an odd thing, you could do something like this:

    SELECT 'TableA' AS TableName

    ,Cola AS FirstColumn

    FROM dbo.TableA

    UNION ALL

    SELECT 'TableB' AS...

  • RE: Dynamic Sql

    If you have to use dynamic sql, be sure to look up & understand sp_executesql as the preferred method of calling it rather than using exec 'somestring'

  • RE: Bad Practices/Worse Practices

    I'd have to go all the way to "stupid practices." If I was feeling kind, I might call it "ignorant practices." If I wasn't feeling kind, it'd be "f'ing stupid...

  • RE: The Identity Debate

    I find that I'm with the you need both an artificial key and a natural key camp. Usually, but not always, the artificial key is an identity. However, I also...

  • RE: Multi-Environment Deployments Using Team Edition for Database Professi

    tymberwyld (2/10/2008)


    Grant Fritchey (2/7/2008)


    Nope. The one issue that we've had, and believe me the developers have howled, is that they can not simply add procedures (or drop them either). They...

  • RE: Can I do SELECT * in XQuery ?

    Internal to SQL Server, they peform almost identically. The main difference is that OPENXML has to instantiate an XML parser that chews up a ton of memory outside of SQL...

  • RE: What is Range Scan in SQL Server?

    In my opinion, this would not be a primary counter for checking performance. I'd use it once I've already identified range scans as an issue because of excessive waits or...

  • RE: build relationship between columns

    Are you looking for an Islands and Gaps solution?

    This is from Itzik Ben-Gan's Inside TSQL Querying and identifies missing values

    SELECT cur+1 AS start_range, nxt-1 AS end_range

    FROM (SELECT col1 AS cur,

    ...

  • RE: Can I do SELECT * in XQuery ?

    My XQuery knowledge is unfortunately new and grossly incomplete, but from what I do know, I don't think it's possible. XPath queries are a way of navigating the XML to...

  • RE: SOme general SQL performance questions

    1. Logical reads are all reads, physical from the disc as well as from memory. To determine physical reads as seperate from cache reads, you need to get performance monitor...

  • RE: sp VS adhoc query peformance?

    And, check your connection settings. See if the TSQL connection & the ADO connection are the same.

  • RE: sp VS adhoc query peformance?

    Does your table variable have a primary key and is that used to join to the other tables? If not, that's going to be a performance problem right there since...

  • RE: The quest to become a DBA - the route to take

    I just remembered. There's this great book by Craig Mullins called Database Administration. It doesn't dwell on technology, but goes over general concepts quite well. I'd recommend that one too.

Viewing 15 posts - 21,046 through 21,060 (of 22,196 total)