Viewing 15 posts - 391 through 405 (of 455 total)
Hi,
Well there is enough information in BOL and the Primary requirement for creating a indexed view is
April 7, 2004 at 2:10 am
Well, There will be many instances where Cursors come handy and even performance efficient while doing batch updates, so I believe that outrightly we cannot make a statement that Cursors...
April 6, 2004 at 11:49 pm
Hi,
I am not sure from the optimization point of view however from the syntax point of you can us
if @value IS NOT NULL
BEGIN
----Statements ----
END
else
BEGIN
----Statements ----
END
Thanks
April 4, 2004 at 11:17 pm
However I have a question do we need to explicitly drop the temp table, what is the scope of the temp table defined inside a Stored Procedure with Create #TableName...
March 30, 2004 at 1:35 am
Sorry for a little confusion, actually I declared @TABLEDEFQRY as Varchar(8000) but since varchar datatype is not supported with EXEC SP_EXECUTESQL I changed the datatype to NVARCHAR(4000), however I missed to...
March 30, 2004 at 1:33 am
Hi,
This may work for you
select convert(varchar(11),getdate(),101) + ' and ' + RIGHT(convert(varchar(30), getdate(), 130),13)
Thanks
March 29, 2004 at 4:55 am
If you do not have constraints using stored procedures then you can try this.
ALTER PROCEDURE TOPROWS
AS
DECLARE @NATIVEID INT
CREATE TABLE #COMMON
(TPARTNERID INT,
TNATIVEID INT,
TFIRSTNAME NVARCHAR(100),
LASTNAME NVARCHAR(100))
DECLARE DNATIVEID CURSOR FOR
SELECT DISTINCT(NATIVEID)
FROM
COMMON
OPEN...
March 26, 2004 at 10:40 am
Hi GIRODON,
I don't know if you have already taken a look at BOL, but if not please take a look at Example given under
stored procedures, CURSOR_STATUS
It will give a pretty...
March 26, 2004 at 9:15 am
Very Weird, I have been using like '%' in many queries and SPs but never ever encountered any such issue and it does not definitely limit searching to 4 characters...
March 26, 2004 at 8:56 am
Sorry to ask you this question , But can explain what does this statement do? Does it assign the length of the column with blob datatype to amount or something...
March 26, 2004 at 4:34 am
Hi Bert,
After I posted that question, I wrote the above script and thought it may be useful for some more people, so posted it in scripts because I didnot find...
March 26, 2004 at 4:13 am
Unfortunately there is no function which supports the same functionality in SQL Server.
Thanks
March 25, 2004 at 1:28 am
Well the SQL SERVER 2000 Upgrade Wizard should do it for you with ease, however you may want to take a look at UPGRADING SQL SERVER in BOL and study...
March 24, 2004 at 12:38 am
Works great and this is the first time I looked at STUFFfunction in BOL after looking at your post. It is really a useful function.
March 23, 2004 at 8:40 am
The same can also be accomplished by
select UPPER(LEFT(col,1)) + LOWER(RIGHT(col,len(col)-1))
from employee
Thanks
March 23, 2004 at 8:34 am
Viewing 15 posts - 391 through 405 (of 455 total)