Viewing 15 posts - 4,396 through 4,410 (of 7,496 total)
rbarryyoung (10/22/2008)
At my blog (in my signature, below) you will find my slide set and code examples of traps to avoid when setting up service Broker.
Very nice presentation indeed :w00t:
Hey...
October 22, 2008 at 1:08 pm
varchar(max) is only available as from SQL2005 !
However, you can concatenate variables to execute with exec.
Here's a little example:.
EXEC (@SQLQry + @SQLQryp1 + @SQLQryp2 + @SQLQryp3 + @SQLQrypx)
October 22, 2008 at 6:50 am
Indeed, service broker is a bit hard to monitor and to figure out what's going on.
You really need to play with it, to get the grips.
Here's an overview of my...
October 22, 2008 at 6:39 am
Just another flash in the brain ..... or what's left of it;)
When you switched the NICs, did you rename the NIC ?
We tend to use "public network connection" for our...
October 22, 2008 at 3:11 am
Forget about AWE for x64 ! Thats what it's all about with 64-bit.
You don't need that unless you go over the standard 64-bit addressing window.
However, you need to set your...
October 21, 2008 at 12:57 pm
Oh indeed... I did forget to mention that !
- sqlinjection risk
- if the formula contains an error .... try to figure it out.
Be aware it may start with numeric info...
October 21, 2008 at 12:49 am
Programming basics : copy/paste 😀
DBA basics: script programming :hehe:
October 21, 2008 at 12:43 am
In fact, Jacks solution is better, except for the isnull testing.
There it depends if your columns are allowed to contain nulls or not.
And you should still perform :
if @@ROWCOUNT =...
October 20, 2008 at 12:52 pm
you should directly move the data into your varriables:
ALTER PROCEDURE [dbo].[getSchedule]
-- Input
@facility char(2),
...
October 20, 2008 at 12:49 pm
did you try this ?
Declare @weight as char(25)
Declare @output as numeric(18,2)
SET @weight = '2*5+2*5*4'
declare @TheSQL nvarchar(1000)
Set @TheSQL = 'Select @theoutput = ' + @weight
--OutPut should be 50.
exec sp_executesql @stmt =...
October 20, 2008 at 12:43 pm
or
do the proprietary update:
UPDATE a
SET AccountStatus = 'Enabled'
FROM User a
INNER JOIN sheet1$ b
ON a.emailaddress = b.Emailaddress
October 20, 2008 at 12:34 pm
We enable deadlock detection at all our instances using:
startup parameters -T1204 and -T3605
so it gets recorded in the sqlserver errorlog file.
/* to start deadlock detection and recording without stop/start...
October 20, 2008 at 10:34 am
I would perform a checkdb on that db, just to be sure that is OK.
If it is ok, the cause will be your backup drive
October 20, 2008 at 10:27 am
Thanks for this valuable feedback. (with kb refs) :smooooth:
If you still have the occasion ... apply the latest tested cumulative update .
Did you find a reason for your clusterdb to...
October 20, 2008 at 10:25 am
If you want a user only to be used from a certain address, you should first create your UserId_to_IPAddress table and then use a logon trigger (you need at least...
October 19, 2008 at 1:19 pm
Viewing 15 posts - 4,396 through 4,410 (of 7,496 total)