Viewing 15 posts - 1,816 through 1,830 (of 13,469 total)
Talib123 (4/16/2015)
They believe it will improve performance....
April 16, 2015 at 10:24 am
SQL server does not have easy ways to do anything outside of a database, like files and folders.
sql does not have any native way to play with files and folders.
xp_cmdshell,...
April 16, 2015 at 10:14 am
Theo thanks for the script!
i got it to work on a regular basis on most of my servers that have SSAS, but I've got an exception on one SSAS database:...
April 16, 2015 at 7:11 am
this worked for me:
/*--results
t Name="DistributionCoderPerHour"><ReportName>Code...lots of XML follows
t Name="DistributionDataEntryPerHour"><ReportName>Da...lots of XML follows
*/
WITH MyCTE
AS
(
select convert(varchar(max),CONVERT(varbinary(max),Content))As StrContent,*
from ReportServer$MSSQLSERVER1.dbo.Catalog
--where name ='CPU - Dynamics UpLoad'
)
SELECT SUBSTRING(StrContent,p1.i + 9,p2.i - p1.i),* FROM MyCTE
CROSS...
April 13, 2015 at 12:30 pm
// is the default way to add a line of a comment in the C++ / C# /C#.Net language.
most likely they just copied lots of stuff to give toy you,...
April 13, 2015 at 11:38 am
as a proof of concept, i searched the xml of the RDL for the tab <subreport, and confirmed that this gets me pretty close to findingf the names of the...
April 13, 2015 at 11:20 am
SQL-DBA-01 (4/10/2015)
HI Lowell,Please suggest how to capture DML operation here.
Thanks
Sourav
there is no DML in a DDL trigger...but there is a command text.
if you mean command from the DDL trigger that...
April 10, 2015 at 9:59 pm
I've used the Microsoft.SqlServer.SqlParser.SqlCodeDom.SqlScript object to create a parser that found all the objects in a given query, so that i could format the whitespace to my own rules.
it's a...
April 10, 2015 at 9:09 am
could it be a legacy of a normal user who got access to multiple databases, and then someone upgraded them to sysadmin, because they needed more and more access to...
April 8, 2015 at 1:37 pm
i think it's the secondary file. i've seen this before, and the script it creates names both files the same name, ie you'd expect dbname.mdf and dbname.ndf and dbname.ldf, but...
April 8, 2015 at 11:39 am
the two values you posted will convert to datetime2, but not date or datetime; maybe that's it?
--select convert(date,'04/01/200') -- error
select convert(datetime2,'04/01/0200')
--select convert(date,'200-04-01') -- error
select convert(datetime2,'0200-04-01')
April 8, 2015 at 10:50 am
people only have access what you grant them, but you have to be careful with granting roles like db_datareader or giving people sysadmin rights.
here's a full example:
Create LOGIN [ClarkKent] WITH...
April 7, 2015 at 11:31 am
convert has an optional third parameter for <style>, so when used on a money or smallmoney data type, you can get four digits to teh right with no commas,...
April 7, 2015 at 9:51 am
great job with the same data!
here's one way to do it, featuring FOR XML to do the concatenation:
/*--Results
Email(No column name)
Branch101@ACA.comA54, A56, A59
Branch102@ACA.comB49, B54, B10
*/
SELECT Email
,STUFF(
...
April 7, 2015 at 9:45 am
you have to explicitly convert [AccountBalance] to append it to your string:
Select Company + ',' + [AccountNumber] + ',' + CONVERT(varchar,[AccountBalance])
from customer
where accountbalance = 0
order by accountbalance
April 7, 2015 at 9:30 am
Viewing 15 posts - 1,816 through 1,830 (of 13,469 total)