Viewing 15 posts - 481 through 495 (of 1,109 total)
sqluser (1/23/2008)
Hi Andras,Yes. Thanks you very much for your quick reply. 😛
I'm glad I could help. A lot of thanks...
January 23, 2008 at 3:00 am
rodrigo (1/23/2008)
How to add trigers in sql server 2000 that can call an asp.net page
The way I understand your post would mean that you are trying to use your database...
January 23, 2008 at 2:51 am
Is this what you have in mind?
SELECT SUM(CASE WHEN SID IS NULL THEN 1
...
January 23, 2008 at 2:48 am
Ahmad Osama (1/23/2008)
Hi,compatibility level is 80.
thanks,
Ahmad
Good that explains it 🙂
So first step, can you check the following:
SELECT SERVERPROPERTY('productversion')
Does this start with 9 or 8? If it is 8, then...
January 23, 2008 at 2:40 am
Ahmad Osama (1/23/2008)
Hi,It's not working I am getting the same error .
Msg 170, Level 15, State 1, Line 9
Line 9: Incorrect syntax near 'PIVOT'.
Thanks,
Ahmad
Hi Ahmad,
PIVOT statements have been introduced in...
January 23, 2008 at 1:57 am
For the first question the answer is that using top 1 is often resulting in a faster execution. (in a simple test case using top 1 resulted in fewer...
January 22, 2008 at 9:27 am
Any chance you could include the contents of the imagesBackup.sql file?
If you execute the contents in interactive mode, does it work?
Regards,
Andras
January 22, 2008 at 9:04 am
A simple question: does this folder actually exist on the server on which SQL Server is running? The xp_cmdshell is executed in the security context of the SQL Server service....
January 22, 2008 at 3:39 am
The reason is that SQL Server 2000 has much stricter rules on what it allows as parameters to table returning functions. So no function results, no variables, .... SQL Server...
January 22, 2008 at 2:28 am
Also see http://www.sqlservercentral.com/Forums/Topic443054-5-1.aspx. Same tools though. 😀 (of course I'm biased)
Regards,
Andras
January 22, 2008 at 2:01 am
Hi Ahmad,
you have not described what is stored in the monthwon column, nor did you give any sample data. So the following will be based on the assumption that monthwon...
January 22, 2008 at 1:45 am
You could change your case statement like:
CASE
WHEN [myRow] = 1 THEN 'True'
WHEN [myRow] IS NULL THEN 'False'
ELSE 'FALSE'
END
Andras
January 21, 2008 at 8:15 am
tadhg88 (1/21/2008)
Function and i am...
January 21, 2008 at 6:58 am
Since you seem to be on SQL Server 2000 you cannot use row_number(). You could create a temporary table for the whole result, and populate it using:
select identity(int, 1,1) as...
January 21, 2008 at 5:56 am
OK, a first draft (may need some adjustment, but I do not have your data 🙂
DECLARE @cols NVARCHAR(2000)
SELECT @cols = STUFF(( SELECT DISTINCT TOP 100 PERCENT
...
January 16, 2008 at 9:09 am
Viewing 15 posts - 481 through 495 (of 1,109 total)