Viewing 15 posts - 4,831 through 4,845 (of 5,590 total)
confirm.
Note that your <column> can be multiple columns, and the sort order can be ASC or DESC on each column.
February 1, 2010 at 1:42 pm
You are actually creating a tab and a named range. Since the named range cannot have spaces, any are converted to underscores.
February 1, 2010 at 1:41 pm
Jeff Moden (1/29/2010)
I forgot about that and that's very true. Have you ever seen code that does that, though?
Another use is in auditing... if you want to audit what...
February 1, 2010 at 1:21 pm
Charlottecb (1/30/2010)
Wayne, I've tried running your code but it doesn't seem to give the correct splits in values - It may be me doing something wrong though.
Charlotte,
It wasn't you... the...
January 31, 2010 at 7:48 pm
AVB (1/29/2010)
January 29, 2010 at 5:18 pm
Charlotte,
First, I want to thank you for providing DDL/DML to show what your working with.
Now, this just expands on what you've started.
--===== Split or "Normalize" the whole table at once
;WITH...
January 29, 2010 at 5:00 pm
Steve Jones - Editor (1/29/2010)
Especially if there are edits to the PK, which can happen.
Ideal world: the columns that define a PK will NEVER, EVER be changed.
Real world: invariably, some...
January 29, 2010 at 4:27 pm
Lynn Pettis (1/29/2010)
January 29, 2010 at 4:18 pm
san43 (1/29/2010)
January 29, 2010 at 11:58 am
stricknyn (1/29/2010)
I included the SELECT portion. The error I get is
Msg 102,...
January 29, 2010 at 11:34 am
I haven't used OpenRowSet to open up a csv file before. You may need to use OpenDataSource instead.
In the meantime, here's the sp_OA method:
declare @FileName varchar(100)
set @FileName = '<Put your...
January 28, 2010 at 8:12 pm
Bhavesh_Patel (1/27/2010)
Points for taking ... 😛
Makes up for yesterdays (though points were awarded anyway...)
January 27, 2010 at 10:10 pm
tan110 (1/27/2010)
Thanks everyone, was able to get it working with set based statement. Had to loop through all the records.
Would you care to elaborate on how a set-based method is...
January 27, 2010 at 10:03 pm
As others have already mentioned, sys.tables will show the time the structure of the table was last changed. And you will need a trigger to show when the data was...
January 27, 2010 at 9:58 pm
The can think of of two ways:
select *
into #temp
from OpenRowSet(...)
where 1=2
select count(*)
from tempdb.sys.columns
where object_id = object_id('tempdb..#temp')
drop table #temp
and use sp_OA...
January 27, 2010 at 9:38 pm
Viewing 15 posts - 4,831 through 4,845 (of 5,590 total)