Viewing 15 posts - 511 through 525 (of 622 total)
Absolutely views are not recompied at run time,
Try this.
Create a table (myTable)
Create view myView as
SELECT * FROM myTable
Modify the table structure
SELECT * FROM myView
You won't see the additional columns until...
November 9, 2012 at 10:06 am
it looks like an opportunity to dip your toe is the SSIS water 😀
November 8, 2012 at 2:00 pm
Thanks Eugene, That was really helpful.
Just because I am anal about these things 😉
How would you write the select statement if the data was in a #temptable with a column...
November 8, 2012 at 7:58 am
Never mind,
the following query gives me the desired result and runs in 11 seconds
select caseno from cpcases
except
select caseno from caseExceptions
I would still be interested in the answer to the...
October 9, 2012 at 10:07 am
out of interest then; if I was selling books (ISBN, Author, Pages), wine (bottle size, ABV,Vinyard,grape,acidity) and shirts (material,collar type, sleeve length), how would you recommend storing the attributes...
October 3, 2012 at 9:53 am
This is an indication that your data is poorly structured.
you are using a text field to represent a binary value (Pass/fail)
I would suggest the introduction of a lookup table
declare @TestStatus...
October 3, 2012 at 8:44 am
another thing, if you are going to create a new table and manually insert the records into it, dont forget to turn identity insert on; otherwise you will potentially destroy...
October 3, 2012 at 8:15 am
also, if you are running on an old server with I/O bottlenecks, are you running SQL2008. An earlier versin may affect the answer.
Its not an area I am familiar...
October 3, 2012 at 8:13 am
@Dwain: you said you used ID to control the sequence. I explained in my first post that I thought that was dangerous because it is a field you...
September 27, 2012 at 5:40 am
create table test.elogen
(
ID int identity(1,1),
RouteID int,
Routename nvarchar(20),
Origin nvarchar(1),
Destination nvarchar(1)
)
insert into test.elogen values (1,'ReturnTrip','A','B')
insert into test.elogen values (1,'ReturnTrip','B','C')
insert into test.elogen values (1,'ReturnTrip','C','B')
insert into test.elogen values (1,'ReturnTrip','B','A')
insert into test.elogen values (2,'ReturnTrip','A','B')
insert...
September 26, 2012 at 7:52 am
The cost of the hardware and DB licences is normally a small fraction of the price of keeping your systems running. Implementing good practices for automation: backups, sheduled jobs,...
September 26, 2012 at 6:36 am
It is Called Adjency List model and it is very common in Relational databases
Organisation hierachy, BOMs and Menu structures are three uses for it. Intil SQL2005 came along it...
September 20, 2012 at 10:57 am
I do have to agree with the byte-bloat issue.
Can anyone beat this? its from the NHS clinical data set upload for patient details
<personGenderCodeCurrent>M</personGenderCodeCurrent>
September 20, 2012 at 5:49 am
I had to do this about 10 years ago with an Access (95!) based EPOS system in 10 retail outlets and IBM DB2 system at head office.
We were sending transaction...
September 19, 2012 at 9:54 am
It doesn't matter how many times you post the #new DML, it still won't be right :w00t:
this is the tree structure in your #Original table
1
--2
--3
--4
5
--6
--7
--8
Each sub menu is one level...
September 19, 2012 at 9:30 am
Viewing 15 posts - 511 through 525 (of 622 total)