Forum Replies Created

Viewing 15 posts - 556 through 570 (of 1,109 total)

  • RE: Rename a column

    alorenzini (12/5/2007)


    Thanks. That works.

    Make sure you refresh all dependent views (see sp_refreshview) if they were using select * (bad practice). Also, if you are not using select $ in these...

  • RE: Update table with multivalue query

    Assuming a lot (like that you are trying to add up the order amounts in your Pizzas ordered table and put the value to the Orders table's total_order_price), you could...

  • RE: Formatting Text

    Charlottecb (12/6/2007)


    Thanks for the response, its along the same lines as I had reached already, however it doesn't handle symbols and numbers. Any suggestions?

    CCB

    Just replace the @a with a regexp...

  • RE: Formatting Text

    You can use a user defined function that fixes such newline issues. The function could use Patindex and Stuff. A solution:

    CREATE FUNCTION dbo.DoubleNewLine ( @text VARCHAR(50) )

    RETURNS VARCHAR(50)

    AS BEGIN

    ...

  • RE: Copy of data from one server to another server

    sqldba (12/6/2007)


    Thanks for your response.

    If the server is SQL 7, how can i do it.

    Hmmm, SQL Server 7 🙁

    You could still break up the table into several tables, and then...

  • RE: Copy of data from one server to another server

    You could partition the table.

    How frequently do you need to truncate?

    You could create a few tables, and create a view over them. Then just rotate the tables underneath.

    SQL Server...

  • RE: Auto Generated No in SQL Stored Procedure

    Or another solution is to use:

    'P' + RIGHT(REPLICATE('0', 10) + RTRIM(MAX(t.a) + 1), 9)

    This finds that highest id in the table, adds one to it, adds 0s, and prefixes it...

  • RE: Traverse in XML file

    Hi Manutosh,

    this time the XML made it :). I'm wondering if you have an example of the "other format" as well. IF ti is only the nestedness of employees, you...

  • RE: Traverse in XML file

    Looks like your xml did not make it. Please replace all < with &lt;. In Management Studio or Visual Studio: Ctr-H, ...

    You can check if the XML displays properly in...

  • RE: temp tables VS variable tables ????

    There are places where table variables are a very bad idea, and the other way around. For example, storing much data in table variables on 2005 is usually a bad...

  • RE: Traverse in XML file

    manutosh pandey (12/4/2007)


    Hi All,

    I am using the openxml function sql server 2000.but in this I am giving the hard coded stuff as...

  • RE: Getting records created in a particular week

    Prakash (12/3/2007)


    Dear All

    I want the output in this way

    Days No of.Requests

    Mon 5

    Tue 6

    Wed 7

    Thu 3

    Fri 2

    Sat 1

    I will pass only the date to the query

    Pls help me to solve this...

  • RE: Querying XML File

    Not sure about the internal representation you mean, but basically yes, you need to load the whole document to process it. In order to get a single value you are...

  • RE: MAX(CreatedDate)

    SELECT TOP (1) RememberValue

    FROM dbo.Remember

    WHERE DBName = @DBName

    AND SProcSource = @SProcSource

    AND SProcVersion = @SProcVersion

    AND RememberKey=@RememberKey

    ORDER BY CreatedDate DESC

    Regards,

    Andras

  • RE: Getting records created in a particular week

    Ramesh (12/3/2007)


    I still couldn't understand what you're trying to point...:unsure:

    Multiplying the value gives me 3032, whereas I get 12 when divided...

    I am curious to know, how the said value can...

Viewing 15 posts - 556 through 570 (of 1,109 total)