Viewing 15 posts - 4,336 through 4,350 (of 5,588 total)
Lynn Pettis (4/20/2010)
SQL Server no longer tracks licensing information. You need to do that manually.
Thanks Lynn. I remember that now after reading it.
Wonder why those parameters for ServerProperty still...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 20, 2010 at 10:28 am
sturner (4/20/2010)
Then EXCEPT or LEFT OUTER JOIN is what you want.
Agreed.
EXCEPT will get you a list of all of those that you want them to have, minus the ones already...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 20, 2010 at 10:14 am
This will get you the information for one server:
select ServerProperty('LicenseType'), ServerProperty('NumLicenses')
What I would do is to incorporate this into the SQLCMD command line utility, using the FOR /F dos command...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 20, 2010 at 10:10 am
Lynn Pettis (4/20/2010)
Lynn Pettis (4/20/2010)
If anyone else can provide some guidance here it would be appreciated.Thanks Wayne for jumping in here to help.
NP. Haven't heard back from the OP yet...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 20, 2010 at 10:00 am
Jeff Moden (4/19/2010)
Yowch... the formatting monster hit the code hard on this one. I hope Steve can fix it soon.
I think it's all fixed now... all the code...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 20, 2010 at 9:53 am
To elaborate on what Lynn mentioned, you can use either the IF or CASE statements as shown below:declare @var1 char(3),
@var2 char(3)
set @var1...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 20, 2010 at 9:40 am
Rog Saber (4/20/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 20, 2010 at 9:13 am
If you're using a monitor server, the "Transaction Log Shipping Status" report (available in SSMS, right-click the server, select reports | Standard Reports | Transaction Log Shipping Status), and you...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 20, 2010 at 9:09 am
You might want to check out this link for help in pivoting a query.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 20, 2010 at 8:56 am
You might want to check out the REPLACE function in BOL.
You might also check out the LIKE function... you might be able to use it as LIKE '%[SX]VD%'.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 20, 2010 at 8:52 am
Perry Whittle (4/17/2010)
when referring to key constraintsPrimary key does not allow NULLs
Unique key allows a single NULL value
so the 2 are different in that respect
I was just thinking about this,...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 20, 2010 at 8:33 am
I don't see an issue with your code.
I just ran this code, without error.
CREATE PROCEDURE [dbo].[sp_TLCOMSCandReg] (@CandID VARCHAR(50) output,@FirstName VARCHAR(100),@MiddleName Varchar(100),
@LastName VARCHAR(100),@EmailID VARCHAR(250),@MobileNo VARCHAR (15),
@PhoneNo VARCHAR (15),@DOB DATETIME,@Gender SMALLINT,@Address...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 20, 2010 at 8:11 am
This doesn't have anything to do with your issue, but why are you passing nvarchar fields to a procedure that is expecting varchar?
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 20, 2010 at 7:58 am
Roy Ernest (4/20/2010)
... I am always learning here...
And that is why I help out... I end up learning more, and it has the benefit of enforcing what I do...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 20, 2010 at 7:31 am
SW_Lindsay (4/20/2010)
To select eligible candidates in the first select you say
select * from @Candidates where MeetsEligibility = convert(bit,1);
Why do you convert...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 20, 2010 at 7:22 am
Viewing 15 posts - 4,336 through 4,350 (of 5,588 total)