Forum Replies Created

Viewing 15 posts - 166 through 180 (of 253 total)

  • RE: Does Cumulative Updates included in next Service packs?

    A bit of google search gives the below ..

    SP2 includes hotfixes of SQL Server 2008 SP1 Cumulative Update 1 to 8 only. Cumulative update package 1 for SQL Server 2008...

  • RE: Does Cumulative Updates included in next Service packs?

    Thanks Lynn,

    I want to avoid such a scenario. I have a fix in CU4 (after SP1). So should I apply SP1 + CU1 to CU4 OR should I install SP2...

  • RE: Query to get records which are GETDATE()-60 DAYS

    Perry,

    I get the same error.

    Query-1:

    select top 1* from TABLENAME where

    isdate(DATEFIELD) = 1

    and convert(datetime,DATEFIELD) < getdate()-120

    and VARCHARFIELD in ('111111','222222')

    Above query works fine. But when i include another value in...

  • RE: BCP OUT - Force Order

    Thanks Lutz,

    I will try to post the data maybe with some dummy values. I will get back to you after readying the dummy data.

  • RE: BCP OUT - Force Order

    For one set of load (which is monthly), I give a unique number say 1, for next load it wud be 2 and so on.. and i need to retrieve...

  • RE: BCP OUT - Force Order

    No Lutz, its still not resolved.

    Sometimes ordering becomes,

    A1 datetime1

    B1 datetime1

    C1 datetime1

    A2 datetime2

    B2 datetime2

    C2 datetime2

    D2 datetime2

    E2 datetime2

    D2 datetime1

    E2 datetime1

  • RE: BCP OUT - Force Order

    Lutz,

    Sorry missed it

    bcp "select 'Col1', 'Col2', 'Col3','Date' union all select top 15 cast(Col1 as varchar(25)) as Col1,Col2,Col3,cast(DATE as varchar(25))as DATE from TABLENAME where SortOrder<>0 ORDER BY SortOrder asc" queryout D:\XXXX.xls...

  • RE: BCP OUT - Force Order

    Lutz,

    bcp "select 'Col1', 'Col2', 'Col3','Date' union all select top 15 cast(Col1 as varchar(25)) as Col1,Col2,Col3,cast(DATE as varchar(25))as DATE from TABLENAME where SortOrder<>0" queryout D:\XXXX.xls -c -SXXXXXX -T

  • RE: BCP OUT - Force Order

    Lutz,

    I order by DATE field, its default GETDATE. At one time, 5 records would be inserted, so all the 5 would be having same datetime value. Example data is...

  • RE: Query to get records which are GETDATE()-60 DAYS

    1. First query returns the same error

    2.

    DECLARE @datefield VARCHAR(10)

    select @datefield = CAST(DATEFIELD AS DATETIME) from TABLENAME select @datefield

    returns only one record after which it returns same error. The one record...

  • RE: SQL 2008 R2 - Public role - Access Restriction

    Markus, thanks for the brief reply.

    1. For Extended SP's, I go to Database Properties->Security-->

    Roles-->Database Roles--> Public--> Properties-->Securables

    Here, I see a number of Extended SP's. I had to select each one...

  • RE: Is there Switch case or GO TO in SQL?

    I would have to sanitize the code before posting :(...even then it would be difficult, anyway will check on that..

    Thanks Ninja for reminding about the MERGE. 🙂

  • RE: Is there Switch case or GO TO in SQL?

    Only one table is involved in the entire operation (case/update/bulk insert)

  • RE: Is there Switch case or GO TO in SQL?

    Thanks for the immediate reply.

    I would be checking for a value in a particular column and depending on the value.. i would be running update queries (different one for...

  • RE: SQL 2000 - sp_send_cdosysmail - Attachment Error

    Do we have any other way.. to fix this? The link has code which has BCC etc. which is not needed. A basic mail parameters are fine.

Viewing 15 posts - 166 through 180 (of 253 total)