Forum Replies Created

Viewing 15 posts - 211 through 225 (of 717 total)

  • RE: Date Rounding

    Makes me wish that SQL Server had the TRUNC function like Oracle, it is very handy for this purpose.

    Someone even suggested it in Connect, http://connect.microsoft.com/SQLServer/feedback/details/483913/add-a-dateround-function-similar-to-oracles-trunc-for-date-handling, but it was turned down....

  • RE: tempdb

    If you go into SSMS and follow these steps you can see all the temp tables along with the number of rows and the size:

    * Expand Databases

    * Expand System Databases

    *...

  • RE: Data conversion

    John Hanrahan (3/18/2011)


    It fails for me (unless I retyped it wrong)

    create table #Money

    (ID INT IDENTITY(1,1) PRIMARY KEY CLUSTERED,

    Date DATETIME

    AMOUNT INT,)

    SET IDENTITY_INSERT #Money ON

    INSERT INTO #Money(ID, Date, Amount)

    SELECT '1', ' 2/10/2010...

  • RE: Visual Studio Database Tools

    Thanks for the question, it is good to get an idea of what Visual Studio is capable of.

  • RE: Data conversion

    Thanks for the question, it is interesting to know that you can have a superfluous comma in a CREATE TABLE statement. (Not sure that is of much value other than...

  • RE: SQL Server 2008 R2 Features

    ben-564110 (3/17/2011)


    The question could be slightly more specific. Backup compression existed before SQL Server 2008 R2 Standard Edition was released (it existed in SQL Server 2008 Enterprise).

    Really? More specific than...

  • RE: Consolidating SQL Servers/Services

    Kudikai (3/17/2011)


    UMG Developer (3/16/2011)

    You could go with VMs to limit memory but that really messes with the licensing.

    I really should have specified that our entire environment is virtual, and the...

  • RE: Deleting a large amount of data from a table

    Since there are no other users during the delete try removing the row lock hint, you might even put a table lock hint. (Less work if it doesn't have to...

  • RE: Deleting a large amount of data from a table

    It would help to know the table and index structures.

    Some important things to know/help:

    * How long is "FOREVER"?

    * Is the table a heap or does it have a clustered...

  • RE: Consolidating SQL Servers/Services

    Another thing to think about is that unlike older 1 and 2 CPU servers that are SMP, Symmetric Multi Processing, which shares all memory across all CPUs, almost all current...

  • RE: Management Data Warehouse (R2)

    I haven't seen that error on either of mine, but it sounds like something happened to your MDW database. Have you tried re-configuring it on the server hosting the MDW...

  • RE: Consolidating SQL Servers/Services

    Kudikai (3/16/2011)


    I've been given permission to replace all three servers with a single new server.

    Win2k8R2, x64, 4CPU, 16GB Memory

    Memory allocation ideally would be 8GB SQL, 4GB SSAS, rest to OS/SSRS/SSIS.

    Overall...

  • RE: Create stored procedure

    Thanks for the interesting question.

  • RE: Server Class SSD SAS Disks

    mtillman-921105 (3/16/2011)


    My understanding is that for most current SQL applications, SSD is used for the TEMP DB (for performance). If the drive dies, swap another one in and forget...

  • RE: change collation on a datase

    Vrosenberg (8/7/2010)


    select distinct 'ALTER TABLE .[dbo].['+rtrim(P.name) +'] CHECK CONSTRAINT all'

    from [INFORMATION_SCHEMA].[CHECK_CONSTRAINTS] C

    join sys.sysobjects O on name=CONSTRAINT_NAME

    join sys.sysobjects P on P.id=O.parent_obj

    You really should have the WITH...

Viewing 15 posts - 211 through 225 (of 717 total)