Viewing 15 posts - 2,731 through 2,745 (of 7,187 total)
Those somewhat contrived requirements make this sound like a homework assignment. Why can't you create any temp tables or new procedures?
John
March 24, 2016 at 9:42 am
I agree with what Phil says. And, while what you posted is syntactically correct, you don't need the BEGINs and ENDs except in the circumstances I mentioned earlier.
John
March 24, 2016 at 9:03 am
Yes. No. You can put as many commands as you like in a job step. If you want to be able to run each command individually, you...
March 24, 2016 at 6:24 am
What is the exact error message, please? Could the mystery columns be in the view definition... I assume that vwItemQtysOnHandAllItems_SQLViews is a view?
John
March 22, 2016 at 10:54 am
Joe
The easiest way is to use a FOR XML clause in your SELECT statement. There are lots of examples out there - search for concatentate aggregate function. You'll...
March 22, 2016 at 10:27 am
Well, you did post in the SQL Server 2012 - T-SQL forum! If you're on 2008 then you'll need to resort to self-joins in order to get values from...
March 22, 2016 at 6:52 am
You could write something that will loop through active connections and kill any that haven't done anything for longer than a particular period of time. Make sure you test...
March 22, 2016 at 6:48 am
Nader
I'm sure it's all in the documentation, but here's a summary as I understand it. DBCC CHECKDB doesn't take any locks that will cause blocking of use activity. ...
March 22, 2016 at 5:31 am
Data in a table doesn't have any inherent order. You need a column, or combination of columns, on which you can sort. The LAG and LEAD functions will...
March 22, 2016 at 3:24 am
Connect to lots of other servers so that the old ones disappear, I suppose. Or hack the registry to get rid of them. You'll probably be able to...
March 21, 2016 at 9:26 am
Then this is a good learning opportunity for you. You've already shown you can use LEFT and CHARINDEX. Read about LEN and REVERSE and what they do, and...
March 21, 2016 at 4:17 am
Use REVERSE, LEFT and LEN to find the position of the final hyphen, then use LEFT to return all the characters up to that point.
John
March 21, 2016 at 3:34 am
sqllearner44 (3/18/2016)
March 18, 2016 at 4:31 am
So long as the server doesn't hold any of the databases that you'll be doing ETL on, then I'd agree that you're not likely to need a particularly sophisticated disk...
March 18, 2016 at 4:26 am
Are you talking about running SSIS on a different server from the database engine? Bear in mind that if you do that, you'll need to buy a separate licence....
March 18, 2016 at 4:15 am
Viewing 15 posts - 2,731 through 2,745 (of 7,187 total)