Viewing 15 posts - 5,566 through 5,580 (of 15,381 total)
yuvipoy (3/4/2014)
uniqueidentifier column(with primary key (now)) has been used in table joining in current design.
so if i remove the current primary key on uniqueidentifier, will...
March 4, 2014 at 7:58 am
Jack Corbett (3/4/2014)
DECLARE @data NVARCHAR(MAX) = 'EXEC Proc_gen @PsID=12, @kID=-1, @ID=3183';
SELECT @data AS theData...
March 4, 2014 at 7:51 am
yuvipoy (3/4/2014)
For unique(primary key) i have use uniqueidentifier as column data type.
While inserting more records on this table insert is...
March 4, 2014 at 7:43 am
aalianebhan (3/4/2014)
I would like to make a database for a university system, including "Employees , Teachers & Students" entities.
Actually all these 3 entities have some type of same attributes ,...
March 4, 2014 at 7:28 am
A server I'm working on has a very unique situation, where user tables and production tables reside on the same database.
However it seems that the whole basis for the issue...
March 4, 2014 at 7:19 am
bikrant.sharma (3/3/2014)
REPLACE(@DefaultValue, ',',''',''')@DefaultValue = '''' + @DefaultValue + ''''
That doesn't help with a parameter. That is why you have to parse it. Read through the responses in this thread.
March 4, 2014 at 7:11 am
wendy elizabeth (3/3/2014)
March 3, 2014 at 9:38 am
EricEyster (2/28/2014)
create table inventory (
InvID int,
ActivityCode int,
MovementDate datetime,
OldLocationID int,
NewLocationID int
)
select I.InvID, I.ActivityCode, I.OldLocationID ,
sum(datediff(day,I.inDateTime, I.OutDateTime))
from (
select I.InvID,...
February 28, 2014 at 2:46 pm
It seems that Lynn posted a solution very similar to mine. 😉 Nicely done sir!
February 28, 2014 at 2:45 pm
This should work.
with HistoryWithDates as
(
select InventoryItemID, NewLocationID, [DATE] as MyDate, ROW_NUMBER() over (partition by InventoryItemID order by [Date]) as RowNum
from #history
group by [DATE], InventoryItemID, NewLocationID
)
select h1.InventoryItemID, h1.NewLocationID as LocationID,...
February 28, 2014 at 2:44 pm
halifaxdal (2/28/2014)
ALTER PROC ddGetDevStatsByUnitStateAndYear (@Unit varchar(20), @State varchar(10), @Year int)
AS
IF @Year = 0
BEGIN
SELECT Unit =...
February 28, 2014 at 1:33 pm
Hi and welcome to the forums. It is difficult to know what you are trying to do. I suspect you might want to look at MERGE.
If that doesn't do it...
February 28, 2014 at 12:00 pm
No you don't need to continuously quote. 😀
This sounds like an islands and gaps issue. Take a look at this article and see if it helps.
http://www.sqlservercentral.com/articles/T-SQL/71550/%5B/url%5D
I am kind of swamped...
February 28, 2014 at 10:43 am
Jake Shelton (2/28/2014)
Client site has a 2K DB with several tables each containing millions of rows, none of them have indices (yeah....I'm serious), in violation of at least one...
February 28, 2014 at 10:28 am
smrtstpetesmith (2/28/2014)
I am but my results thus far are statistically insignificant...
I would surprised if there is any difference. Throw together a few million row test table and give it a...
February 28, 2014 at 10:11 am
Viewing 15 posts - 5,566 through 5,580 (of 15,381 total)