Forum Replies Created

Viewing 15 posts - 3,466 through 3,480 (of 3,544 total)

  • RE: Text column size limit

    In QA goto Query/Current Connection Options Advanced Tab and change 'Maximum characters per column' the default is 256.

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Dates spanning 2002 - 2003

    Very good explanations. I would compare as follows

    where convert(char(10),hire_date,120) between '2002-12-01' and '2003-12-31'

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Connecting SQL Server from VB Error

    Since my last reply, I have updated my SQL7 to SP4 and MDAC 2.7 RTM (2.70.9001.0) (5 Jan 03). Only got this error once due to me force closing sql...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Using DateTime column in where clause

    Most of the time I have dates with no times so the problem is minimal. However on the odd occasion where I have times as well I have used both...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Pivot Table?

    If both tables are already populated with the data then

    update b

    set b.AMT = (CASE

    WHEN b.QTR = 'Q1' THEN a.Q1

    WHEN b.QTR = 'Q2' THEN a.Q2

    WHEN b.QTR = 'Q3' THEN a.Q3

    WHEN...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Breaks in date

    Isn't this a duplicate of

    http://www.sqlservercentral.com/forum/topic.asp?TOPIC_ID=9068&FORUM_ID=8&CAT_ID=1&Topic_Title=query+help&Forum_Title=T%2DSQL

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Custom Error Message

    If I remember right level 16 errors stop further processing of the proc and therefore I don't think you can replace the message.

    In my procs I check for duplicates (SELECT...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: query help

    select a.product_Code,a.Order_Num,a.Begin_date,b.End_Date

    from a

    inner join b on b.product_Code = a.product_Code

    and b.Order_Num = a.Order_Num

    and b.Begin_date = a.End_Date

    Edited by - davidburrows on 01/03/2003 03:38:12 AM

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Report Generation

    I have used Crystal Reports via VB to do reporting and once u get used to interface found it easy (just boring having to create and postion fields). Also have...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: How do you specify an Unspecified Error??

    More info. One of my DTS today got 'Unspecified error' and was due to the file missing and then the file was in use (being created). Once the file had...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Update query hang

    I agree with Scorpion's 1st para, that is what I use this forum for. By supplying sql snippets you get other peoples ideas and can write better sql.

    As for your...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: SQL equivalent of LastPeriods( ) function

    create table #mth (year int,month int)

    declare @d datetime

    set @d = getdate()

    insert into #mth values(year(@d),month(@d))

    set @d = dateadd(m,-1,@d)

    insert into #mth values(year(@d),month(@d))

    set @d = dateadd(m,-1,@d)

    insert into #mth values(year(@d),month(@d))

    set @d = dateadd(m,-1,@d)

    insert into...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Suppress Trailing Zeros?

    How about

    replace(rtrim(replace(column,'0',' ')),' ','0')

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: How do you specify an Unspecified Error??

    I use SQL7 and found this sometimes as I import data from 3rd party DB via ODBC and normally I find it's due to data conversion, e.g. date overflow etc....

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Table design / Relationship problem

    Sorry but we do not have subscription systems so I cannot really help there. Whether you keep table3 separate is a matter of choice I suppose (I have a database...

    Far away is close at hand in the images of elsewhere.
    Anon.

Viewing 15 posts - 3,466 through 3,480 (of 3,544 total)