security

Technical Article

RE: T-SQL Experts - Can this SP be recoded to work as a UDF

  • Reply

Try this, it's not all that much differnet from what you already have:Create FUNCTION dbo.udf_GetEMpsBYManager(@empid char(6))RETURNS @table_variable TABLE (employeeid char(6), sn varchar(15), givenname varchar(25), mail varchar(50) )ASBEGINDeclare @temp Table (employeeid char(6))Declare @rows IntInsert Into @tempSelect Distinctemployeeid FromdirectoryWherehigmanagerempid = @empidWhile @rows > 0BeginInsert Into @tempSelect DistinctD.employeeidFromdirectory D Left Join@temp T OnD.higmanagerempid = T.employeeidWhereT.employeeid Is NullSet @rows […]

You rated this post out of 5. Change rating

2004-03-19

Technical Article

RE: SQl NOLOCK usage

  • Reply

If you want speed, you should use nolock.  If you absolutely must have the most up to date data, don't use nolock.  The difference being that a Select without nolock will wait for any uncommmited transactions to clear before selecting the data.  With nolock it will give you whatever is commited to the database.cl

You rated this post out of 5. Change rating

2004-03-19

Technical Article

SQL Server 2000 Remote Installation

  • Topic

 SQL Server 2000 Remote Installation :Hi 2 all I am facing this problem when ever I try to install the SQL Server to remote computer.I have installed Advanced Server 2000 on both Machines. I did try * Domain Controller to Domain Controller. (Both are PDC) * Domain Controller to Member Server and Vice Versa * […]

2004-03-18

2 reads

Technical Article

RE: Edition of RS/SQLServer2k

  • Reply

I was meaning in regards to licensing....we are licensed for only standard edition sqlserver2k... is the reporting services edition somehow connected or independent of that? 

2004-03-16

Technical Article

RE: Raid-5 Concept questions

  • Reply

Raid 5 is nice because it allows you to lose one disk without losing data. Two disks you lose everything. UNLESS, you have a hot spare. Then you can lose an extra disk for each hot spare and not lose data.I have two 14 drive arrays (73GB each drive). I have one hot spare. I […]

You rated this post out of 5. Change rating

2004-03-12

Technical Article

RE: Create a user-defined function

  • Reply

Thanks Johnathan.In general, the issue is related to a binomial coefficient theory. The return rows should be nCm, read as n choose m. Here is the list of values: m         n            nCm------- --------- -------2          2            13          2            34          2            65          2            106          2            157          2            21 Using you script can’t get correct returns. For example if a […]

You rated this post out of 5. Change rating

2004-03-12

Blogs

Enabling an Index: #SQLNewBlogger

By

I don’t do a lot of work with disabled index, but I learned how...

Back to Boston for SQL Saturday

By

I’m leaving again tomorrow for a trip. This time I head back to Boston...

T-SQL Tuesday #179: What’s In Your Data Detective Toolkit?

By

Most of us who work with data have, at least a few times, been...

Read the latest Blogs

Forums

7 sept, scheduled book

By philip.scott

Comments posted to this topic are about the item 7 sept, scheduled book

7 sept, schedlued article

By philip.scott

Comments posted to this topic are about the item 7 sept, schedlued article

6 sept, published book

By philip.scott

Comments posted to this topic are about the item 6 sept, published book

Visit the forum

Question of the Day

Azure Data Lake Storage Gen 2

Azure Data Lake Storage Gen 2 is built on ...?

See possible answers