Forum Replies Created

Viewing 15 posts - 676 through 690 (of 1,346 total)

  • RE: Update the first row only

    -- Heres one way

    create table #TableOne (partNo int identity, TotalQty int)

    Insert into #TableOne (TotalQty)

    select 10 union

    Select 500 union

    select 333

    Create table #TableTwo (SalesNo int identity, PartNo int, StartAvailable int)

    Insert into...

  • RE: Create record in Table B based upon results of criteria applied to table A

    this is an insert into.

    Where the results of your select will be entered to the table on the insert. You did not indicate where the information for the city and...

  • RE: Keeping data in synch

    I would handle failover situations differently than keeping data in sync across dev/qa/acceptance.

    You should look at failover clustering or log shipping for this.

    But as far as getting production data over...

  • RE: Keeping data in synch

    I guess to me the question would be why?

    Is it worth the time and money to create something to keep data in "sync".

    Is it static data the application needs? or...

  • RE: exporting sql query resultset to cvs or xls

    You can generate csv or xls from Sql Server DTS

    Lots of info and tutorials on sqldts.com

  • RE: HELP, Sql Issues

    Hey Mark,

    Check the owner that the maintenance jobs are running under.

    This message usually indicates that the owner of the job is either Invalid, pasword has expired, or user is...

  • RE: Tempdb Full !!!!!!!!!

    Have you checked available disk space on the drive that tempdb is stored on?

    Seems like there is no space.

    tempdb does not need to be backed up.

     

  • RE: SQL with Search Score

    Not exactly sure what you mean by Score., But have you looked at functions Soundex, and Difference?

    They return a value based off comparison, but not a score per say.

    I have not worked with...

  • RE: How to run a windows service triggered by a change in the database?

    Just grasping at straws, but perhaps you could extend notification services to do something like this?

     

     

  • RE: dynamic stored procedure question

    What value?

    The value of the last record inserted, the first, are you including a where clause?

    Similar to Mkeast suggestion

    If i wanted the last record inserted.

    CREATE PROCEDURE sp_web_getPKIDFromNamedValue

    (

      @Table varchar(50),

      @FieldName...

  • RE: dynamic stored procedure question

    what exactly are you asking?

    what do you mean by value?

    you want the stored procedure to return to you the name of the column(s) that is the primary key for the...

  • RE: Find missing numbers in sequential column

    Create a number table with numbers 1 thru whatever

     

    then perform a left join

    Select *

    From MyTable

    right Join numbers on mytable.pk = number

    where mytable.pk is null

      and number < (select max(mytable.pk)...

  • RE: Help Please - Using dynamic variables in SELECT

    I would not recommend you do it the way you are trying, You Should not create a looping structure. Plus you should always create your triggers to accept datasets, you...

  • RE: Seconds to dd:hh:mm:ss

    look at the datepart function.

    datepart(hh,mydate)

    will give you an integer of the hour.

  • RE: alter column v. copy table

    no, since the column is already variable, increasing the variable size should be instantaneous, if it was a fixed char, and increasing the char length, it would take foreeeevvvvveeeerrrrr. Do...

Viewing 15 posts - 676 through 690 (of 1,346 total)