Viewing 15 posts - 7,156 through 7,170 (of 7,636 total)
As for you SQL code, I think that you need one change:
Insert into #BakDir exec xp_cmdshell 'dir /B'
declare @file varchar(max)
Select @File = FileName from #BakDir
-- you do not need the...
April 14, 2008 at 1:29 pm
Jonathan Beck (4/14/2008)
Msg 15281, Level 16, State 1, Procedure xp_cmdshell, Line 1
SQL Server blocked access to procedure 'sys.xp_cmdshell' of component 'xp_cmdshell' because this component is turned...
April 14, 2008 at 1:24 pm
b.carlson (4/14/2008)
April 14, 2008 at 12:49 pm
Please post this in an appropiate forum.
April 13, 2008 at 11:20 pm
Jeff: I think that's an article.
April 13, 2008 at 11:06 pm
You will want to look at "Not IN(...)" or "Not EXISTS(...)"
April 13, 2008 at 10:57 pm
Wow. OK, well first, you are definitely in the wrong forum, I would suggest a T-SQL forum or similar here on this site.
And secondly, read this link to see...
April 13, 2008 at 4:38 pm
Well, there are a number of ways to go with this, a UNION being the most obvious and some folks use those fancy OVER-based functions, however I like this one:
Create...
April 13, 2008 at 4:30 pm
Use this stored procedure to create your views (modify it for your specific needs). Whenever the tables' columns change, re-run this procedure instead of recompiling the views:
Alter Proc spCreate_Status_View(@Table...
April 13, 2008 at 12:59 pm
b.carlson (4/12/2008)
Sorry for the abbreviation TC = Ten Centuries
Harrumph. You know "Joel" at least had some letters in common with Jason S.'s real name...
🙁
April 12, 2008 at 7:58 pm
Well, generically, you do not need COMPUTE.
If you would like a more specific answer, you might want to give us a more specific example to work with.
April 12, 2008 at 7:53 pm
Viewing 15 posts - 7,156 through 7,170 (of 7,636 total)