Forum Replies Created

Viewing 15 posts - 451 through 465 (of 1,409 total)

  • RE: Select and format a text in a varchar column including char(13) and char(10)

    Your app (on the frontend) needs to replace the CHAR(10) and CHAR(13) characters from the stored value to the linefeeds used by this app. Most applications handle this stuff automatically...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: How to make sure that all the rows are inserted into datamodel and then truncate staging table

    The most easy way is to compare the number of records of your staging table with the total number of records of the ETL tables.

    IF (select COUNT(*) from #stg)

    =

    (select COUNT(*)...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: unable to see entire SQL Statement in profiler

    yuvipoy (5/7/2014)


    I think you entered here wrongly.

    It is SQL server 200 it does not have SSMS.

    and thats too setting value in SSMS i dont think it will resolve.. in profiler...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: unable to see entire SQL Statement in profiler

    yuvipoy (5/7/2014)


    .....both did not gave me the entire Textdata. how can i get it, it limiting by 256 bytes

    This could be the default limit in SSMS. Look in SSMS for...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: mdf database with a wrong instance

    can you elaborate on what you are doing (what steps did you take) and display the informational and/or error messages you get?

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: conditional join

    You can use the CASE statement to select the conditional value you need:

    /*

    for p_typ in 'IP' I will get all rows from TBL_a for that p_id

    for p_typ in 'BP','0P' I...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Database collation Change

    You can change the (default-)collation of a database with the ALTER DATABASE command. But this doesn't change the collation of the existing objects!! You need to change each existing object...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: behavioral difference between DELETE and TRUNCATE

    You need to supply a complete script that will display your problem.

    I've changed the code you provided so it will run without initial errors, but this code does NOT have...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: select query based on compare date and not datetime

    You need to convert the current datetime (from GetDate() ) to a DATE datatype instead of a DATETIME datatype. When comparing this to a DATETIME value it will be converted...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Find all the rows from all tables in a DB for a specific column

    You can query the [sys].[columns] table for the specific column name and translate the corresponding object_id to the table name. You can build a dynamic SQL statement inside that query....

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Database permission

    mike 57299 (3/25/2014)


    I have a 2012 SQL server. If I am on another machine on the nextwork and run SSMS to login to that server, I can.

    1....

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

    The format "yyyy-dd-mm" will not be accepted as a datetime datatype. You have to provide the values in this format as a string.

    Next it is a rebuilding of the string...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: find occurance and remove string

    Or using the solution with OUTER APPLY:

    declare @table table (value varchar(500))

    insert into @table (value)

    values('plan type A change from plan type B from Plan type C')

    , ('Insurance plan M changed from...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Add Job Interval and Time to Script

    When I remove the complete WHERE clause, I get results displaying the last execution of every job. Each job is displayed the number of times equal to the number of...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • RE: Convert Column to Row

    Read this article http://www.sqlservercentral.com/articles/CROSS+APPLY+VALUES+UNPIVOT/91234/. You most likely can solve your question with the information from this article.

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

Viewing 15 posts - 451 through 465 (of 1,409 total)