Forum Replies Created

Viewing 15 posts - 706 through 720 (of 1,409 total)

  • RE: Can you please help me??

    I am certanly not a SSIS expert so I can't give you more details. Others on this forum might provide better help on that. But as far as I know...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Query issue 2

    Here is the corrected statement:

    SET @StartDate = convert(VARCHAR(10), getdate(), 101)

    + ' ' + (CAST(DATEPART(hh, (SELECT [Value] FROM tbltime WHERE NAME='TIME')) AS VARCHAR)

    + ':' + CAST(DATEPART(mi, (SELECT [Value] FROM tbltime WHERE...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Query issue 2

    You didn't seperate the date and time part with a space. And in the last part of your query you are using the "DATEPART(ss,...)" twice and you are also not...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Would like to add data in table when sql m/c starts or shutdown

    Koen Verbeeck (8/29/2013)


    You could also execute a stored procedure on startup.

    sp_procoption (Transact-SQL)

    That's new to me. Thanks, I learned something 😉

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Would like to add data in table when sql m/c starts or shutdown

    If you want logging of the startup and shutdown time of an instance, consider the following:

    You can setup another server/instance and poll the connectivity to the required instance(s) every minute...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Would like to add data in table when sql m/c starts or shutdown

    To write data when the instance is started you can create a job with a schedule to be executed "Start automatically when SQL Agent starts". Maybe you should include some...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Dumb question of the day - logins with $ at the end?

    They say 'there are no dumb questions'. At least you learned from it 😀

    Glad you found the answer yourself.

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: [CLUSTER] Multiple Instances Design

    dokledon (8/29/2013)


    I think there is no more doubt about Default instances in a Cluster.

    1) What about Static port number ? Can we use default 1433 for all instances ?

    Yes, that...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Benefits of DBCC Check DB and performance

    mohan.bndr (8/29/2013)


    ... as i am not able to run DBCC Checkdb against database and the drive also having sufficient free space for datafile....

    What is the error message you get when...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Combining 2 queries

    In my opinion the easiest solution will be to create the report with two seperated tablixes, each holding a different resultset.

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: How to reordering or removing one identity number

    If you have good control over the insert statements you could issue a RESEED command after the first insert.

    DBCC CHECKIDENT ("{tablename}", RESEED, 0);

    Or create a table with IDENTITY(1,1) and use...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: How to reordering or removing one identity number

    baabhu (8/29/2013)


    Else you can truncate and reinsert the data.

    A truncate will reset the IDENTITY values to the initial settings. Reinserting the data after a truncate will again use the...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Improving the performance of a Big table

    Koen Verbeeck (8/29/2013)


    And how can you improve a query? By updating statistics, minimize logging, creating indexes, compress the data, partition the table, ... 🙂 😉

    You are absolutely right, but without...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Combining 2 queries

    Yes, you need to know all columns and define your query accordingly.

    But WHY do you want to display two completely different resultsets into one single resultset?

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Improving the performance of a Big table

    You are not to be improving a table, but you need to improve the queries accessing that table. A table can be optimized by the options Koen has mentioned. But...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **

Viewing 15 posts - 706 through 720 (of 1,409 total)