Viewing 15 posts - 61 through 75 (of 198 total)
Hi David,
That looks shorter and prettier.....
Have fun
April 26, 2005 at 7:11 am
Hi JR,
Did a bit of work on this a while ago and have a working example - not the prettiest code in the world but hopefully it will help. Should be enough comments...
April 26, 2005 at 5:56 am
Hi Ron,
If you are anticipating 0, 1 or many results from your query and you are trying to trap 0 (which is what I am interpreting here) @@ERROR is not...
April 26, 2005 at 3:17 am
Ron, why would you need to trap @@error with your statement?
Why not just handle success or failure with a flag e.g.
Declare a_flag
If Exists (Select * from mytable)
Begin
<True...
April 25, 2005 at 10:22 am
As I said, no intention of insulting or irritating anyone - it just made me laugh (but I have got a strange sense of humour.....). It gave me a good start to a...
March 24, 2005 at 9:18 am
Quote Hector
every day one learnt a new thigs thanks my friend
one question are you a girl?
March 24, 2005 at 8:03 am
Nothing wrong with this at times. I guess you're in very good company here with this habit. - Too many home truths here for my liking.....
March 24, 2005 at 3:47 am
If the trigger is only firing once, the problem should really lie in the code / cursor used to perform the Insert / Update / Delete.
Any chance of posting the code...
March 23, 2005 at 5:21 am
Hi,
I think a little more information is required. Could you give us an idea of what you are trying to accomplish exactly and why you are using your current approach.
March 23, 2005 at 4:48 am
And a little further addition.....
Make sure you CAST / CONVERT to a format and length that is going to fit in with your query. e.g:
SET @SQLString = 'SELECT * FROM...
March 23, 2005 at 2:37 am
Orlando,
Syntax should sit something like this:-
DECLARE @Query nvarchar(4000),
@Total int,
@PrimaryKey int,
@TableName varchar(255)
SET @primarykey-2 = 1
SET @TableName = 'ATableName'
SET @Query = N'SET @Total = (SELECT COUNT('+ CAST(@PrimaryKey as NVarchar(4)) +...
March 21, 2005 at 3:28 am
Hi Stephen,
Just out of interest - what are you trying to solve with this?
Can you give us some examples of data etc?
Have fun
March 10, 2005 at 10:10 am
BOL = Books OnLine - it's the help files for MS Sql Server and can be found in:
Start->Programs->MS Sql Server->Books OnLine
Have fun
March 10, 2005 at 9:59 am
Got it - that was a bit of a pig.....
When you create a new linked server using EM, under 'Provider Name' you get to set 'Provider Options'.
All make note,...
March 3, 2005 at 8:13 am
Hi Louise,
It will be as easy as you make it.......
If its as simple a crossover as you make it sound, a DTS package would be a simple way forward. 1...
March 3, 2005 at 6:02 am
Viewing 15 posts - 61 through 75 (of 198 total)