Viewing 15 posts - 2,236 through 2,250 (of 6,401 total)
Please can you elaborate a bit more, not clear to myself what your asking?
August 8, 2014 at 6:15 am
Might be best asking that on a Sharepoint forum or the Sharepoint technet/msdn areas
August 8, 2014 at 1:51 am
Also try to post in the right version of SQL servers forums. As you posted in the 2012 forum I gave you a 2012 answer.
Alternatively, detail what version of...
August 8, 2014 at 1:40 am
kevaburg (8/8/2014)
Cadavre (8/7/2014)
Or append 114 to your current query: -
SELECT 'plan_werte_' + CAST(REPLACE(CONVERT(VARCHAR(26), GETDATE(), 112) + CONVERT(CHAR(5), GETDATE(), 114), ':', '') AS VARCHAR(50)) + '.csv';
Thanks for the answer but...
August 8, 2014 at 12:49 am
Code works fine for me.
The code box only shows so much and is scrollable, so you need to ensure you select everything from within the code box, not just what...
August 7, 2014 at 9:15 am
Sorry just re-read the post again, as your changing the name and IP of the server, it should create a new record in DNS which will not have been cached,...
August 7, 2014 at 8:50 am
Yes, as with anything networking it needs an IP address not a hostname, so your DNS servers handle the hostname to IP address lookup for you.
If your laptop is using...
August 7, 2014 at 8:11 am
So with nolock and without nolock, you can get still get different results depending when they where executed.
August 7, 2014 at 8:01 am
You will want to use format 121 to get the time in the conversion.
Something like this
select 'plan_werte_'+
REPLACE(
REPLACE(
REPLACE(
left(
CONVERT(VARCHAR(26),getdate(),121)
,16)
,':','')
,'-','')
,' ','')
+'.csv'
August 7, 2014 at 8:00 am
And if you remove the "NOLOCK" do you get consistent result?
August 7, 2014 at 7:55 am
With uploading nulls and wanting it to be sort of dynamic, the below will work
create table temp
(
unitid int,
[1/2/2011] int,
[1/9/2011] int
)
insert into temp
values
(3,null, 0),
(7,null, 0),
(8,null, 0),
(9,0, 0),
(15, 1696, 1202),
(22, 2769, 1914),
(23,...
August 7, 2014 at 7:49 am
You really need to give your data in a consumable format. Please take a moment to look through the "how to post code and data for the best help"...
August 7, 2014 at 6:53 am
Not AD, but DNS could.
If your machine uses one set of DNS servers and the QA server uses another set, then yes you could potentially have a mismatch of DNS...
August 7, 2014 at 6:01 am
The full backup isn't a copy only backup is it?
Can you check the server where the backup was done from, in its msdb.dbo.backupset there is a is_copy_only column, if its...
August 7, 2014 at 5:54 am
A little dirty but works
create table #emp
(
sn int,
code varchar(10),
sal int
)
insert into #emp values
(1,'1100F-',100),
(2,'',200),
(3,'97535-GO',300),
(4,'97530-GO',300),
(5,'',600)
select * from #emp
select
sn,
isnull(
nullif(
replace(
left(code,
charindex('-',code)
),
'-','')
,'')
,'0') as code,
isnull(
nullif(
right(code,
len(code)
-
charindex('-',code)
)
,'')
,'NA') as changed,
Sal
FROM
#emp
drop table #emp
August 7, 2014 at 5:06 am
Viewing 15 posts - 2,236 through 2,250 (of 6,401 total)