Viewing 15 posts - 331 through 345 (of 362 total)
[font="Verdana"]
bill.humphrey (4/7/2008)
alter procedure sp_list_orcon_cat_b_v2
@start_date nvarchar(19),
@end_date nvarchar(19),
@priority nvarchar(1),
@response integer
AS
if (@end_date is null) then
begin
set @end_date = @start_date
end
begin
SELECT TOP 100 PERCENT id,...
April 7, 2008 at 4:18 am
[font="Verdana"]Please post your DDL of the table, if possible.
Thanks,
Mahesh[/font]
April 7, 2008 at 4:10 am
[font="Verdana"]
also refer below URL
http://www.sqlservercentral.com/scripts/Administration/62276/
Thanks,
Mahesh
[/font]
April 7, 2008 at 1:01 am
[font="Verdana"]
Raghu (4/5/2008)
I have an application running on .Net. I have a task to identity how can this application connected to various databases like SQL Server, Oracle & MySQL. The...
April 7, 2008 at 12:21 am
[font="Verdana"]
Grant Fritchey (4/4/2008)
Once you realize that the INSERT...SELECT mechanism is just a SELECT statement, pretty much anything possible within the SELECT statement can be used with...
April 4, 2008 at 6:08 am
[font="Verdana"]Ya Karl, ketikeyan might be missing something. Kartikeyan, let us know.
anyways Karl, thanks 🙂
Mahesh[/font]
April 4, 2008 at 3:08 am
[font="Verdana"]Not sure but you have to take help of Cursor, Dynamic SQL. Within the Cursor you have to build string for creating a Table and Select statement as well. i.e.
1....
April 4, 2008 at 2:51 am
[font="Verdana"]
or
Select * From TableA Where TableA.ID Not Exists (Select TableB.Id From TableB)
or
Select * From TableA Where TableA.ID Not In (Select TableB.Id From TableB)
I would suggest use EXISTS over IN...
April 4, 2008 at 1:07 am
[font="Verdana"]Grant, whatever you said earlier, regarding indexes, I am completely agrees with you. Using Indexes in proper manner, performance increases. However as Ahmedi said, each row get expire after some...
April 3, 2008 at 11:55 pm
vaidyanathan_kalyanasundaram (4/3/2008)
Hi Grant,Thanks for the reply...
I would like to know if we can include a case statement in an insert operation.
[font="Verdana"]Obviously.
Insert Into {Table} {Col1, Col2}
Select Col1, {Case When Col2 =...
April 3, 2008 at 11:12 pm
elangovanp (4/2/2008)
And, some tools are available to convert the entire database string into UPPER...
April 2, 2008 at 11:58 pm
[font="Verdana"]
Grant Fritchey (4/2/2008)
April 2, 2008 at 11:03 pm
[font="Verdana"]You think right. Moving such records to History table is good approch, so that you can get active records quickly. Also go through the below URL, this might help you...
April 2, 2008 at 10:46 pm
[font="Verdana"]
Kartikeyan, sorry to say but you must be missing something. I have tried the sample query and then posted it. My sample query is:
declare @STR varchar(7999)
Select ...
April 2, 2008 at 10:20 pm
[font="Verdana"]
This way also ...
Declare @strSQL VarChar(Max)
Select @strSQL = (Case When @strSQL Is Null Then {Date Col} Else @strSQL + ', ' + {Date Col} End)
From {Table}
Select @strSQL
Thanks,
Mahesh
[/font]
April 2, 2008 at 6:20 am
Viewing 15 posts - 331 through 345 (of 362 total)