Viewing 15 posts - 421 through 435 (of 1,170 total)
serg-52 (11/19/2014)
I was not sure but rather had an impression that sending parameter of the UDT declared in the current DB to the proc in the other DB...
Igor Micev
November 19, 2014 at 3:26 am
Besides Tempdb which can be a very big database, the other system databases are tiny, i.e their sizes are in MBs, and the question for their log files fails in...
Igor Micev
November 17, 2014 at 4:17 pm
edwardwill (11/17/2014)
SET IDENTITY_INSERT dbo.Roles ON
UPDATE dbo.Roles
SET RoleID=-3
WHERE RoleID=-2;
UPDATE dbo.Roles
...
Igor Micev
November 17, 2014 at 5:13 am
Toreador (11/17/2014)
Igor Micev
November 17, 2014 at 5:11 am
serg-52 (11/17/2014)
Igor Micev
November 17, 2014 at 3:40 am
The Question came as a real case experience with a software developer, and I had to do the update in that way, ... so thought to share it.
Thanks.
Igor Micev
November 17, 2014 at 3:24 am
Your question is about SQL Server 2012, and you've posted a reference for SQL Server 2014.
Additionally from the reference:
[1]The minimum memory required for installing the Data Quality Server component in...
Igor Micev
November 14, 2014 at 3:51 pm
I'm almost sure you'll obtain a performance gain if you could put the data of the selects for TBL_1 and TBL_2 in temporary table(s) and re-write the queries. Additionally you...
Igor Micev
November 13, 2014 at 2:15 pm
Thanks DanMcClain,
Then the function becomes very simple. Examples:
DECLARE @date DATETIME = '02/01/2012';
SELECT DAY(EOMONTH(@date)) AS Result;
SET @date = '02/01/2014';
SELECT DAY(EOMONTH(@date)) AS Result;
Result
-----------
29
Result
-----------
28
Igor Micev
November 13, 2014 at 5:45 am
Thanks to All that contributed on the discussion. Everybody that will need such function will have to choose from the many versions of the function for returning days in a...
Igor Micev
November 10, 2014 at 1:46 am
You can do it directly with SSIS.
Igor Micev
November 6, 2014 at 11:03 am
Jeff Moden (11/5/2014)
Igor Micev (9/20/2014)
I...
Igor Micev
November 6, 2014 at 6:00 am
Orlando Colamatteo (11/3/2014)
Igor Micev (11/3/2014)
Try this...Reasons not to use sp_msforeachdb:
Yes, and thanks for the links. I know there are some issues with sp_msforeachdb. Additionally I've read somewhere that it may...
Igor Micev
November 4, 2014 at 1:13 am
Yes, there are many articles on capturing stats in sql server.
Take a look at this one http://www.sqlservercentral.com/articles/baselines/96270/
You can overview some more here: http://www.sqlservercentral.com/Search/?q=statistics&s=0&t=a&sort=relevance
Igor Micev
November 3, 2014 at 2:38 pm
Try this
SET NOCOUNT ON
CREATE TABLE #all_users (db VARCHAR(70), sid VARBINARY(85), stat VARCHAR(50))
EXEC master.sys.sp_msforeachdb
'INSERT INTO #all_users
SELECT ''?'', CONVERT(varbinary(85), sid) ,
CASE WHEN r.role_principal_id IS NULL...
Igor Micev
November 3, 2014 at 2:31 pm
Viewing 15 posts - 421 through 435 (of 1,170 total)