Viewing 5 posts - 1 through 5 (of 5 total)
Maybe a different direction from where you were but since you're on 2008 I'd take advantage of the availability of Powershell.
$today = get-date -format yyyyMMdd
$concatenatedFile = "conCatFiles_$today.prn"
$csvOut = "backupReport_$today.csv"
foreach ($file...
August 16, 2010 at 2:47 pm
I also run 2005 and 2008 on my laptop with no issues. Just don't do what one of our developers did recently and install one on top of the...
June 25, 2010 at 11:51 am
See if this will work for you.
DECLARE @command varchar(1000)
SELECT @command = '
BEGIN
declare @colVal varchar(19)
Set @colVal = "<<^KqdP/" + char(63)+ ";SP<_]LA_" + char(63) + ""
USE [?]
update table set column...
December 31, 2009 at 11:06 am
I agree with you about Date being clearer but since the OP didn't specify version I thought to give him an alternative.
Edit: Never mind - I just noticed the full...
December 31, 2009 at 9:30 am
Since you only want yyyy-mm-dd try convert
SELECT
asset.asset_tag,
contracts.contract_description,
contracts.contract_number,
item.description,
asset.serial_number,
asset.purchase_date,
contracts.num_licenses,
convert(char(10), contracts.begin_date, 120) as begin_date -- (returns yyyy-mm-dd)
convert(char(10), contracts.end_date, 120) as end_date -- (returns yyyy-mm-dd)
December 31, 2009 at 9:10 am
Viewing 5 posts - 1 through 5 (of 5 total)