Forum Replies Created

Viewing 15 posts - 286 through 300 (of 2,893 total)

  • RE: DATEADD Requirement

    rahulme81 (7/22/2013)


    Thanks Chris for the needed and help.

    Unfortunately I have to write a query in Sybase.

    Have you tried to google "sybase forum"? You may find more releavnt help there...

    😉

  • RE: Truncate permission only on specified tables

    BoL clearly explains what can be done:

    Permissions

    The minimum permission required is ALTER on table_name. TRUNCATE TABLE permissions default to the table owner, members of the sysadmin fixed server role, and...

  • RE: Identity key (unique column) not behaving properly

    Something reseeded your identity. Check this sample:

    CREATE TABLE TestA (id INT NOT NULL IDENTITY(1,1) PRIMARY KEY , val VARCHAR(10));

    insert TestA values ('a')

    insert TestA values ('b')

    insert TestA values ('c')

    insert TestA...

  • RE: where filter col <> 0 returns error, col > 0 works, col contains no 0

    Ralf (7/19/2013)


    yes, it seems that the conversation to datetime is performed before the WHERE filter.

    maybe because of parallel processing and the large size of the table A (~300 MB)....this is...

  • RE: Query help

    Luis Cazares (7/18/2013)


    Eugene Elutin (7/18/2013)


    please note: use of cursor here is totally justified!

    It's justified, but my approach is shorter. Maybe I'm just lazy. 😀

    Yeah, for just executing one line...

  • RE: Query help

    If you want to run some statement in mulitple databases simultaneously then you will need to write some sort of application which can open connections to your multiple databases at...

  • RE: where filter col <> 0 returns error, col > 0 works, col contains no 0

    If you got "The conversion of a varchar data type to a datetime data type resulted in an out-of-range value." error that mean that there are some values in table...

  • RE: How to Parse two string Columns using a Function

    Luis Cazares (7/18/2013)


    In the original function it's returned as ItemNumber instead of PosNo

    Yeah, I have slightly modified version in my play-ground. As per Luis point, just replace PosNo with...

  • RE: How to Parse two string Columns using a Function

    Take a look into well-known J.Moden splitter function http://www.sqlservercentral.com/articles/Tally+Table/72993/

    If you cross apply to this function on each column then you can join on ItemNo function return and you will get...

  • RE: Error inserting data with T-sql

    Use LEFT function to limit number of characters to be taken from columns which causing this problem.

    P.S. Without having DDL of tables involved it's impossible to tell which exact...

  • RE: More efficient way to perform a lookup?

    You may want to try full text search here. Together with using WHERE EXISTS instead of JOIN, should be considerably faster than JOIN with non sargable LIKE. For some reason...

  • RE: non identity auto increment field

    ...

    SSCrazy, thanks for the suggestion but unfortunately I can't remove the 2 fields from the existing table. As this is an existing SQL Table for another application. The...

  • RE: multipart identifier could not bound

    riya_dave (7/10/2013)


    i can see that column name in my table.

    also when i type alias my intellisense for that table doesnt get anything, if i type anoter table name

    it display all...

  • RE: non identity auto increment field

    I would model it differently, to avoid customly controlled auto increments.

    What I would do is:

    1. remove Library_Barcode and Food_Barcode columns from your Employee table

    2. create two separate tables Employee_Library and...

  • RE: multipart identifier could not bound

    i need to add 1more field from emp1. but when i am trying getting error like 'The multi-part identifier "r1.emp2" could not be bound.'

    The above means that there is no...

Viewing 15 posts - 286 through 300 (of 2,893 total)