Forum Replies Created

Viewing 15 posts - 3,631 through 3,645 (of 13,469 total)

  • RE: query Suggestion please

    my version:

    note how i provided ready to paste-and-test code for the table and sample data?

    if you can do the same in the future, you will get much better, tested answers.

    With...

  • RE: Trigger issue, help with trigger

    chris.mcgowan (4/17/2013)


    Just create a foreign key between the audit table and source table on that column that will do the trick.

    Chris

    no foreign key for audit tables, usually, in my experience.

    ...

  • RE: Trigger issue, help with trigger

    if it were me, i would make it like this:

    i added an identity, and a column at the end with a default of getdate() so i know when the record...

  • RE: Trigger issue, help with trigger

    CONSTRAINT [PK_JOB_POSTING_AUDIT_1] PRIMARY KEY CLUSTERED

    you don't want that;

    since this is an audit table, the same pk in the primary table of course would be updated multiple times.

    the audit table...

  • RE: Logic creation

    you copied and pasted the exact same description, which apparently i misunderstood the first time.

    copying the same thing and pasting it again doesn't help at all.

    As I read it, the...

  • RE: Logic creation

    well based on how i read your description, it sounds like a simple calcuated column could be used;

    ALTER TABLE [dbo].[GV_STNDetails]ADD STN AS RIGHT('0000' + CONVERT(VARCHAR,[From_StoreCode]),4) +RIGHT('000000' + CONVERT(VARCHAR,[STNID]),6) PERSISTED

    if you...

  • RE: Please help before 4:15 today- Thanks

    did you test this script yourself yet?

    does it run?

    does it raise errors?

  • RE: Updating datagrid with C#.net

    ray is this for a web page or for a winform?

    for Winforms, i usually create a binding source,

    set the binding source.Datasource to your datatable, and finally set the the .Datasource...

  • RE: Linked server questions

    dbursey (4/16/2013)


    Should I delete the existing linked server before running the system sp's?

    Thank you for your reply -

    Donna

    what i posted was a proof of concept; if you need to add...

  • RE: Are the posted questions getting worse?

    you took a picture in pointing at a mirror obviously.

    that's why the steering wheel looks funny 😛

  • RE: Help with SQL code

    consumable sample data: note there are gaps(no "WednesDay" data for example), so a calendar table or case will be needed to get the values:

    With MySampleData(CCDATA,CCDATAcompletedTIme)

    AS

    (

    SELECT 54,'2013-04-16 13:56:00' UNION ALL

    SELECT 52,'2013-04-16...

  • RE: Linked server questions

    As far as i know, only ONE catalog will ever appear for a SQL server linked server...and that is the list of objects in the database the linked server points...

  • RE: Are the posted questions getting worse?

    unlike all of you guys who completed all their tax paperwork in January and already got your refunds back, my yesterday was

    non stop juggling of funds so I could write...

  • RE: require db monitor script for sql 2000

    something like this is what i have saved in my snippets,a nd modified for your question:

    SELECT * FROM

    (

    select name as DBNAME,STATUS,

    CASE WHEN (STATUS & ...

  • RE: What does "SET XACT_ABORT ON" mean?

    it means that if you start a BEGIN TRAN,

    if ANY error occurs in the transaction, instead of moving on to the next statement and continuing to process(the default...

Viewing 15 posts - 3,631 through 3,645 (of 13,469 total)