Viewing 15 posts - 8,686 through 8,700 (of 8,733 total)
You could (protect your identity by 😉
1. Script the database
2. Run the create table part only at the destination
3. Use Import wizard to transfer the data, enable identity insert...
March 27, 2014 at 12:14 am
My 2 cent;
An apostrophe is a valid character in a surname so that should be catered for.
March 26, 2014 at 6:37 pm
Hi,
You can use the ROW_NUMBER function to produce the desired results.
Is this what you are looking for?
SELECT
A.[CHAIN VALUES]
,A.TIPE
,A.CORR
,A.OPERATION_ID
,A.[DUE DATE 1]
,A.[DUE DATE 2]
FROM (
SELECT
ROW_NUMBER() OVER
(PARTITION BY...
March 26, 2014 at 12:05 pm
The N denotes the N(VAR)CHAR type, without it the N it would be (VAR)Char.
😎
March 26, 2014 at 7:06 am
Jeff Moden (3/25/2014)
sqlserver12345 (3/25/2014)
Thanks Jeff/Eirikur .Should have updated the forum.I got what I was looking for.Thanks again.What did you end up with finally?
Making way for the new CONCAT function in...
March 26, 2014 at 12:37 am
This query uses the LAG function;
select t1.ClientID, t1.Rn, t1.EndMonth
,t1.OrderAmt
,LAG(t1.OrderAmt,1,0) OVER
(
PARTITION BY ClientID
ORDER BY EndMonth ASC
) AS ...
March 25, 2014 at 10:49 pm
Jeff Moden (3/25/2014)
Eirikur Eiriksson (3/25/2014)
sqlserver12345 (3/25/2014)
ascii value for commathis time the answer is 44 😎
Heh.... I caught the reference. Too funny! 😛
Not to mention all the fish 😀
March 25, 2014 at 2:58 pm
Can you provide any DDL?
Look into STPointN and other Geography/Geometry functions.
March 25, 2014 at 2:13 pm
Very interesting, wouldn't jump to any conclusions yet, what are the server specs? Disk and mem I/O?
March 25, 2014 at 1:57 pm
Using Bob's DDL, here's a Window function version
CREATE TABLE #tmp(id int,
dt date);
INSERT INTO #tmp
VALUES(53,'2014-01-01'),...
March 25, 2014 at 1:46 pm
Jonathan Marshall (3/24/2014)
Looking to pass in the @targetDbName into the Open Query.
The target DB is PostGres and requires 2 single quotes around the dataset name.
Is this...
March 25, 2014 at 1:26 pm
Looks like JM's seal of approval, which doesn't come easily.
Well done indeed!
Thanks Dwain :Wow:
March 25, 2014 at 1:38 am
sqlserver12345 (3/25/2014)
ascii value for comma
this time the answer is 44 😎
March 25, 2014 at 1:29 am
Simple as
select char(39) + column + char(39)
March 25, 2014 at 12:47 am
Jeff Moden (3/24/2014)
dwain.c (3/24/2014)
Interesting article. I'm curious to see what comments Jeff has about it.
Eirikur asked me to review it (seems like a couple/three months ago) and I'm tickled...
March 24, 2014 at 5:19 am
Viewing 15 posts - 8,686 through 8,700 (of 8,733 total)