Viewing 15 posts - 12,631 through 12,645 (of 15,381 total)
Aww shucks. I certainly wouldn't say a genius but thanks for letting me know that worked for you. Make sure before you run that on your production box that you...
March 27, 2012 at 1:35 pm
Can you create 6 import processes? One for each type of import. That way you can import your data into a table that is appropriate for what you are importing....
March 27, 2012 at 12:36 pm
Nice job with the sample data and ddl.
Something like this should do what you are looking for.
update dh
set OrigStatus = x.Status
from documenthold dh
cross apply
(
select top 1 Status
from DocumentHold d
where dh.DocId...
March 27, 2012 at 12:19 pm
Some details would be helpful but why oh why do you want to concatenate values into a single column? This breaks the basic tenets of sql. Have you considered how...
March 27, 2012 at 12:04 pm
Just use nested replace.
replace(Replace(MyField, '*', ''), '-', '')
March 27, 2012 at 11:58 am
Stefan Krzywicki
Have you seen the new tech they have that stops a saw blade if your finger or hand or other part gets in the way?
The company is call...
March 27, 2012 at 11:03 am
There is at least one more table that you did not provide ddl for. PSGADR
This table also appears to be a heap.
March 27, 2012 at 10:47 am
Charmer (3/27/2012)
Sean Lange (3/27/2012)
All columns nullable...
No primary keys...
No indexes at all on at least 1 of the tables...
You pick the performance problems at...
March 27, 2012 at 10:29 am
nvarchar(1)... not actually a performance issue but really???
All columns nullable...
No primary keys...
No indexes at all on at least 1 of the tables...
You pick the performance problems at the ddl level....
March 27, 2012 at 10:23 am
Here is the ddl...
GO
/****** Object: Table [dbo].[PSAJCK] Script Date: 03/27/2012 21:32:51 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[PSAJCK](
[AJORI#] [nvarchar](9) NULL,
[AJPID#] [numeric](9, 0) NULL,
[AJJTYP] [nvarchar](1)...
March 27, 2012 at 10:13 am
mee.ron (3/27/2012)
Mr Celko, I do appologize if...
March 27, 2012 at 10:09 am
If you can provide ddl (create table script) and sample data (insert statements) this is pretty simple. Take a look at the first link in my signature for best practices...
March 27, 2012 at 9:53 am
davidandrews13 (3/27/2012)
Sean Lange (3/27/2012)
davidandrews13 (3/27/2012)
March 27, 2012 at 9:49 am
davidandrews13 (3/27/2012)
Hugo Kornelis (3/27/2012)
davidandrews13 (3/27/2012)
bitbucket-25253 (3/27/2012)
davidandrews13 (3/27/2012)
Carlo Romagnano (3/27/2012)
Easy question!Good practice is never use "SELECT * FROM" in view, too.
😉
surely it doesn't matter if you do SELECT *?
every time i...
March 27, 2012 at 9:28 am
Please don't cross post. direct all replies here. http://www.sqlservercentral.com/Forums/Topic1273526-8-1.aspx
March 27, 2012 at 8:53 am
Viewing 15 posts - 12,631 through 12,645 (of 15,381 total)