Viewing 15 posts - 346 through 360 (of 397 total)
Garbage clean up inside the function:
create function fn_reverse (@strin varchar(4000))
returns varchar(4000)
as
begin
declare @return varchar(4000)
declare @ascii smallint, @numeric bit, @space smallint, @start smallint, @garbage varchar(30)
declare @i smallint, @j-2 smallint
select @i...
February 25, 2004 at 2:47 am
check article PSS ID Number: 152806
February 24, 2004 at 8:30 pm
A temp table to hold ER, ER2, OK and join with searching table would be much easier.
February 24, 2004 at 8:18 pm
I would prefer to cut them before calling the function for two reasons.
1. the list can be changing.
2. outside the reverse logic.
You may want to use REPLACE (or combine with...
February 24, 2004 at 7:58 pm
Rename will not work after the first day. It can not be renamed to an existing table.
Method of backup table depends on amount of data and tracking design.
insert, bcp out/in...
February 24, 2004 at 5:51 pm
BOL article "Expanding Hierarchies" may help.
February 24, 2004 at 5:32 pm
Are you talking
set noexec on
or
set parseonly on
February 24, 2004 at 3:55 pm
You can use the function directly in query.
SELECT TAGNAME, dbo.fn_reverse(TAGDESC), EUDESC
FROM tbtxt
Not sure about the second one?
February 24, 2004 at 3:32 pm
create function fn_reverse (@strin varchar(4000))
returns varchar(4000)
as
begin
declare @return varchar(4000)
declare @ascii smallint, @numeric bit, @space smallint, @start smallint
declare @i smallint, @j-2 smallint
select @i = 1, @start = 1
while @i...
February 24, 2004 at 5:44 am
Employees | |
EMPID | int |
GROUPID | int |
GroupHierarchies | |
GROUPID | int |
PARANTGROUPID | int |
DESCRIPTION | varchar |
GroupHierarchies table can hold your company structure.
February 22, 2004 at 9:18 pm
Script it and then apply to SQL7.
February 22, 2004 at 6:39 am
Log shipping is live, or call hot standby. The standby server can be accessed although it is in read only mode. It is whole database level.
Snapshot replication is for one...
February 22, 2004 at 6:36 am
crdate and schema_ver in sysobjects table may help you.
February 19, 2004 at 8:49 pm
One way of doing:
alter table add
update the new column with identity column
alter table drop
February 19, 2004 at 8:20 pm
Viewing 15 posts - 346 through 360 (of 397 total)