Forum Replies Created

Viewing 10 posts - 1 through 10 (of 10 total)

  • RE: Backup Database file to Network Location

    In Backup Database Task a property Folder set to Storage Location.

    The account under which SQL Server is running must have access to the Starage Location.

  • RE: How to count "Out of" for each row ?

    If the number of fields is known, then try this:

    with hlp as (select cast(f1 as varchar(2))+','+cast(f2 as varchar(2))+','+cast(f3 as varchar(2))+','+cast(f4 as varchar(2))+

    ','+cast(f5 as varchar(2))+','+cast(f6 as varchar(2))+','+cast(f7 as varchar(2))+','+cast(f8 as varchar(2))+

    ','+cast(f9...

  • RE: Find max and min where count of unique > x...

    OR

    SELECT type, MIN(value), MAX(value)

    FROM(

    SELECT Type, value, COUNT(DISTINCT identifier) cnt

    FROM #TEMP

    GROUP BY type, value

    HAVING COUNT(DISTINCT identifier)>2

    )t

    GROUP BY type

  • RE: Find max and min where count of unique > x...

    correctly

    SELECT type, MIN(value), MAX(value)

    FROM(

    SELECT Type, value, COUNT(identifier) over(partition by type, value) cnt

    FROM (

    SELECT DISTINCT type, value, identifier

    FROM #TEMP

    ) t

    ) tab

    WHERE cnt>2

    GROUP BY...

  • RE: Find max and min where count of unique > x...

    Try this:

    CREATE TABLE #TEMP (Value int,Type nvarchar(50),Identifier int)

    INSERT INTO #TEMP VALUES(1225,'ABC', 217840)

    INSERT INTO #TEMP VALUES (1225,'ABC', 121662)

    INSERT INTO #TEMP VALUES (1295,'ABC', 275581)

    INSERT INTO #TEMP VALUES (1225,'ABC', 217840)

    INSERT INTO #TEMP VALUES...

  • RE: backup

    You must change the backup file name in your BACKUP instruction.

    For example, add the date to the backup file name

  • RE: To get row from select query in order

    Hi.

    Maybe like this:

    with t as(

    select 'aaa@xxx.com' EmailAddress, 'ravi' EmployeeName, 5 UNo, 8989898989 MobileNumber

    union

    select 'bbb@xxx.com', 'ramesh', 7, 9898989898

    union

    select 'ariv@gmail.com', 'arivu', 13, 8989898989)

    select case when Uno=7 then 1 when Uno=13...

  • RE: select only similar names

    Hi.

    Try this:

    with names as (select 'shashi kiran' name

    union

    select 'raju'

    union

    select 'pranay'

    union

    select 'gv raju'

    union

    select 'vamshi'

    union

    select 'vamshi kri'

    union

    select 'shash')

    select names1.name from names as names1, names as names2

    where names1.name<>names2.name and names1.name like '%'+names2.name+'%'

    union

    select names2.name...

  • RE: Anyone ever seen this error (SQL Server 2008 Job)

    Similar problem described here:

    click

    If convert the error code -1073741502 to its exadecimal equivalent, it will be 0xc0000142.

    Error code 0xC0000142(STATUS_DLL_INIT_FAILED) says " {DLL Initialization Failed} Initialization of the dynamic link library...

Viewing 10 posts - 1 through 10 (of 10 total)