Viewing 15 posts - 11,731 through 11,745 (of 13,460 total)
i think you'll have to move the logic to an ON INSERT trigger, ;
this might be a little tricky, considering that a trigger needs to assume multiple rows might exist....
say...
Lowell
January 21, 2009 at 5:03 pm
I agree with Barry; still waiting to hear why an Identity() column, or varchar based off of an identity, or a GUID won't do the job.
Lowell
January 21, 2009 at 4:45 pm
for views,procedures,functions (and triggers) you could use a cursor to exec sp_helptext [objectname]
that would give you the script for those objects, assuming they were not marked WITH ENCRYPTION when they...
Lowell
January 21, 2009 at 6:23 am
harish_ravi (1/20/2009)
if so please...
Lowell
January 20, 2009 at 10:06 pm
the ISNULL function substitutes a value in place of the variable or column if it is null:
SELECT ISNULL(@Variable1,0.00) - ISNULL(@Variable2,0.00)
Lowell
January 20, 2009 at 9:21 pm
two things to consider....
if you are going to delete the records after archiving them off to another table, consider doing it in batches....if you do too many rows at a...
Lowell
January 20, 2009 at 9:18 pm
hopefully, this is not homework, because if you submit this as your answer, and can't explain what it does, you'll get burned.
FOR XML has a neat way of getting values...
Lowell
January 20, 2009 at 8:45 pm
i suspect it has something to do with being loos-goosy on your varbinary and varchar sizes:
DECLARE @prize_encrypt VARBINARY(256)
Set @prize_encrypt = EncryptByPassphrase(@pass,Cast(@prize_id as varbinary))
you try to use a varbinary(256 in one...
Lowell
January 20, 2009 at 8:30 pm
don't crosspost. you only need to ask once, the Newest Posts feature lets us see everything. asking the same question multiple places wastes posters time and fractures the continuity of...
Lowell
January 20, 2009 at 8:25 pm
don't crosspost. you only need to ask once, the Newest Posts feature lets us see everything. asking the same question multiple places wastes posters time and fractures the continuity of...
Lowell
January 20, 2009 at 8:25 pm
if this only happened once, i'd lean towards a minor intermittent network error:[DBNETLIB][ConnectionWrite (send()).]General network error.
if it's happening everytime or a lot, then
I found a lot of really good information...
Lowell
January 20, 2009 at 8:16 pm
in general, you'll see two ways to do this.
you can use a
SELECT * FROM TABLE1 WHERE [Client ID] in (SELECT [Client ID] FROM TABLE2 WHERE Trading_Code IN('ZBwhatever') )
or you...
Lowell
January 20, 2009 at 8:14 am
i misread the original post;
here's a sample from my snippets where someone wanted a unique alphanumeric, in order, ie AAA001 thru ZZZ999;
the nubmer gets generated based on an identity.you could...
Lowell
January 20, 2009 at 6:21 am
how about an Identity using a bigint column that starts with the first 16 digit number ?
create table #example( bigintID bigint identity(1000000000000000,1) primary key,
morestuff varchar(30) )
also why must it be...
Lowell
January 20, 2009 at 6:15 am
remember SQL encryption is not all that strong, even in 2005, a simple Google search will allow anyone that can run a TSQL script see the un-encrypted text of something...
Lowell
January 19, 2009 at 10:41 am
Viewing 15 posts - 11,731 through 11,745 (of 13,460 total)