Viewing 15 posts - 2,461 through 2,475 (of 8,731 total)
fergfamster (7/21/2016)
Thanks, I dont really want to post 15 files you guys need to review to get an answer. ill figure it out.
15 files? Why? It's just DDL for tables...
July 21, 2016 at 11:45 am
Read this for better help: http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Any suggestion at this point, would be a wild guess.
July 21, 2016 at 11:30 am
I guess you could generate a .regsrvr file. Here's an article on exporting it https://www.mssqltips.com/sqlservertip/2015/import-and-export-registered-sql-servers-to-other-machines/. If you write the code to generate the xml for all the servers, you could...
July 21, 2016 at 10:14 am
komal145 (7/21/2016)
if i remove the colons i get this format:2016721 102358 but requirment is to have hh:mm:ss
A filename can't contain colons.
July 21, 2016 at 9:28 am
You're right Sean, I missed the blank value part.
I also prefer your solution as it should imply less work for the server.
July 21, 2016 at 9:16 am
What if you remove the +":"?
July 21, 2016 at 9:08 am
Insert the comma in the ISNULL function.
SELECT DISTINCT STUFF(
(SELECT (ISNULL(', ' + t2.Name,''))
FROM #Temp t2
where t1.ID = t2.ID -- t1.DeliverableITEP = t2.DeliverableITEP AND t1.GeoMarket = t2.GeoMarket AND t1.Segment = t2.Segment...
July 21, 2016 at 8:47 am
And yet another option:
SELECT DATEADD(MM, DATEDIFF(MM, '19020401', GETDATE()), 0)
July 21, 2016 at 7:59 am
John Mitchell-245523 (7/21/2016)
July 21, 2016 at 7:56 am
Phil Parkin (7/21/2016)
Anandkumar-SQL_Developer (7/21/2016)
Actually This is an interview question.
Really? Then unless your answer is along the lines of
"This cannot be done, unless a column exists on which to order, because...
July 21, 2016 at 7:47 am
Y.B. (7/20/2016)
Granted, I'm having a really bad day and could have responded better...on the other hand at least...
July 20, 2016 at 1:50 pm
Indianrock (7/19/2016)
Thanks Luis, that worked. I was doing replace all in Notepad++ but not getting the right combinations.
Easy,
Quotes(‘&’) should be replaced with single quotes (').
Double quotes (”) should...
July 20, 2016 at 1:38 pm
The best solution you can have is to normalize your data.
July 20, 2016 at 1:16 pm
You should already know how to properly ask questions here.
July 20, 2016 at 12:11 pm
The foreign key should allow you to prevent truncates. To prevent dropping tables, you can use the a DDL trigger.
CREATE TABLE TriggerTest( id int)
GO
CREATE TRIGGER T_Avoid_Drop_Table ON DATABASE
FOR DROP_TABLE
AS...
July 20, 2016 at 12:09 pm
Viewing 15 posts - 2,461 through 2,475 (of 8,731 total)