Forum Replies Created

Viewing 15 posts - 3,826 through 3,840 (of 5,590 total)

  • RE: how to structure this query(which is a view)

    Can we get you to post your sample data in the form of insert statements? This will make it A LOT easier to test the result before we post it....

  • RE: Display the third attempt

    First, let's put the test data in a format that can be easily used by people here. If you had done this, other people would have been more willing to...

  • RE: How to Avoid loop?

    Hi Parthi,

    This is actually pretty easy to do... once you understand how to do it 😀

    First, you need to put the data into something with an XML data type. In...

  • RE: SQL Server 2008 Table Valued Parameters Performance

    Excellent article. The only thing I think would have been nice to add (and which has been covered in this discussion forum) is how to pass the data into the...

  • RE: Tabify Select Lines

    Duncan Pryde (7/8/2010)


    It only "tabifies" groups of 4 spaces starting from the left, so if you have 5 spaces at the beginning of the line, you'll get a tab and...

  • RE: Diffrentiating scalar and table value functions

    select name

    from sys.objects

    where type IN ('IF', -- SQL_INLINE_TABLE_VALUED_FUNCTION

    'TF',...

  • RE: query each table in list of table names

    crossmj (7/7/2010)


    Wayne,

    It took me awhile to understand this message:

    Msg 214, Level 16, State 2, Procedure sp_executesql, Line 1

    Procedure expects parameter '@statement' of type 'ntext/nchar/nvarchar'.

    I finally...

  • RE: Incrementing a column during an UPDATE

    I'll bet you didn't know you can update variables at the same time as columns in an UPDATE statement. This should work for you.

    declare @clientid int

    select @clientid = select max(clientid)+1...

  • RE: How can I improve this? Any suggestions?

    mmcardle (7/7/2010)


    I was hoping to use a table variable because a) I was a bit temp table-happy when I first started with SQL and realised later that it's best to...

  • RE: Insert Value in Identity Column

    SQLEE (7/7/2010)


    How do I account for the value of an identity column when doing an insert to a table. A NOT NULL vaule won't work and throws an error. Col4...

  • RE: Are the posted questions getting worse?

    Grant Fritchey (7/7/2010)


    WayneS (7/6/2010)


    Jeff Moden (7/6/2010)


    CirquedeSQLeil (7/6/2010)


    WayneS (7/5/2010)


    Since there's a bit of talk going on about topics to present and such, I'd like to get some input from some of...

  • RE: Are the posted questions getting worse?

    Jeff Moden (7/6/2010)


    CirquedeSQLeil (7/6/2010)


    WayneS (7/5/2010)


    Since there's a bit of talk going on about topics to present and such, I'd like to get some input from some of the Threadizens...

    I've been...

  • RE: query each table in list of table names

    crossmj (7/6/2010)


    Thanks to Wayne and Lowell.

    My project is currently on hold, but I have been able by using a modified version of Lowell's script to find the tables containing...

  • RE: Error after converting int to date data type

    I ran the steps you posted, but did not receive an error. It looks like you might be utilizing the GetBytes function when it's generating your error, but you didn't...

  • RE: How to Minus X amount of minutes in a T-SQL query

    Mr_Bacon (7/6/2010)


    I think I have cracked it, might be overcomplicating things but the below seems to work, pending further testing. The below covers me for the 24 hour period required.

    I...

Viewing 15 posts - 3,826 through 3,840 (of 5,590 total)