Viewing 15 posts - 10,651 through 10,665 (of 13,461 total)
so you just need a script to dynamically create the UPDATE TABLENAME SET COLNAME = RTRIM(COLNAME) script, correct?
something like this:
SELECT 'UPDATE [' + object_name(object_id) + '] SET ['...
August 10, 2009 at 7:28 am
your script is missing parameters for the call:
http://www.sqldev.net/xp/xpsmtp.htm#Usage
here's an example on the syntax:
- ************************************************************************
-- more comprehensive example
-- ************************************************************************
declare @rc int
exec @rc = master.dbo.xp_smtp_sendmail
@FROM ...
August 10, 2009 at 5:13 am
google was my friend on this one:
searched for "SLA example" an these are the first two that seemed relevant to me:
http://articles.techrepublic.com.com/5100-10878_11-1048632.html
August 9, 2009 at 9:31 am
yeah, with large amounts of data, usually what happens is the data is copied into your servers tempdb, manipulated, and then the answer is returned.
whenever possible, you should use OPENQUERY...
August 9, 2009 at 9:18 am
you can prevent certain logins from having access to any linked servers you create, but not by IP address; typically, if you want to block IP's you do...
August 9, 2009 at 8:36 am
depends on what you are trying to accomplish when you say "alternatives to a linked server"...gather data from sources outside of your server is probably what you mean, right?
linked servers...
August 9, 2009 at 8:26 am
it sounds like this was your order of operations, and explains why when you restore, you lose your keys:
1. created the database.
2. create the table
3. backed up the database
4. added...
August 7, 2009 at 8:17 pm
the extra two bytes are so they can store the physical address of the memory location of the row.
August 7, 2009 at 8:17 pm
you should probably explain what you are trying to do; there's some logical errors in your code;
this section:
DATEDIFF(ms, 0, '2009-07-16 12:30:00') --milliseconds from 01/01/1900 to today--overflow
is trying to calculate all...
August 7, 2009 at 8:10 pm
Jack Corbett (8/7/2009)
SQL Server Agent -> Alerts.
gawd after you said it, of course i know better...duh....thanks Jack; i thought it was something new.
August 7, 2009 at 1:53 pm
Jack Corbett (8/7/2009)
August 7, 2009 at 1:47 pm
most decent text editors have syntax highlighting in them; many have a snippet feature as well. t
I use editplus because besides syntax highlighting, it has a nice cliptext feature, where...
August 7, 2009 at 1:25 pm
wouldn't changing the defaults on these to empty strings improve your proc a bit?
@componentType varchar(10) = null, @lang varchar(10) = null, @issVersion varchar(10) = null, @entitlementSuite varchar(10) = null, @platform varchar(10) = null,
comparing SomeColumn...
August 7, 2009 at 11:14 am
yeah i was looking at that;
really what you want to do is have your original be a "master" procedure, and depending on parameters, call other, more refined procedures for specific...
August 7, 2009 at 11:03 am
parameter sniffing: search here on SSC for some examples and solutions;
parameter sniffing happens when an execution plan is built that does not reflect the real way to get the data;...
August 7, 2009 at 9:45 am
Viewing 15 posts - 10,651 through 10,665 (of 13,461 total)