Viewing 15 posts - 46 through 60 (of 314 total)
More over I don't think u can use Xaction log backup from SQL Server and apply it on another SQL Server(Unless u are using Log Shipping). Xaction log restore will...
October 23, 2006 at 11:14 am
Try this:
Select UserID,FName,LName,
isnull(Case when FName is Null then LName
when LName is Null then FName
Else FName + ':' + LName End,'None')
from Test_Name
October 23, 2006 at 11:07 am
Pankaj,
Tell ur manager that if you want that files to be used by other process then you need to have it delimited.
If you really want it the way he wants....
October 20, 2006 at 3:01 pm
Two options.
1.As the vendow to pull "Blank or Null data" when the columns does not have values that way ur file definition is same.
2.Load it into temp table that have...
October 20, 2006 at 11:32 am
Is this what u want:
declare @dt datetime
set @dt ='10/20/2006 12:00:00 AM'
select @dt, Convert(Char(10),@dt,101),Convert(Char(10),@dt,1)
Thanks
Sreejith
October 20, 2006 at 11:11 am
I don't think I understand your question. Are u trying to create unique number(indentity) on an existing table(that has non unique keys)? Please explain us what u have and what...
October 20, 2006 at 10:06 am
Jono,
Trigger is not the kind of solution that you should be looking. DTS or SQL Replication is what u want otherwise ur data might be lost (due to non availability...
October 20, 2006 at 10:02 am
Try this:
select DCC.DCC_ID,DCC.[Description],
TYPECOUNT.LOGON_TYPE_COUNT,
sum(case when QUERY.TYPE = 'JPJ' then 1 else 0 end) as JPJ_Count,
sum(case when QUERY.TYPE = 'JPN' then 1 else 0 end) as JPN_Count,
sum(case when QUERY.TYPE = 'JIM' then...
October 19, 2006 at 2:35 pm
Here is an example:
Create procedure ssp_findData
@i_UserID int = 0,
@i_DeptID int = 0
as
Begin
set nocount on
Declare @s_SQL varchar(512)
select @s_SQL = 'select * from UserDept where 1 = 1'
If @i_UserID <> 0
Begin
select @s_SQL...
October 19, 2006 at 11:07 am
I've been a DBA for 6 years I don't have certification. The reason being I don't believe in Certification. I've seen tons of people who have MCSE,MCSD,MCDBA (all three) and...
October 19, 2006 at 10:52 am
Do u have index on Order_Status column? Looks like u need one.
when u say "I comment out all the IF statements but one it runs in 2 secs" what gets run....
October 19, 2006 at 10:47 am
Slightly modified version of Greg's post.
Create a view with the same logic as Greg's post, then u can use the view in any of your query.
Create view VW_Rate_Effectivity
as
select rate,EffDate,CurrencyCode,
/* Get...
October 18, 2006 at 2:30 pm
why do u need to use trigger to call an exe?
what happens when exe fails.(your DB is not updated as trigger failed)
If your exe queries the same table that it...
October 18, 2006 at 2:16 pm
Viewing 15 posts - 46 through 60 (of 314 total)