Forum Replies Created

Viewing 15 posts - 23,761 through 23,775 (of 26,490 total)

  • RE: cursor function

    Problem: You won't give us what we ask for so we can't provide you with the answer you are looking for.

    You only give us half answers to our questions, what...

  • RE: Filtering Records in Views

    May just be me, but I'd keep the filter in the stored procedure, unless the users also have access directly to view and not just using the stored procedure.

  • RE: why sql jobs are still running even if I disabled the jobs

    Even disabled jobs can be run. You can do so manually by right clicking on the job and selecting start job, or using msdb.dbo.sp_start_job stored procedure.

  • RE: cursor function

    paul.starr (11/13/2008)


    CREATE TABLE [dbo].[CustomerAddresses](

    [CustomerID] [dbo].[C_ID] (nvarchar(30))NOT NULL,

    [AddressTypeID] [dbo].[C_ID] (nvarchar(30))NOT NULL,

    [CustomerAddressID] [dbo].[C_ID] (nvarchar(30))NOT NULL

    insert into dbo.CustomerAddresses

    (CustomerID, AddressTypeID, CustomerAddressID)

    values('48313', '1', '48313-1')

    ('48313', '4', '48313-4')

    ...

  • RE: cursor function

    You're going to hate this, but...

    Please provide us with the DDL for the table (the CREATE TABLE statement), sample data for the table (as INSERT INTO statements), what you have...

  • RE: ansi attachment file by using sp_send_dbmail

    :unsure: ??

  • RE: How to define a primary key?

    I'd contact the vendor and request their assistance.

  • RE: Do we need separate job to backup System databases?

    Personally, a separate job for the system databases.

  • RE: insert row in a table inside another database and get identity back

    Looks like this may be the way to go. I amy have to look at the output clause in a little more depth for other uses in my environment...

  • RE: Included index

    Steve Jones - Editor (11/13/2008)


    I can see where the question is a little ambiguously worded. I shall add a "select all" and award back points to people for this one.

    Slightly...

  • RE: insert row in a table inside another database and get identity back

    I'd look at using the OUTPUT clause with the insert. You may be able to get the identity value assigned from the INSERTED values.

    Haven't tried it, but it is...

  • RE: create a stored procedure with insert and update using a cursor

    paul.starr (11/13/2008)


    Does this help any:

    COLUMN NAMES

    CustomerID

    ParentCustomerID

    ParentContactID

    Name

    ShortName

    ReferenceNo

    Logo

    CustomerTypeID

    Templates

    CorpURL

    CorpEmail

    SupportEmail

    SalesEmail

    OtherEmail

    DefaultContactID

    Markup

    DefaultCurrencyID

    PriceListID

    FreightID

    PaymentTypeID

    PaymentTermID

    PaymentTermNotes

    ShippingPolicyID

    CarrierID

    ShippingMethodID

    EffectiveDate

    ExpiryDate

    DefaultTaxRate

    DefaultQuoteDiscount

    DiscountComments

    Notes

    Deleted

    Status

    StatusComments

    StatusChangeDate

    StatusChangeUser

    CreateDate

    CreateUser

    MaintenanceDate

    MaintenanceUser

    LockUser

    LockSessionID

    LockDate

    PriceList_MaintenanceDate

    SyncStatus

    SyncDate

    SyncUser

    DiscountMode

    UpchargeMode

    CreateCustomerID

    CreateContactID

    MaintenanceCustomerID

    MaintenanceContactID

    InUse

    CustomerSalesModel

    CustomerPrefix

    State

    DefaultCustomerAddressID

    DefaultCustomerID

    datatypes, character length

    nvarchar30

    nvarchar30

    nvarchar30

    nvarchar50

    nvarchar20

    nvarchar50

    nvarchar200

    nvarchar30

    nvarchar250

    nvarchar250

    nvarchar50

    nvarchar50

    nvarchar50

    nvarchar50

    nvarchar30

    decimalNULL

    nvarchar30

    nvarchar30

    nvarchar30

    nvarchar30

    nvarchar30

    nvarchar500

    nvarchar30

    nvarchar30

    nvarchar30

    datetimeNULL

    datetimeNULL

    decimalNULL

    decimalNULL

    nvarchar500

    ntext1073741823

    intNULL

    intNULL

    nvarchar500

    datetimeNULL

    nvarchar50

    datetimeNULL

    nvarchar50

    datetimeNULL

    nvarchar50

    nvarchar50

    nvarchar36

    datetimeNULL

    datetimeNULL

    intNULL

    datetimeNULL

    nvarchar50

    intNULL

    intNULL

    nvarchar30

    nvarchar30

    nvarchar30

    nvarchar30

    intNULL

    intNULL

    nvarchar20

    intNULL

    nvarchar30

    nvarchar30

    No. It doesn't. You have to give us something that doesn't require more than cut and paste to use. ...

  • RE: create a stored procedure with insert and update using a cursor

    In SSMS, you can right click on the database and in the pop-up menu select Generate Scripts. Using the wizard, you can select the databae, in the options page...

  • RE: create a stored procedure with insert and update using a cursor

    paul.starr (11/13/2008)


    will it work in 2005?

    MERGE is new to SQL Server 2008, doesn't exist in SQL Server 2005 and earlier versions of SQL Server.

  • RE: CTE vs Derived Table

    Jeff Moden (11/12/2008)


    ... thanks for the leg up, Lynn. 😛

    Just keeping you honest! :w00t:

    I still haven't even hit 3,000 forum posts, but I'm getting close!

Viewing 15 posts - 23,761 through 23,775 (of 26,490 total)