Viewing 15 posts - 3,886 through 3,900 (of 5,588 total)
Jeffrey Williams-493691 (6/26/2010)
Wayne, I don't have the same issue - and I manage multiple 2005 systems and have created multiple maintenance plans on those systems with SSMS 2008.
My systems were...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
June 27, 2010 at 6:15 am
Lynn, you asked specifically about BIDS, but I thought I'd talk a little bit about issues with SSMS.
If you have both 2005 and 2008 servers, do NOT use SSMS 2008...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
June 26, 2010 at 5:45 pm
And a way that would get rid of parameter sniffing would be:
CREATE PROC MainAll
AS
SELECT S.SALESPERSON,
...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
June 26, 2010 at 11:25 am
I'm agreeing with Gail... the MS "IntelliSense" in SSMS 2008 gets in my way so much that I've disabled it. It would be really nice if MS would just license...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
June 26, 2010 at 11:15 am
Do all of your inserts first, then finally select from the output table. (instead of insert 1, select 1)
That error is an SSMS (GUI) message - it only displays results...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
June 26, 2010 at 11:12 am
Use the OUTPUT clause:
declare @MusicArtists TABLE (RowID INT IDENTITY, FirstName varchar(30), LastName varchar(30), Instrument varchar(30));
declare @MusicArtistsAudit TABLE (RowID INT, FirstName varchar(30), LastName varchar(30), Instrument varchar(30));
INSERT INTO @MusicArtists (FirstName, LastName, Instrument)
OUTPUT...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
June 26, 2010 at 10:28 am
Might I suggest:
declare @Country varchar(50)
set @Country = CASE @Parameter WHEN 1 THEN '%'
...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
June 26, 2010 at 10:03 am
I just recently had to load data in from a flat file, and had to ensure the order (well, I actually had to be able to get the first row...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
June 25, 2010 at 9:19 pm
How's this?
declare @test-2 table (OrderNumber smallint, OrderDate datetime)
-- See how you start off by actually creating a table
-- and then inserting the data into it? Doing this really
-- makes...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
June 25, 2010 at 1:06 pm
First, you need a delimited split function:
IF OBJECT_ID('dbo.DelimitedSplit') IS NOT NULL DROP FUNCTION dbo.DelimitedSplit
GO
CREATE FUNCTION [dbo].[DelimitedSplit] (
@list varchar(max),
@Delimiter char(1)
)
RETURNS TABLE
AS
RETURN
-- first, need to break down into...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
June 25, 2010 at 12:58 pm
Can you get the delimiter changed?
If you don't have any control over the file, then you need to be screaming really loud to who does about how they should not...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
June 25, 2010 at 12:53 pm
To my knowledge, no.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
June 25, 2010 at 9:10 am
Paul, have you got any guidelines as to when you should and should not compile a UDF WITH SCHEMABINDING?
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
June 25, 2010 at 8:50 am
UnionAll (6/25/2010)
Thanks Wayne,this helps...
NP. Does it work correctly for you?
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
June 25, 2010 at 8:41 am
Jeff Moden (6/25/2010)
eq2home (6/24/2010)
WITH CUBE
This feature will be removed in a future version of Microsoft...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
June 25, 2010 at 8:11 am
Viewing 15 posts - 3,886 through 3,900 (of 5,588 total)