Viewing 15 posts - 346 through 360 (of 2,647 total)
Gazareth (8/6/2012)
SELECT CASE WHEN Col1 IS NULL THEN 0 ELSE Col1 END + CASE WHEN Col2 IS NULL THEN 0 ELSE Col2 END ?
SELECT ISNULL(Col1,...
Jared
CE - Microsoft
August 6, 2012 at 8:07 am
GSquared (8/6/2012)
The Stuff() function can take a variable as the position.For example:
declare @Position int = 2;select stuff('mystring', 2, 0, '-');
Where are you using the variable? 🙂 I think you meant...
Jared
CE - Microsoft
August 6, 2012 at 8:05 am
Can you clarify the question? Are you talking about adding a column to a table or to a result set?
Jared
CE - Microsoft
August 6, 2012 at 8:00 am
Here's something I just threw together. Someone else may have a better way, but this is just off the top of my head:
DECLARE @spName VARCHAR(250);
SET @spName = 'sp_syspolicy_purge_history';
SELECT sj.name,...
Jared
CE - Microsoft
August 6, 2012 at 7:47 am
That's all there is to it!
Jared
CE - Microsoft
August 2, 2012 at 8:53 am
For those interested, we have come up with a pretty good idea based off of a current requirement. We have a job that takes a nightly backup of the...
Jared
CE - Microsoft
August 2, 2012 at 8:25 am
The key here is to keep your storage aligned. We'll be here to help on specifics 🙂 Good luck!
Jared
CE - Microsoft
August 2, 2012 at 8:18 am
At this point, I would try a repair with the original disks, and then try to reapply the SP.
Jared
CE - Microsoft
August 2, 2012 at 7:33 am
DBA328 (8/2/2012)
If you don't want your DBA to view data, you could restrict his permission, not grant sysadmin or database role.If couldn't then use encryption and audit tools.
And how...
Jared
CE - Microsoft
August 2, 2012 at 6:11 am
mrtrich99 (8/1/2012)
james.thomas (8/1/2012)
If...
Jared
CE - Microsoft
August 1, 2012 at 7:18 pm
mrtrich99 (7/31/2012)
SQLRNNR (7/31/2012)
Jared
CE - Microsoft
August 1, 2012 at 2:34 pm
shaun.stuart (8/1/2012)
\??\C:\Users\SHASTU~1\AppData\Local\Temp\2\PCW2543.xml\??\C:\Users\SHASTU~1\AppData\Local\Temp\2\PCW2543.tmp
\??\D:\Config.Msi\fcec26.rbf
Ok. I had seen issues with SQL needing a restart, and then you restart and it still says it needs a restart to continue installing. I didn't...
Jared
CE - Microsoft
August 1, 2012 at 2:25 pm
1.) I need this done for a single table.
A Partition function and scheme are not table specific, the table is built on the scheme. So if you have more than...
Jared
CE - Microsoft
August 1, 2012 at 1:55 pm
To echo Gail... What problem are you trying to solve where partitioning came up as a possible solution? If it isn't broken, don't try to fix it. However, if...
Jared
CE - Microsoft
August 1, 2012 at 12:47 pm
Start regedit.exe by typing regedit into your Windows search, or navigate to c:\Windows and double-click on regedit.exe.
Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager and locate the PendingFileRenameOperations entry.
Post what you find as the...
Jared
CE - Microsoft
August 1, 2012 at 12:35 pm
Viewing 15 posts - 346 through 360 (of 2,647 total)