Forum Replies Created

Viewing 15 posts - 91 through 105 (of 444 total)

  • RE: Need help on trace a job

    Are you calling a stored procedure in your job? if yes, you can setup profiler for SP very easily by applying filter on TextData column.

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Sometimes, winning is not an issue but trying.
    You can check my BLOG
    [font="Arial Black"]here[/font][/url][/right]

  • RE: Working with Temp Tables

    Why not to try like this;

    Declare @vSQL varchar(max)

    IF 1 <> 0

    BEGIN

    Set @vSQL = 'Select * INTO #myTemp1 From dbo.countries'

    END

    ELSE

    BEGIN

    Set @vSQL = 'Select * INTO #myTemp1 From dbo.country2'

    END

    Set @vSQL = @vSQL...

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Sometimes, winning is not an issue but trying.
    You can check my BLOG
    [font="Arial Black"]here[/font][/url][/right]

  • RE: what are the roles and responsibilities of sql server dba job?

    i just saw something with that same question here that woudl probably answer the question more completely.

    You hacked my PC bro....

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Sometimes, winning is not an issue but trying.
    You can check my BLOG
    [font="Arial Black"]here[/font][/url][/right]

  • RE: SQL Query Problem

    Or this might help you... I have used Temporary tables to give the idea....

    The logic is same as of Lowell.

    Declare @vTableA Table (ID int, [Type] varchar(10), Number int...

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Sometimes, winning is not an issue but trying.
    You can check my BLOG
    [font="Arial Black"]here[/font][/url][/right]

  • RE: Running a Stored Procedure based on a dates entered in SSRS and displaying the results in a report

    I think you should give the From Date and To date parameter in your report.

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Sometimes, winning is not an issue but trying.
    You can check my BLOG
    [font="Arial Black"]here[/font][/url][/right]

  • RE: Generating Insert Statements

    Nice Article. Very helpful.

    Thanks.

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Sometimes, winning is not an issue but trying.
    You can check my BLOG
    [font="Arial Black"]here[/font][/url][/right]

  • RE: SQL error manifests itself after running sucessfully before.

    I found something here...

    http://support.microsoft.com/kb/931329

    Best of Luck...

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Sometimes, winning is not an issue but trying.
    You can check my BLOG
    [font="Arial Black"]here[/font][/url][/right]

  • RE: Is there a quick way to list the contents of stored procedures?

    sys.all_sql_modules is the better choice. As in syscomments, the statements are broken into pieces because of the 4000 characters limitation. The have to be checked and ordered against colid in...

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Sometimes, winning is not an issue but trying.
    You can check my BLOG
    [font="Arial Black"]here[/font][/url][/right]

  • RE: SSMS Features

    Even without selecting Table Designer from Tool bars, right click the workspace of Table design screen and select 'Generate Change Script ...'. 🙂

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Sometimes, winning is not an issue but trying.
    You can check my BLOG
    [font="Arial Black"]here[/font][/url][/right]

  • RE: Careful with table name alias

    Very interesting...

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Sometimes, winning is not an issue but trying.
    You can check my BLOG
    [font="Arial Black"]here[/font][/url][/right]

  • RE: INSTEAD OF trigger and OUTPUT clause

    Lost...

    Selected wrong option.

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Sometimes, winning is not an issue but trying.
    You can check my BLOG
    [font="Arial Black"]here[/font][/url][/right]

  • RE: How to return week number in 2 digit form

    Select Replicate('0',2-Len(datepart (week, '2005-01-09'))) + Cast(datepart (week, '2005-01-09') as varchar(10)) as DOW

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Sometimes, winning is not an issue but trying.
    You can check my BLOG
    [font="Arial Black"]here[/font][/url][/right]

  • RE: updating changes from one database to another database in the same server

    You can use Replication in SQL Server. Also you can use third part tools like SQL Data Compare or SQL Delta.

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Sometimes, winning is not an issue but trying.
    You can check my BLOG
    [font="Arial Black"]here[/font][/url][/right]

  • RE: get rows from joins which doesn't match

    Do you want to eliminate the IDs in the result set that are in EMPLOYEE_RESIGNATION or EMPLOYEE_TERMINATION? is that what you want?

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Sometimes, winning is not an issue but trying.
    You can check my BLOG
    [font="Arial Black"]here[/font][/url][/right]

  • RE: Code generation

    This code gave out only 253 duplicates on 16 Mln records.

    I don't know if this is exactly what you're after, but you could give it a go.

    SELECT TOP 1600000 RIGHT(master.dbo.fn_varbintohexstr(hashbytes('MD5',CAST(NEWID()...

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Sometimes, winning is not an issue but trying.
    You can check my BLOG
    [font="Arial Black"]here[/font][/url][/right]

Viewing 15 posts - 91 through 105 (of 444 total)