Viewing 15 posts - 6,751 through 6,765 (of 13,469 total)
ALTER TABLE X add acolumn smallint NULL Default 0 WITH VALUES
the optional WITH VALUES populates existing rows with the default value in the new column
September 19, 2011 at 4:43 pm
rob.sellinger 92152 (9/19/2011)
September 19, 2011 at 4:39 pm
i'm using the patindex a second time to find the comma, and then pulling the length of whatever is between the two.
with stg_reporting([column 5])
AS (
SELECT '[jobname] [RPP] Info: [RPP] Job...
September 19, 2011 at 3:21 pm
rob.sellinger 92152 (9/19/2011)
September 19, 2011 at 3:14 pm
rob.sellinger 92152 (9/19/2011)
September 19, 2011 at 2:24 pm
any chance the values could be null? it looks to me like your code might do a SELECT TOP 1 from the table , and that could reutrn NULL, but...
September 19, 2011 at 1:57 pm
is that what it really looks like, or is it really tab delimited, so it's something more like this with the row of data on a single line?
SAMPLE CLIENT.⇒229-19534221 N.E....
September 19, 2011 at 1:05 pm
SSIS is part of one of the paid versions of SQL Server: Standard,Enterrpsie,Developer or Datacenter;
the free version fo SQL (SQL Express) installed with Visual Studio, or downloaded for free does...
September 19, 2011 at 12:54 pm
use the metadata to help generate teh required commands;
i think something like this can help:
SELECT
'USE '
+ name
+ '; IF NOT EXISTS (SELECT * FROM '
+ name...
September 19, 2011 at 12:50 pm
is there some sort of logic which can be used to decide whether the grading tables belong or not, or is it a conscience decision by someone after the database...
September 19, 2011 at 12:36 pm
that's just a basic Group by with the summing of columns, i think:
SELECT
State,
SUM(val1) AS val1,
SUM(val2) AS val2,
SUM(val3) AS val3,
SUM(val4) AS...
September 19, 2011 at 11:39 am
ahh nice Gail, you are right!
i ran it three more times after your post, and only when it recompiled with the first parameter i threw at it showed up in...
September 19, 2011 at 11:07 am
Based on what Jason pointed to, where you can harvest info from the execution plans, this seemed to work for me;
i ran a proc "sp_find that takes one parameter...it's basic,...
September 19, 2011 at 10:31 am
"The filename, directory name, or volume label syntax is incorrect."
that says the user running the procedure via xp_cmsshell does not have permissions to get to the file you want to...
September 19, 2011 at 9:17 am
Viewing 15 posts - 6,751 through 6,765 (of 13,469 total)