Viewing 15 posts - 181 through 195 (of 583 total)
what you did do should have worked. just tested and it worked find on my machine.
you can check the associated user and logins to see if the goodusername user is...
March 10, 2014 at 10:08 am
I'll tweak it a little more
SELECT distinct CASE WHEN LEFT(OrderNo,CHARINDEX('-',OrderNo,4)) =''
THEN OrderNo
ELSE substring(OrderNo,1,CHARINDEX('-',OrderNo,4)-1)
END AS NoSuffix
FROM (
SELECT 'SO-123456' AS OrderNo
UNION ALL
SELECT 'SO-123456-01'
UNION ALL
SELECT 'SO-123456-2'
UNION ALL
SELECT 'SO-123457'
UNION ALL
SELECT 'SO-123457-1'
UNION ALL
SELECT 'SO-123457-02'
UNION ALL
SELECT...
March 5, 2014 at 1:45 pm
without DDL, sample data, and expected results it makes it difficult to give you an answer. Check the link in my signature on how to post to get the best...
February 28, 2014 at 11:52 am
If the server and database collation are different then anything created in tempdb will have the server collation which wont match the database collation. So you are right in think...
February 26, 2014 at 9:28 am
Here is an example using a DDL trigger
CREATE TRIGGER procperm ON DATABASE
FOR CREATE_PROCEDURE
AS
DECLARE
@proc varchar(255),
@sql nvarchar(max);
SELECT @proc = EVENTDATA().value('(/EVENT_INSTANCE/SchemaName)[1]', 'nvarchar(max)')...
February 26, 2014 at 9:17 am
you basically have the answer in the title.
create table #tmp(col1 varchar(10))
INSERT INTO #tmp
values('CAT')
SELECT col1,cast(col1 as varbinary(max))
from #tmp
February 25, 2014 at 12:36 pm
Jeff Moden (2/7/2014)
February 7, 2014 at 11:48 am
Jeff Moden (2/7/2014)
February 7, 2014 at 9:37 am
Jeff Moden (2/7/2014)
Robert klimes (2/6/2014)
$ds = New-Object system.Data.DataSet
$ds = Get-WMIObject Win32_LogicalDisk -filter "DriveType=3" -computer (Get-Content c:\computers.txt) | Select SystemName,DeviceID,VolumeName,@{Name="size"; Expression={"{0:N1}" -f($_.size/1gb)}},@{Name="freespace";Expression={"{0:N1}" -f($_.freespace/1gb)}}
foreach ($d in $ds)
{
$systemname = $d.systemname
$deviceID...
February 7, 2014 at 9:20 am
I usually do something like the following to get the date.
$date = Get-Date -Format "yyyyMMdd"
here is article about powershell date formatting
February 6, 2014 at 10:44 am
try this out
$ds = New-Object system.Data.DataSet
$ds = Get-WMIObject Win32_LogicalDisk -filter "DriveType=3" -computer (Get-Content c:\computers.txt) | Select SystemName,DeviceID,VolumeName,@{Name="size"; Expression={"{0:N1}" -f($_.size/1gb)}},@{Name="freespace";Expression={"{0:N1}" -f($_.freespace/1gb)}}
foreach ($d in $ds)
{
$systemname = $d.systemname
$deviceID = $d.DeviceID
$volumename = $d.volumename
$size...
February 6, 2014 at 9:15 am
post what you have so far and i'll see if I can fill in the gaps.
February 6, 2014 at 7:49 am
If it's only a couple of seconds that is the issue and you don't have jobs that run multiple time a minute you could zero out the seconds in the...
February 5, 2014 at 10:08 am
I second Jeff's suggestion that powershell is the way to go. this is the script that I have built my free space report off of.
February 5, 2014 at 8:26 am
If I understood correctly,I think something like this would be what you are looking for. I didnt have any jobs in this state so i just created a test job...
February 5, 2014 at 8:08 am
Viewing 15 posts - 181 through 195 (of 583 total)