Viewing 15 posts - 3,886 through 3,900 (of 5,590 total)
lmu92 (6/28/2010)
@Wayne: any specific reason not to use the VARCHAR(8000) version (aka dbo.DelimitedSplit8K) in this case?
Lutz, I'm just giving you a chance to show a better approach. 😀
Seriously, I prefer...
June 28, 2010 at 3:44 pm
Duncan Pryde (6/28/2010)
Although I knew that you can have negative seeds and increments for the IDENTITY property, I've never actually used them myself.
I'd therefore be interested to...
June 28, 2010 at 12:47 pm
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...
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...
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,
...
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...
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...
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...
June 26, 2010 at 10:28 am
Might I suggest:
declare @Country varchar(50)
set @Country = CASE @Parameter WHEN 1 THEN '%'
...
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...
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...
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...
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...
June 25, 2010 at 12:53 pm
Paul, have you got any guidelines as to when you should and should not compile a UDF WITH SCHEMABINDING?
June 25, 2010 at 8:50 am
Viewing 15 posts - 3,886 through 3,900 (of 5,590 total)