Forum Replies Created

Viewing 15 posts - 226 through 240 (of 533 total)

  • RE: ssis problem in T-Sql

    riajain9 (7/20/2010)


    Hello Mike/Bt...

    I cannot use this update as my data is very large more than 100000 and is always increasing...

    I there any way to add it in the query as...

    └> bt



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

  • RE: Rename Table Without Stored Procedure

    Why don't you want to use a stored procedure?

    └> bt



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

  • RE: A query to calculate the frequency

    The frequency function in Excel looks to have the first interval be based on what is less than your first data value. In the case of your example, your...

    └> bt



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

  • RE: Query Re-Write to Minimize Logical Reads

    The Dixie Flatline (7/19/2010)


    By "you", I assume that you're referring to SwedishOrr. The whole point of the code I wrote was to avoid hitting Table A twice.

    Yes indeed...

    └> bt



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

  • RE: CLR Problem

    Maybe I'm missing something, but isn't your function returning XML? So wouldn't it be:

    CREATE function fn_getXML(@url nvarchar(max))

    returns XML AS

    EXTERNAL NAME [XMLPuller].[XMLPuller.XmlFunctions].[getXML]

    GO

    (*edit: nevermind ... I looked at...

    └> bt



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

  • RE: Query Re-Write to Minimize Logical Reads

    The Dixie Flatline (7/19/2010)


    Without data to test, this is a shot in the dark, but....

    SELECT COUNT(DISTINCT docid) -- docid is primary key of Table A

    FROM [Table A] a

    JOIN...

    └> bt



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

  • RE: Parsing QueryString to SQL Table

    Nevyn (7/19/2010)


    Just a heads up on this one to watch out for SQL injection vulnerabilities here. Just parsing a querystring in a stored procedure and using it to dynamically...

    └> bt



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

  • RE: convert datetime into date and time.

    A lot of times this sort of thing is better done on the interface side.

    However, if you need to do this via T-SQL, I would suggest you read this article[/url]...

    └> bt



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

  • RE: Table Creation

    There are times I will use the GUI in a development environment but then use a tool to generate the T-SQL to make 100% sure I know exactly what the...

    └> bt



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

  • RE: Parsing QueryString to SQL Table

    There was a very big thread about splitting strings last year on this site.

    I'll let you read through that because it covers a lot. Generally, however, the best performance...

    └> bt



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

  • RE: LastUpdate Date/time stamp

    You should be using stored procedures anyway. Simply update the new column to GETDATE each time you do an insert/update.

    └> bt



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

  • RE: Query to select the last record for each user

    Your way will work, but it is not the most efficient (as you guessed.) I use to use subqueries in WHERE clauses just like you have done, but I've...

    └> bt



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

  • RE: History actions

    If you want something more advanced you need to build the mechanism yourself. Generally you don't want to log everything, just specific data changes, so it's fairly easy to...

    └> bt



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

  • RE: Table Creation

    It's hard to be sure of the difference without actually seeing T-SQL used to create the tables. If you used the GUI designer there shouldn't be an difference (that...

    └> bt



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

  • RE: Help in Aggregating columns

    See the link in my signature for information about how to post a question in such a way that people can and will help you.

    └> bt



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

Viewing 15 posts - 226 through 240 (of 533 total)