Viewing 15 posts - 1,096 through 1,110 (of 13,469 total)
CTE's would work, as well as subqueries(same thing,really , just different format.
here's my version of your post as CTE's:
DECLARE @personID INT = 123999;
WITH ELDASummary
AS (SELECT...
April 27, 2016 at 6:11 pm
there's no upgrade path for Express to non express versions; instead you need to backup all the databases, script out your logins, as well as anything server related...certificates, linked servers,...
April 27, 2016 at 5:30 pm
a trigger has a COLUMNS_UPDATED integer value which represents a bitmask for the columns that were mentioned in the update, but it does not tell you if the value changed...
April 27, 2016 at 9:45 am
is this on a cluster, where it might be failing over or toggling to the other node?
is it possible someone is downing the server for maintenance?
did you check the...
April 27, 2016 at 6:17 am
i think it's integer division. SQL maintains the datatype, and the avg is truncated to a integer.
change the datatype of the column from int to decimal(19,4) and you get 2.5
Declare...
April 26, 2016 at 3:27 pm
if the table has an implicit or explicit ordering, like an identity() column, or a CREATEDDATE datetime column, you can compare old to new in a set based operation, by...
April 26, 2016 at 3:02 pm
well i dug a little deeper in my old parser utility.
i expected the tables to be identified as TOKEN_TABLE, but they end up being TOKEN_ID instead; i guess with a...
April 26, 2016 at 12:29 pm
INNER JOIN (
SELECT Top 1
that will return one , single row, not one row per policy number, right?
so the other table is limited to match one row as...
April 26, 2016 at 9:29 am
from a string representing a query, it's difficult, just as Grant said; you have to tokenize it in a SQL parser. It's quite a bit of work, i did it...
April 26, 2016 at 7:19 am
It's really, really easy to script out a backup and restore,and with just a bit of tweaking and testing, make it fully automated.
For example, I have a job that restores...
April 26, 2016 at 7:10 am
i use something like this to generate models of both an insert and an update statement, assuming a staging table of the same name;
does this get you started?
you would...
April 25, 2016 at 1:48 pm
duplicate post.
original discussion is here, lets keep it all together to prevent fragmentation of replies:
http://www.sqlservercentral.com/Forums/Topic1779526-338-1.aspx
April 25, 2016 at 1:45 pm
the real question is what is your budget;
the top tools cost money, typically ~1000 per server, with discounts against more and more servers.
is your job going to shell out 100K...
April 25, 2016 at 1:38 pm
backup and restore would be my first choice too, unless you can come up with a decent reason to avoid it.
if you are really going to script it out,
there's...
April 25, 2016 at 1:16 pm
Viewing 15 posts - 1,096 through 1,110 (of 13,469 total)