Forum Replies Created

Viewing 15 posts - 12,481 through 12,495 (of 13,461 total)

  • RE: DATABASE PROB

    without specifics, we can't diagnose the problem.

    since this is a general question for now, here's a general answer and things to look for:

    is your application doing SELECT * FROM SOMETABLE,...

  • RE: Script Triggers

    here's an example to get teh text/definition of the triggers:

    set nocount on

     SELECT [text] + CHAR(13) FROM syscomments WHERE id IN(SELECT id FROM sysobjects WHERE xtype='TR')

     

    typical results:

    CREATE TRIGGER updatedby...

  • RE: How do I do I do a multi table update?

    you'll need to update each table spearately, but most likely in a transaction, so it is update both or nothing;

    SET XACT_ABORT ON --any error rollsback the whole thing...IF a transaction...

  • RE: Unexplained error -2147217873

    Pretty sure this has to do with having a database without an owner - this can happen if you recently restored/attached database, or did you maybe drop a user?

    Have...

  • RE: How to get the IP address in T-SQL

    yeah having to roll thru the tables later after the IP's been captured woudl be a pain in the audit.

    Since you are going to use HOST_NAME instead, you obviously are already...

  • RE: How to get the IP address in T-SQL

    do you mean using DNS/nslookup to convert an ipaddress like 66.94.234.13 to http://www.yahoo.com?

     

  • RE: Object Definition for Foreign Key

    i saved this snippet for SQl 2000, but it works in 2005;

    this creates both the  DROP and ADD statements for a db's foreign keys

    looking at it, i don't know why...

  • RE: bad execution plan ???

    OK based on your post,i think this query has 10 left outer joins altogether;

    I think I saw Jeff Moden mention that left outer joins require a table scan, right?

    that would...

  • RE: bulk insert fails

    I tested your code with that one sample row you posted, and I get a problem with the field for INVOICE_NUMBER, because the data is 41 chars, but the definition...

  • RE: size

    this is similar to a different thread i was in, where we calculated the difference between the defined length,and the max used space for a row;

    take a look here:

    http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=9&messageid=385732#bm386585

    even...

  • RE: Sql server ''''sa'''' password

    if you are in as a builtin\Administrator, you can still use the sp_password, you simply leave oldpassword as null.

    an admin does not need to know the old password,  so you'd...

  • RE: Physical File Placement

    From what I've learned, RAID 5 is slower in comparsion to RAID 1 because the data is distributed redundantly accros the stripes to allow for recovery ,so it can potentially...

  • RE: Physical File Placement

    this is a really good source...there's a brief paragraph on the one filegroup per disk and such:

    http://www.sql-server-performance.com/articles/per/optimize_filegroup_performance_p2.aspx

  • RE: SQL SERVER RECOVERY TOOLS

    ouch; i had a similar issue where a controller card went bad and was writing bad data for hours before the db was too corrupted to use, but I had...

  • RE: The Other 90%

    I think the article complete skips over how the other 90% benefit after the 10% paid for the research and development of the software.

    Take the Internet for example...it wasn't targeted...

Viewing 15 posts - 12,481 through 12,495 (of 13,461 total)