Forum Replies Created

Viewing 15 posts - 91 through 105 (of 168 total)

  • RE: Calculating A Primary Key VS Idenitity

    Rather I would suggest you to keep three different customer tables each for Residential, Commercial, and Educational types

    with primary keys as

     ResCUtomerID  int identity(1,1) for Residential,

     ComCustomerID  int identity(1,1) for...

  • RE: T-sql question

    It will not compile at all as sp_executesql expects 'N' in Parameter

    Please read earlier reply (extract from BOL)

  • RE: T-sql question

    Prefixing N is necessary in our problem

    From BOL

    Unicode string constants that appear in code executed on the server, such as in stored procedures and triggers, must be preceded by the...

  • RE: Parameters into an Sql task

    what is the problem you are trying to ask?

  • RE: Calculating A Primary Key VS Idenitity

    ramses2nd, just for curiosity

    how can you relate the customer , who is having different types

    i.e, what happens If One  customer belongs to...

  • RE: Need help with a query statement

    try this

    SELECT

    t.ticket_id,

    t

    .created_date

    FROM ticket t

    LEFT JOIN (

  • RE: select

    If you post your table def it will be helpful

  • RE: Help with difficult Query

    try this query, it will give desired output for all possible inputs

    here I used Sreejith's table def

    Declare @dt_ProcessBeginTime datetime,@dt_ProcessEndTime datetime,

    @dt_MinSlot Datetime,

    @dt_MaxSlot Datetime

    Set @dt_ProcessBeginTime ='1/1/2000 09:10:00'

    Set @dt_ProcessEndTime ='1/1/2000 09:35:00'

    select...

  • RE: SQL 2000, IN clause, and soft order...

    Jeff,

    Just now I tried again with same query, I got it ..here in example anID should be of character type, if it is of integer type query is not compiling at all

    Thanks 

  • RE: T-sql question

    Use the following query in a dynamic way

    Declare

    @Rflag char(1)

    select

    @Rflag='B'

    Declare

  • RE: SQL 2000, IN clause, and soft order...

    sorry, not working

    CharIndex will give you the starting position of the specified expression in a character string

    In order by clause if you specify an integer value (returned by CharIndex funtion),...

  • RE: SQL 2000, IN clause, and soft order...

    If you are not specifying order by clause in your select statement data will not sorted in any order, it will fetch as it was inserted into the table

    There is no...

  • RE: Save linefeed-return charactes in a varchar column

    John,

    The easiest thing is save your result to a file, result will be same as user entered in free format text (including line feeds)

    Char(13) is not a visible character

     

  • RE: Using a subselect in an open query

    I assumed that both the tables are in linked server only.

    ok try this.. this has to be run with the connection to the MOMTRX_Pull's  Database

    update

    openquery

  • RE: Using a subselect in an open query

    I guess the syntax itself is wrong in your tries.. try this

    update

    openquery(LS01,'SELECT A.RECORD_PROCESSED FROM OPR..T_ERP_MOM_TRANS_OUTGOING A

    INNER JOIN...

Viewing 15 posts - 91 through 105 (of 168 total)