Viewing 11 posts - 76 through 86 (of 86 total)
If you add servers and databases a lot I would suggest a compound primary key. Use whatever method you decide to generate a unique ID but also add one...
December 16, 2002 at 9:25 am
I'll share some code we have been using to maintain IDs in our Sybase databases for years. Sybase didn't have the concept of IDENTITY columns back when this was...
December 9, 2002 at 9:14 am
I must say that I really am glad I somehow stumbled onto this site and receive the regular e-mails. I have been working in Sybase for about eight years,...
December 5, 2002 at 7:52 am
I would have to agree with the comments never to use SELECT * when creating views. As you can see, you aren't saving yourself any time when a base...
December 5, 2002 at 7:24 am
[font=Arial]]
Sorry, I should have elaborated further. I personally would use approach 2 as I like to be able to look at the data and know where it came...
November 25, 2002 at 8:07 am
Bi-directional replication can be done on the same table but requires planning and very good controls on server specific code. A couple of methods are as follows:
1) A...
November 25, 2002 at 7:58 am
Try this and I think you will have some luck.
Create a simple procedure:
CREATE PROCEDURE p_test_success
@success_cd TINYINT = 0
AS
begin
-- @success_cd = 1 =...
November 21, 2002 at 7:34 am
Simon -- No surprise about BOL
I'm curious where you found your reference. Mine was simply going to the index, typing CONTAINS and scrolling to the bottom of that function.
I...
November 14, 2002 at 2:39 pm
Books Online contradicts Simon's claim:
H. Use CONTAINS with variables
This example uses a variable instead of a specific search term.
USE pubs
GO
DECLARE @SearchWord varchar(30)
SET @SearchWord ='Moon'
SELECT pr_info FROM pub_info WHERE CONTAINS(pr_info, @SearchWord)
...
November 14, 2002 at 8:10 am
simonsabin is correct. You should always use both characters.
IsNull(field1, '') + char(13) + char(10) + IsNull(field2, '').
I also tend to include an IsNull to ensure I get field1 or...
November 4, 2002 at 8:17 am
Why not just use a temp table?
SELECT C.Cust_Name,
A.Account_No,
C.Location,
...
October 31, 2002 at 7:34 am
Viewing 11 posts - 76 through 86 (of 86 total)