Forum Replies Created

Viewing 15 posts - 1,786 through 1,800 (of 5,394 total)

  • RE: exporting xml

    bcp AdventureWorks.production.Product out c:\temp\product.dmp -n -S. -T

    The above command copies the table "Production.product" from database AdventureWorks in the native file c:\temp\product.dmp.

  • RE: exporting xml

    Other than SSIS, you could use BCP with the native format.

  • RE: Epoch date and style

    The important thing is that the datetime column stores the right value.

    To change the way it displays on the report, try changing the report field.

  • RE: To_Date Slow in Where Clause

    I would check the execution plan on the Oracle side and see if some index can support this query.

  • RE: Epoch date and style

    The format can be applied to strings only, not to datetime fields.

    Try using CONVERT(varchar(50), someDateTimeExpression, 104).

    Be aware that formatting dates is something that belongs to the presentation layer and should...

  • RE: Procedure sp_recompile

    Functions cannot be recompiled, because their plans are not cached.

    The statements that call the functions can get cached, but not the function's plan itself.

  • RE: Migrating from mysql to SQL Server

    The ON UPDATE clause is a proprietary MySQL syntax to automatically update a column to the current timestamp whenever the row is updated.

    You can do that in SQLServer with a...

  • RE: Replicate Help

    I don't think this will get too slow, even on a big input.

    Anyway, I can't think of any other efficient way to generate that prefix.

  • RE: Query Identify Natural Primary Key Columns

    While I heartedly agree with every word Johan wrote, let's see if this can get you started:

    DECLARE @results TABLE (

    TABLE_NAME sysname,

    TOTAL_COUNT int,

    COLUMN_NAME sysname,

    DISTINCT_COUNT int

    );

    INSERT @results

    EXEC sp_MsForEachTable '

    DECLARE @q...

  • RE: Query Identify Natural Primary Key Columns

    Welsh Corgi (3/5/2012)


    Rather than perform several SELECT DISTINCT to identify what combination of columns it takes to define the natural candidate composite primary key on over a hunded tables I...

  • RE: Disk space - SS2K8

    This means that your instance is using all the memory you reserved to it.

    Target server memory = Total amount of memory in KB that the server can consume.

    Total server memory...

  • RE: Query Identify Natural Primary Key Columns

    Not sure what you would like the script to do.

    All columns that contain unique values?

    All columns in UNIQUE indexes?

    Can you clarify please?

  • RE: Disk space - SS2K8

    valeryk2000 (3/5/2012)


    Naive question from developer (not administrator!):

    Is there stored procedure(s) that return(s):

    1) overall disk space allocated to my server

    2) current used/available memory size?

    Thanks

    1) Depends on what you want to...

  • RE: SQL Server 2005 Cluster

    There's no problem, you can do it.

    What exactly would you like to know?

Viewing 15 posts - 1,786 through 1,800 (of 5,394 total)