Forum Replies Created

Viewing 15 posts - 346 through 360 (of 533 total)

  • RE: date format in stored procedure

    Couple of basic things ...

    Generally you don't want to worry about formatting on the database side. The db should just be storing the date as a date ... the...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: nvarchar(max) truncated

    Lutz is 100% correct. Using case statements will have superior performance and readability. If you don't understand how to implement and you need to see a fully coded...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Selecting the earliest month wrapping January to December

    Jeff Moden (6/8/2010)


    Unless I'm missing something, this problem is impossible to solve because there's simply nothing to guarantee the order of the data. There has to be a date...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Selecting the earliest month wrapping January to December

    joefreeman (6/8/2010)


    I'm sorry Paul and really do appreciate your help. When you're so close to a problem sometimes it's hard to verbalise all the intricacies. If you can...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Selecting the earliest month wrapping January to December

    Use the tags that say 'code="sql"' (4th from the bottom) and it will look much nicer.

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Rollup select statement problem

    Please provide table definitions and sample data so we don't have to guess about those things.

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: rolling total trouble

    Actually, before doing that, spend some time reading this great article[/url] posted by Jeff Moden. Then, if you still have questions feel free to post them here, but do...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Cross Tab for Non-Aggregated Data

    I can think of two ways:

    method #1

    select ClientName, [Home], [Work], [Cell]

    from #tempContactNumbers

    pivot

    (

    MIN (ContactNumber)

    FOR ContactType IN

    ([Home], [Work], [Cell])

    ) pvt;

    method #2

    with cteTemp(ClientName, Home, Work, Cell)

    as

    (

    SELECT

    ...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: NT AUTHORITY\IUSR user issue

    If you're getting the error "Login failed for user 'NT AUTHORITY\IUSR'", then your app is not using the account that you set up. It's passing along the user credentials...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: write to an SQL Rable with an Image datatype, from vb6 using ado

    Why would you want to store text as an image?

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: How do I set up VS2008 to debug SS 2008 sp?

    There is a lot of information about SQL Server Profiler in Books Online. Just look up 'profiler' in the index.

    Profiler will allow you to set up a trace, by...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: select statement error

    Whatever you're using (vb.net) ... print your SQLstr to see what it's actually sending to the SQL Server. I'm guessing that it is not resolving Me.DropDownListDept.SelectedValue.ToString to what you...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Newbie Stored Procedure Question

    This isn't a SQL question, this is a VB question but I'll do my best to help you ...

    You can reference multiple tables within a dataset. Where your dataset...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: How to combine records in same table (Flatten a table) ?

    You say the question isn't about how to pivot (and Paul linked an article for you about that anyway), so this is just a matter of limiting your records as...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Primary Keys and FKeys

    The FK constraints are more of a data integrity issue than a performance issue. The big thing is to make sure you have appropriate indexing on your tables or...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

Viewing 15 posts - 346 through 360 (of 533 total)