Forum Replies Created

Viewing 15 posts - 241 through 255 (of 444 total)

  • RE: How and where to start SQL DBA training

    ALot of books for reference...

    SQL Server 2005 Bible by Paul Neilson can be one of the option.

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

  • RE: Partitioning in SQL Server 2008

    Alot info. Some of the things have really changed in SQL Server 2008.

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

  • RE: How could i get following result

    Just a concept....

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

  • RE: How could i get following result

    Another Option...

    Declare @t1 Table(mid int, val varchar(100))

    Insert into @t1

    Select 1,'123' union all

    Select 2,'123456' union all

    Select 3,'123456789' union all

    Select 4,'123456789123'

    Declare @vChk varchar(100)

    Set @vChk...

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

  • RE: how i could take the longest no match??

    Not very sure aboiut your inputs and output but try this...

    Declare @t1 Table(mid int, val varchar(100))

    Insert into @t1

    Select 1,'123' union all

    Select 2,'123456' union all

    Select 3,'123456789' union all

    Select 4,'123456789123'

    Declare @vChk varchar(100)

    Set...

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

  • RE: Comparison of Dates in SQL

    From the following code, it is verified that the Index is used with or without function on the column...

    Create Table #t1 (mid int,gdate datetime)

    CREATE CLUSTERED INDEX [IX_ALIEN_MISSILE] ON [#t1]

    (

    [gdate] ASC

    )...

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

  • RE: BreadthFirstSearch

    Check this...

    Declare @tMain Table (mid int, pid int)

    Insert into @tMain Values ( 1,0)

    Insert into @tMain Values ( 2,1)

    Insert into @tMain Values ( 3,1)

    Insert into @tMain Values ( 4,1)

    Insert into @tMain...

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

  • RE: when to create new tables

    Why do you think you need to put common attributes in one table? If I had 2 different entities Person and Building and both entities had an address associated with...

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

  • RE: Find Longstanding Open Transactions

    Good One...

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

  • RE: Need Query urgent..

    Check this...

    http://www.sqlservercentral.com/scripts/Miscellaneous/30085/

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

  • RE: t-sql help

    Not really clear what you're asking, but try this

    WITH Numbers AS (SELECT number

    FROM master.dbo.spt_values

    WHERE type='P')

    SELECT Appointment_time,Duration,Appt_count,ApptLimit_For_Day,patientRecNum,

    PatientName,ApptCreatedDate,

    CASE...

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

  • RE: Getting the Results witout using SubQuery

    Why not the subquery?

    Is it a Quiz...:w00t:

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

  • RE: BreadthFirstSearch

    What exactly are the inputs and output?

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

  • RE: Sub Query

    You can have more than one columns IF the subquery is used in the FROM Clause.

    But NOT if used in Select List (column list), Where conditions and Having conditions. Only...

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

  • RE: t-sql help

    Here it is... I think cursor is the option...

    CREATE TABLE #Temp1

    (

    ID int Identity(1,1),

    Appointment_time CHAR(4),

    Duration INT,

    Appt_count INT,

    ApptLimit_For_Day INT,

    patientRecNum VARCHAR(15),

    PatientName VARCHAR(148),

    ApptCreatedDate DATETIME,

    Overbook_Flag CHAR(3),

    Doctor VARCHAR(200),

    [ApptDate] VARCHAR(50)

    )

    INSERT INTO #Temp1

    SELECT '0800',15,12,7,100,'patient1','2009-02-17 15:51:55.427',NULL,'Doctor1','04/27/2009'

    UNION

    SELECT '0815',45,12,7,105,'patient2','2009-02-27...

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

Viewing 15 posts - 241 through 255 (of 444 total)