Viewing 15 posts - 46 through 60 (of 67 total)
There is an Update trigger, but it just updates the timestamp.
Here is the DDL- (see following post for my insert code)
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE...
May 9, 2007 at 10:15 am
The table def is in above post (let me know if you need more). And yes, the incrementing id is done from the trigger if the value comes in...
May 9, 2007 at 6:55 am
Something like this perhaps?
DECLARE @inString varchar(50)
SET @inString = '24302331 - IVA a 21% OBS'
print LEFT(@inString, CHARINDEX('-', @inString) - 1)
May 8, 2007 at 3:44 pm
Yes, on a uniqueidentifier column named 'rowguid'. Default value is newid()
AgeIDsmallint
Hosp_IDvarchar(20)
Age_Unitvarchar(6)null
Activebit ...
May 8, 2007 at 2:56 pm
Ok, well this works too but isn't much prettier. Still seems like there should be some slick in-line way to do it...
DECLARE @maxNum int
DECLARE @increment smallint
SET @maxNum = (SELECT...
May 2, 2007 at 3:09 pm
Ugh, what a hassle. I have to do this for about 50 tables, anybody know an easier way?
May 2, 2007 at 2:55 pm
We figured it out with this tip. "The password is converted to a wide character format (UNICODE) and each byte XOR'd with a constant fixed value of 0xA5". ...
April 27, 2007 at 4:57 am
I just thought you had to execute dynamically (with EXEC or sp_executesql) anytime you used a variable in your statement. I was really disappointed w/ SQL Server regarding this when I moved...
April 4, 2007 at 9:08 am
Is the ability to use a variable within a SELECT new to 2005? Is it limited to specific functions, such as TOP?
You are correct, it is still hardcoded but the...
April 4, 2007 at 8:39 am
If I used 0.0, why would the conversion not take place? Wouldn't it just convert to a dec instead of an int?
March 29, 2007 at 10:50 am
Yuck, but ok, that's kind of what i thought. FWIW, here's what i came up with, made even uglier by the fact that there may or may not be seconds, milliseconds.
Thanks!
March 26, 2007 at 4:22 pm
All of the fields used to populate table variable @tblIdFields are from static, application architecture tables. The application itself is a reporting tool, and accepts no user input (except choices...
January 29, 2007 at 12:16 pm
I ended up not putting the code in a field, and instead went this route. Let me know if anyone wants me to post the entire code, but I think...
January 29, 2007 at 9:57 am
Very good point, but the code does not actually exist in a persistent table. I construct the code statements from several fields in 2 different tables, and the code field is...
January 26, 2007 at 6:23 pm
Viewing 15 posts - 46 through 60 (of 67 total)