Viewing 15 posts - 1,861 through 1,875 (of 1,988 total)
Stop trying to copy and paste millions of rows out of management studio.
November 25, 2014 at 10:52 am
WITH MainAddr AS (
SELECT Eid, Addresscode, Address, ROW_NUMBER() OVER(PARTITION BY Eid ORDER BY AddressCode ASC) AS ROW_NUM FROM EmpAddress WHERE AddressType = 'Main'),
SecAddr AS(
SELECT Eid, Addresscode, Address, ROW_NUMBER() OVER(PARTITION BY...
November 25, 2014 at 10:16 am
arnipetursson (11/24/2014)
Brandie Tarvin (11/21/2014)
sqldriver (11/21/2014)
Every application I support uses SQL logins, and they all require at minimum the dbcreator role assigned.
Yikes! What kind of application spawns its own databases? And...
November 25, 2014 at 7:19 am
g.britton (11/21/2014)
ScottPletcher (11/21/2014)
You don't "have" to do the FETCH twice. In fact, I never do that, because it's too error prone when the code is changed.
good point, though the...
November 21, 2014 at 3:07 pm
g.britton (11/21/2014)
ZZartin (11/21/2014)
Sean Lange (11/21/2014)
ZZartin (11/21/2014)
Just out of curiousity but how do you use a cursor without using a while loop?
Under the hood a cursor is a just a while...
November 21, 2014 at 2:23 pm
Sean Lange (11/21/2014)
ZZartin (11/21/2014)
Just out of curiousity but how do you use a cursor without using a while loop?
Under the hood a cursor is a just a while loop on...
November 21, 2014 at 1:13 pm
Just out of curiousity but how do you use a cursor without using a while loop?
November 21, 2014 at 12:49 pm
Markus (11/21/2014)
I guess I fail to see...
November 21, 2014 at 7:09 am
There's a difference between a service account login used by an application to connect, which a dba should know as the dba is likely the one who will need to...
November 20, 2014 at 8:55 am
SELECT CONVERT(datetime, CASE WHEN LEFT('1100323', 1) = '1' THEN '20' ELSE '19' END + RIGHT('1100323', 6), 112)
November 19, 2014 at 2:24 pm
I imagine potentially you could get race condition issues, that code chunk looks pretty small but you could potentially have someone disable xp_cmdshell right after someone else enables it but...
November 18, 2014 at 9:38 am
Well do you expect the database to grow in size again?
November 17, 2014 at 11:44 am
You're fighting about 15MB of space?
November 13, 2014 at 10:01 am
Assuming size and performance allow you can just grab all the records in table B pull them into a temp table on server A, do your comparison insert there then...
November 10, 2014 at 2:01 pm
Viewing 15 posts - 1,861 through 1,875 (of 1,988 total)