Viewing 15 posts - 1,021 through 1,035 (of 3,957 total)
erikd (12/11/2013)
That was the link in my Spacklesville comment in my first post 🙂
Ah! So it was! Sounds like your community. 😛
December 11, 2013 at 7:10 pm
I also did something interesting in this article, where I used DelimitedSplit8K to format a dynamic SQL string into lines, butit only works with strings that are up to 8000...
December 11, 2013 at 7:05 pm
December 11, 2013 at 7:01 pm
Here's another way to do the same thing but using a single CROSS APPLY of DelimitedSplit8K.
WITH SampleData ([Identity], Name, Col1, Col2, Col3) AS
(
SELECT 1,'Test1','1,2,3','200,300,400','3,4,6'
...
December 11, 2013 at 6:43 pm
I'm not sure I understand the problem. The allowed @sql string is NVARCHAR(MAX) (as you defined in the post you linked to). So why would 7000+7500 characters be...
December 11, 2013 at 6:14 pm
Jeff Moden (12/11/2013)
ChrisM@Work (12/11/2013)
December 11, 2013 at 6:11 pm
In order to help you, you're going to need to help us by following best practices for posting a question of this type:
- Provide DDL (CREATE TABLE)
- Provide consumable...
December 11, 2013 at 6:08 pm
saravanakumar.G (12/11/2013)
You just modify the SP like below and it should work.
CREATE PROCEDURE spNewEmployee
@FirstName varchar(50),
@LastName varchar(50),
@skills SkillsTableType READONLY
AS
BEGIN
DECLARE @EmployeeID int
INSERT INTO Employees
(FirstName, LastName)
VALUES
(@FirstName, @LastName)
SET @EmployeeID = SCOPE_IDENTITY()
insert...
December 11, 2013 at 6:02 pm
Luis Cazares (12/11/2013)
December 11, 2013 at 5:39 pm
A CURSOR is probably not required.
I'm not sure what exactly you want to do when there are duplicates, but try this and see if it gives you what you're looking...
December 10, 2013 at 11:08 pm
I think the key here is knowing what's in @UnknownValues when the user selected SSN and Address. Something like '03,04' perhaps?
Probably you need to get a better handle on...
December 10, 2013 at 10:56 pm
The last thing I want to try to do is explain the implicit conversion rules SQL chooses to use in these kinds of cases.
Your best bet is to CAST the...
December 10, 2013 at 10:43 pm
Alan.B (12/10/2013)
Dwain Camps posted a great article on Performance of the SQL MERGE vs. INSERT/UPDATE[/url].
If you read that, you should also look at the discussion thread where I ran...
December 10, 2013 at 10:32 pm
autoexcrement (12/6/2013)
December 10, 2013 at 5:36 pm
Alan.B (12/5/2013)
dwain.c (12/3/2013)
GordonLiddy (12/3/2013)
December 5, 2013 at 5:51 pm
Viewing 15 posts - 1,021 through 1,035 (of 3,957 total)