Forum Replies Created

Viewing 15 posts - 2,656 through 2,670 (of 2,894 total)

  • RE: Insert 1,000 records in one second

    I want to buy shares in your company or, at least, buy advertising space on your site !!!! 😀

    1000 (new) viewers per second during 8 hours working day means 28,800,000...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: check for NULL in a column

    priya__ (6/28/2010)


    Thanks for quick response,

    I need a case statement and need to count another column based in first column is null or not, I have many cases but this...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Export a result of a query to an excel file and sent to an e-mail

    If you want to extract the data from the database in a format readable in Excel, use xp_sendmail extended stored proc. It can execute the query, put results into...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: check for NULL in a column

    [withdrawn, as too many answers already :-D]

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Check duplicates records while bulk inserting in to Table

    Try this:

    INSERT INTO PC_Tbl_FooterTemplate_Position

    (

    TemplateId,

    Position,

    [Content]

    )

    SELECT @FooterId, Position, Content

    FROM OPENXML (@index, '/NewDataSet/Table1')

    WITH (

    Templateid bigint 'Templateid',

    Position nvarchar(50) 'Position',

    Content...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Importing flat files

    I guess no one replying to you due to the lack of details in your question.

    Sample of existing script? Error details?

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: using the "While" statement with "Begin Transaction and Commit Transaction"

    You better to stay with using TransactionScope :-).

    It is not quite clear what are you trying to do in one transaction.

    You can submit batch of records into stored proc in...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: How to select 1 column into different rows and columns

    If your Id's are always increases by 1 and you have no gaps, you can use this:

    select t1.ID as Id1, t2.ID as Id2

    from @test-2 t1 left join @test-2 t2...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: drop production database

    Lowell (6/25/2010)


    this kind of request ranks up there with a request that was once heard at Enron:

    Run everything in these filing cabinets through the shredder...boss said it was ok, and...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: CLR script in strartup sql services to enable when service restart

    Do you have "lightweight pooling" turned off? Make sure it is off.

    What sql2008 edition you have?

    It is unusuall behavior. The server configuration should not revert back on restart of the...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: drop production database

    AndrewSQLDBA (6/25/2010)


    I would just take it offline and then see if anyone screams. If no one does after about a month, then drop it...

    I would just turn off power on...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Date or int data type for clustered index ?

    You are right for SQL2008 the way to go is to use new DATE datatype to store a date.

    (My mistake, I was still in SQL2005 forum mode...)

    Interesting enough that the...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Problem in printing contents of a query in a dynamic sql query

    Value of @cols variable is NULL. It means that your @query will be NULL also. So, nothing to print!

    Changing "PRINT @query" to "SELECT @query" will confirm the above -...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Date or int data type for clustered index ?

    It is known practice to use INT datatype to store dates especially in large datawarehouses... BUT!

    Not in the YYYYMMDD format!

    As in order to convert it back tp date you will...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Delete too long

    Tara-1044200 (6/25/2010)


    As asid above how do i do a BULK INSERT from table to table very fast, that sounds like a good approach.

    SELECT * INTO NewTable FROM OldTable [WHERE ....]

    Depending...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

Viewing 15 posts - 2,656 through 2,670 (of 2,894 total)