Forum Replies Created

Viewing 15 posts - 3,286 through 3,300 (of 8,753 total)

  • RE: Need help to write SQL - To create All Cross-Value based on some data

    To clarify, are you looking for a form of Consecutive Number Sequences, i.e. for the values 1-3 you would have the combinations below?

    😎

    1

    12

    123

    13

    2

    23

    3

  • RE: Need help to write SQL - To create All Cross-Value based on some data

    Quick questions for clarification:

    1. Why are you doing this?

    2. What is the end goal?

    3. What is the cardinality of the table?

    4. Should each combination...

  • RE: Compute worked minutes group by hour

    Quick alternative to Chris's solution, this one catches better the fractional end hours

    😎

    USE TEEST;

    GO

    SET NOCOUNT ON;

    --http://www.sqlservercentral.com/Forums/Topic1810466-3077-1.aspx

    --/* -- UNCOMMENT THIS LINE TO SKIP THE SETUP

    -- sample data setup

    IF OBJECT_ID(N'dbo.MyTable') IS NOT...

  • RE: xp_cmdshell Error code: 0x80004005

    vprunic (8/19/2016)


    Hello all,

    what does this mean?

    Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.

    An OLE DB record is available. Source: "Microsoft JET Database Engine" Hresult:...

  • RE: Scripting a Database schema

    Here is an article on PS & SMO

    😎

  • RE: create table dynamically in the SP

    Quick example, recommend you add constraints to the data type columns to prevent malicious code injection.

    😎

    USE TEEST;

    GO

    SET NOCOUNT ON;

    --

    IF OBJECT_ID(N'dbo.TBL_TEST_DYNAMIC_CREATE') IS NOT NULL DROP TABLE dbo.TBL_TEST_DYNAMIC_CREATE;

    -- Create the table definition...

  • RE: Are the posted questions getting worse?

    BrainDonor (8/17/2016)


    ChrisM@Work (8/17/2016)


    We have git hubs all over the UK. They're also known as Weatherspoons.

    You owe me a new keyboard...

    😀

    ...just managed to save mine

    😎

  • RE: Writes in select statement

    yujinagata72 (8/16/2016)


    Hi,

    Sometimes when I ran the profiler, I can see some select statement with Writes as well. Is that normal?

    Thanks,

    Perfectly normal.

    😎

  • RE: Query plan analysis

    Quick suggestion, opening the plan in SQL Sentry Plan Explorer is probably the easiest way to do this, trying to query/analyse the plan can be a very complex task.

    😎

  • RE: shrink MDF

    Snargables (8/16/2016)


    Everything i read goes on and on about how bad it is. One of our sql instances houses a database that uses mainly batch processing and as a result...

  • RE: Date gaps between date spans

    Quick solution for SQL Server 2008

    😎

    First add this POC index

    CREATE NONCLUSTERED INDEX NCLIDX_DBO_ZZZ_SSC_HELP_GROUP_STARTDATE ON dbo.zzz_SSC_Help (GroupID ASC, StartDate ASC) INCLUDE (EndDate);

    The query

    ;WITH BASE_DATA AS

    (

    SELECT

    ...

  • RE: Upgrading 2008 Enterprise to 2012 Standard

    DAP 93723 (8/12/2016)


    Thanks for all your feedback.

    So If I install a new instance of 2012 Standard on the same machine, it's NOT going to affect ANY aspect of existing 2008...

  • RE: need to copy a 600 gig table

    The OP will have to come back with answers to my questions, otherwise we're only guessing, probably an object restore from a backup would be the way to go here...

  • RE: Replace of isnull as 0 for dynamic pivot

    Anandkumar-SQL_Developer (8/11/2016)


    Hi Friends ,

    i would like to replace null as zero , please some one help me . for ur reference i have paste code and my pivot query below.

    First...

  • RE: Complex XML Source Import

    Not if done correctly, done many times larger files this way.

    😎

Viewing 15 posts - 3,286 through 3,300 (of 8,753 total)