Viewing 15 posts - 8,311 through 8,325 (of 15,381 total)
Greg Snidow (5/17/2013)
Sean Lange (5/17/2013)
When you don't do this stuff all the time it is the easy things like that which can drive you nuts. 😉
Indeed, I'm in my SQL...
May 20, 2013 at 7:32 am
You are welcome. When you don't do this stuff all the time it is the easy things like that which can drive you nuts. 😉
Glad you were able to get...
May 17, 2013 at 8:49 am
You don't need the values keyword when using a select as the source for your insert.
Insert into SQL_ENVIRONMENT.dbo.DatabaseSizing (instancename,databasename,db_datafile,db_logfile,db_datasize,dateofsize)
values
select convert(nvarchar(50),SERVERPROPERTY ('Servername')),
convert(nvarchar(50),sys.databases.name),
(SELECT (SUM(sys.master_files.)*8/1024)
FROM sys.master_files
where sys.databases.database_id = sys.master_files.database_id and type=0),
(SELECT (SUM(sys.master_files.)*8/1024)
FROM sys.master_files
where...
May 17, 2013 at 7:52 am
GilaMonster (5/17/2013)
"I know the drawbacks of nolock, in our case it cannot be avoided"Hmm...
Probably doesn't wear a seatbelt on the autobahn either. 😛
May 17, 2013 at 7:32 am
jbalbo (5/16/2013)
so on table assessment there is a field called assessment_nodes and has the values like
(@@)@@/1/140/@@/1/2/3/84/6/11/12/82/7/28/@@/1/2/3/84/6/11/12/82/7/28/76/@@/1/2/3/84/6/11/12/82/7/28/76/77/@@
representing a path of a tree where assesements are
each last set on...
May 16, 2013 at 3:18 pm
jbalbo (5/16/2013)
Not sure how to start this, or even explain it right....
I have this "Node path" field on a table looks like
(@@)@@/1/140/@@/1/2/3/84/6/11/12/82/7/28/@@/1/2/3/84/6/11/12/82/7/28/76/@@/1/2/3/84/6/11/12/82/7/28/76/77/@@
after looking it up each set between @@ is...
May 16, 2013 at 3:04 pm
skb 44459 (5/16/2013)
Its going to be ondemand . I am going to create a stored procedure for it and the select statement will have a where clause (Parameters).
Can you post...
May 16, 2013 at 1:25 pm
skb 44459 (5/16/2013)
May 16, 2013 at 1:20 pm
skb 44459 (5/16/2013)
selectOrderNum,
OrderLine,
OrderRelease
FileTemplateName
from OrderLines
I would like to run a xcopy statement for each record and copy the file from FileTemplateName to
c:\OrderFiles\<OrderNUm>\<OrderLine>\<OrderRelease>\<OrderNum>_<OrderLine>_<OrderRelease>_FileTemplateName
I am...
May 16, 2013 at 1:13 pm
gchappell (5/16/2013)
Has nolock been depricated in SQL Server 2012, or does the optimizer ignore the no lock and still run?
I don't know that it has been deprecated but you should...
May 16, 2013 at 12:49 pm
simonholzman 14059 (5/16/2013)
Lynn Pettis (5/16/2013)
May 16, 2013 at 12:05 pm
You have a couple syntax issues in your dynamic sql.
First instead of using double quotes " you should use 2 single quotes ''.
The bigger issue is that you have not...
May 16, 2013 at 11:05 am
It is Friday for me. 😛 I am out tomorrow for field day at the kid's school.
May 16, 2013 at 10:56 am
John Mitchell-245523 (5/16/2013)
May 16, 2013 at 9:14 am
John Mitchell-245523 (5/16/2013)
Sean Lange (5/16/2013)
John Mitchell-245523 (5/16/2013)
Phil Parkin (5/16/2013)
lnardozi 61862 (5/16/2013)
May 16, 2013 at 9:05 am
Viewing 15 posts - 8,311 through 8,325 (of 15,381 total)