Viewing 15 posts - 556 through 570 (of 1,109 total)
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...
December 6, 2007 at 6:53 am
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...
December 6, 2007 at 6:35 am
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...
December 6, 2007 at 4:01 am
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
...
December 6, 2007 at 3:11 am
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...
December 6, 2007 at 2:47 am
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...
December 6, 2007 at 2:19 am
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...
December 6, 2007 at 1:56 am
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...
December 5, 2007 at 7:24 am
Looks like your xml did not make it. Please replace all < with <. In Management Studio or Visual Studio: Ctr-H, ...
You can check if the XML displays properly in...
December 4, 2007 at 8:20 am
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...
December 4, 2007 at 5:19 am
manutosh pandey (12/4/2007)
I am using the openxml function sql server 2000.but in this I am giving the hard coded stuff as...
December 4, 2007 at 4:31 am
Prakash (12/3/2007)
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...
December 4, 2007 at 2:18 am
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...
December 3, 2007 at 9:27 am
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
December 3, 2007 at 8:31 am
Ramesh (12/3/2007)
Multiplying the value gives me 3032, whereas I get 12 when divided...
I am curious to know, how the said value can...
December 3, 2007 at 7:26 am
Viewing 15 posts - 556 through 570 (of 1,109 total)