Viewing 15 posts - 2,491 through 2,505 (of 5,103 total)
Just duplicate the inner quotes:
'The child''s cereal is too warm.'
note: '' is not double quotes (") is two single quotes(')
Cheers,
* Noel
November 22, 2005 at 8:38 am
use the Convert function:
select convert( char(6), getdate(), 112)
Cheers,
* Noel
November 22, 2005 at 8:35 am
Sergiy,
In my trigger code there is no need for a while loop because I am using an stored proc (have a look at it) which guards the last available Id to be...
* Noel
November 22, 2005 at 8:32 am
I would like to see if you check for Dateformat on all your SPs or if like the rest of us simply use standards so that when those values are to...
* Noel
November 21, 2005 at 7:34 pm
Cursor?
Create Trigger...
Declare @cnt int, @nextID int
Set @Cnt = @@rowcount
exec sp_GetNextID 'TableName', @cnt, @nextId out
-- Now use your same insert into...
![]()
* Noel
November 21, 2005 at 7:23 pm
1. You are not serious are you ![]()
2. That will set a lock on that table for the duration of the insert statement
* Noel
November 21, 2005 at 4:58 pm
And by the way if somebody change DATEFORMAT inside their stored procedure is up to them to handle it inside that scope the outer scope will be unaffected 
* Noel
November 21, 2005 at 4:50 pm
Personally I use ISO format for character dates and you won't need the explicit conversion at all
TEST:
create table test
(
col1 datetime
)
set language 'British'
insert into test(col1) values ('20051011')
set language 'us_english'
insert into test(col1)...
* Noel
November 21, 2005 at 4:36 pm
Jaime, IT IS about the language!!!
if you are trying to use sp_setdefault language you probably need to disconnect and connect after each call to that procedure ![]()
* Noel
November 21, 2005 at 4:25 pm
What I want to know is WHY it happens in the first place? WHY does '2005-11-21' not get evaluated as 21st November?
Because the language which SQL server was...
* Noel
November 21, 2005 at 2:31 pm
in the above there are Two dangerous propositions:
1. SELECT @LastID = MAX(ProjectId) from TATMChangeHistory.dbo.tblProject
what would happen if a separate connection runs the same trigger before the first one is done...
* Noel
November 21, 2005 at 2:10 pm
There are two schools in this matter. Pick what suit you best ![]()
1. Run parallel Tlog backups at the same time the reindexing is...
* Noel
November 21, 2005 at 1:58 pm
that trace flag does not creates a separate file it simply writes to the sql server error log a more detailed information about deadlocking issues!!!
* Noel
November 17, 2005 at 1:30 pm
Johnny, I noticed you are showing 'deny' permissions on some of the columns you are trying to update!!
First you haven't posted the code that set those up
Second if you have...
* Noel
November 17, 2005 at 1:04 pm
Viewing 15 posts - 2,491 through 2,505 (of 5,103 total)