Forum Replies Created

Viewing 15 posts - 76 through 90 (of 95 total)

  • RE: Return a unique row

    This is a tough one.  What you really have is unmanaged information.  The relationship between the items whether it's col1 and col2 or col2 and col1 should be controlled before...

    If the phone doesn't ring...It's me.

  • RE: Help with Syntax of passing varialble in StoredProcedure

    At first blush change the following

    CREATE PROCEDURE sp_StoreCt

    DECLARE @CurFYPeriod DateTime

    SET @CurFYPeriod =  (Select FiscalMonth From FiscalCalendarDaily Where CalendarDate = convert(datetime,convert(char(12), getdate())))

    AS

    and move the set command after the AS keyword

    CREATE PROCEDURE...

    If the phone doesn't ring...It's me.

  • RE: Use of a Computed Column for Running Total in small reference table

    If the milestones are individual records a computed column will not work.  If they are separate fields on the same record a computed column would work fine.  The only way...

    If the phone doesn't ring...It's me.

  • RE: Updating records with a join.

    UPDATE tblSiteReview

    set tblSiteReview.blnNonCompliant = 1

    from tblSite inner join tblSiteReview on tblSite.tblSitePK = tblSiteReview.tblSiteFK

    where (((tblSite.intStatus)=2) AND ((tblSiteReview.dtmReviewDate)>[tblSiteReview].[dtmExpDate]))

    If the phone doesn't ring...It's me.

  • RE: crystal reports vs access

    I would suggest creating a view that contains the needed tables using the with(nolock) clause then use that view as your data source in crystal.  I would also strongly suggest...

    If the phone doesn't ring...It's me.

  • RE: How can I check the database name I am in??

    select db_name()

    If the phone doesn't ring...It's me.

  • RE: Query join question.

    By counting * you are counting all occurences.  Count a field from the DD00100 table and that should fix your problem.

    If the phone doesn't ring...It's me.

  • RE: Parameter variables cause pageheader to not display

    Is there a time the value of Parameters!SubmittedDate.Value is null?  That would cause the entire value to be null which might cause the problem.

    If the phone doesn't ring...It's me.

  • RE: Embedded report

    Is this in SQL Reporting Services?  If so, look at the hidden property for the object you want to hide and have that property be defined by the value of...

    If the phone doesn't ring...It's me.

  • RE: Format file attached by xp_sendmail

    Are you defining a specific separator?  If not try defining it as a comma and you should get a comma delimited attachment that should be easy to open with spreadsheets...

    If the phone doesn't ring...It's me.

  • RE: Display Records When A Staff Has Not Attended A Class

    This is often a problem...can you show me what isn't there?

    Anyway, if you change your having clause to <> classname you'll get a...

    If the phone doesn't ring...It's me.

  • RE: Invalid data on DTS Import

    Are you sure the field in your table is not defined as an integer?  DTS is usually pretty good at importing correctly. 

    If the phone doesn't ring...It's me.

  • RE: Ident_current and Dynamic SQL

    Have you tried to set a variable equalt to @@scope_identity function within your dynamic SQL?  The variable should be available after the dynamic sql is performed?

    Remember, it is best to avoid...

    If the phone doesn't ring...It's me.

  • RE: terrible performance on simple update query --help

    What indexes do you have and is there a clustered index on the fields you are changing?

    Also, are you doing this while other users are accessing the data?

    I have learned...

    If the phone doesn't ring...It's me.

  • RE: Same SQL different Execution Plan!!

    I have to agree with Jonathan in that it is very difficult to suggest anything without seeing execution plan (which is obviously not an option here).

    I vaguely remember an article...

    If the phone doesn't ring...It's me.

Viewing 15 posts - 76 through 90 (of 95 total)