Forum Replies Created

Viewing 15 posts - 7,261 through 7,275 (of 15,381 total)

  • RE: Run at Certain Time of Morning

    OldSageMonkey (8/6/2013)


    Hi Durai,

    No we are the only ones that use the server, its ours. I tried to make my suggestion to schedule a job and that was that.

    So if you...

  • RE: Lookup Error - SQL Server Database Error: Must declare the table variable "@table_name".

    redy007 (8/6/2013)


    Hello guys,

    I am new in t-sql (started today). Could you help me with the issue I have?

    on line 14 (if EXISTS(SELECT * from @table_name)) the output is

    Lookup...

  • RE: how to script out create table script of all tables in a database

    muthyala_51 (8/6/2013)


    Why not use a database diagram? That is pretty much what they are intended to be used for.

    The problem is we have too many tables which are inter related....

  • RE: Want to re-write a query to not use a cursor...

    No problem. Sometimes it is just the second set of eyes needed to look at the problem. Happy to help.

  • RE: Table data in tabular form

    freecoder (8/6/2013)


    cool..

    Will update the sample data tomoro as I am finishing work now.

    Cheers.

    Sounds good. I am sure that if I am not able to help you that some of the...

  • RE: how to script out create table script of all tables in a database

    muthyala_51 (8/6/2013)


    I am working on a project to help developers to know the relationship between the tables. Let us assume pk in table A is foreign key constrain in table...

  • RE: Table data in tabular form

    freecoder (8/6/2013)


    You are right

    The sample data is very different.

    I just wanted to give a hint ..how the table should look like..its not actual representation of the data..

    hope it makes sense?...

  • RE: Get last transaction from multiple groups of records

    Lrobinson 93181 (8/6/2013)


    I have provided the code and an example of the expected result set...so I am not sure what doesn't make sense? Maybe a step-by-step would help...it took me...

  • RE: Table data in tabular form

    Maybe I am missing something but your sample data does not seem to make sense compared to the picture you posted for desired output. You have 3 rows and they...

  • RE: Table data in tabular form

    Your table and the sample data don't seem to line up very well. First you were inserting the identity but when I removed that there are datatype mismatches. Is LeaveTypeName...

  • RE: Insert identity dynamically by using insert into

    karunakar2351 (8/6/2013)


    Code:

    SELECT

    IDENTITY(INT,1,1) AS D_Key,

    C_Key,

    D_Num,

    D_Name,

    D_Address

    INTO D_Table2

    FROM D_Table1

    I need to populate a table based on results from a query. If I do:

    INSERT INTO table2

    SELECT

    IDENTITY(INT,1,1) AS D_Key,

    C_Key,

    D_Num,

    D_Name,

    D_Address

    FROM D_Table1

    It gives me...

  • RE: Want to re-write a query to not use a cursor...

    This produces the same results.

    select name , convert(int, LOGINPROPERTY(name, 'BadPasswordCount')),

    convert(datetime, LOGINPROPERTY(name, 'BadPasswordTime')),

    convert(datetime, LOGINPROPERTY(name, 'DaysUntilExpiration')),

    convert(datetime, LOGINPROPERTY(name, 'LockoutTime')),

    convert(int, LOGINPROPERTY('loginname', 'IsLocked')),

    convert(datetime, LOGINPROPERTY(name, 'PasswordLastSetTime')),

    DATEADD(DD, 90, (convert(datetime, LOGINPROPERTY(name, 'PasswordLastSetTime'))))

    from sys.server_principals

    where type = 'S' and is_disabled...

  • RE: Get last transaction from multiple groups of records

    Lrobinson 93181 (8/6/2013)


    I have provided the code and an example of the expected result set...so I am not sure what doesn't make sense? Maybe a step-by-step would help...it took me...

  • RE: SQL Query

    What you are describing is string parsing. While the article referenced above is ok, the one in my signature has a version that is way faster than xml parsing. I...

  • RE: How to select range of consecutive events

    Thanks for the ddl and data. What I don't understand is the desired output. Since WKBW has a bit fewer rows let's look at that one.

    OUTPUT

    WKBW 7/5/13 12:00 PM 7/5/13...

Viewing 15 posts - 7,261 through 7,275 (of 15,381 total)