Viewing 15 posts - 8,386 through 8,400 (of 26,490 total)
Sean Lange (3/20/2013)
March 20, 2013 at 3:54 pm
charles99 (3/20/2013)
I see ... I wish I were still a student. The pros are making me nervous asking my next "real-world" question on this site again! 🙂
The question you asked...
March 20, 2013 at 3:50 pm
Something like this:
CREATE TABLE ClaimStatus(
ClaimID int NOT NULL,
StatusDate datetime NOT NULL,
StatusCode int NOT NULL);
INSERT INTO ClaimStatus VALUES (7150,'2013-03-11 10:41:29.823',100);
INSERT INTO ClaimStatus VALUES (7150,'2013-03-12 07:20:41.720',300);
INSERT INTO ClaimStatus VALUES (7150,'2013-03-15...
March 20, 2013 at 2:33 pm
Post the DDL (CREATE TABLE statement) for the table, about 4 or 5 rows of sample data (NOT real data) that mimics the problem domain, and the expected results based...
March 20, 2013 at 1:24 pm
Sean Lange (3/20/2013)
insert #y
select #x.DocID, t.N
from #x
join tally t on t.N <= #x.pages
select * from #y
You can read about a...
March 20, 2013 at 1:16 pm
Is this some sort of inventory database?
March 20, 2013 at 9:59 am
sixthzenz (3/20/2013)
March 20, 2013 at 9:57 am
You do realize that shrinking a database will fragment the indexes used by the queries run to generate the reports and that this will impact the performance of the reporting...
March 20, 2013 at 9:13 am
TheSQLGuru (3/20/2013)
You MUST read (and follow the guidance from) these and their associated links:http://www.sqlskills.com/blogs/kimberly/8-steps-to-better-transaction-log-throughput/
http://www.sqlskills.com/blogs/kimberly/transaction-log-vlfs-too-many-or-too-few/
I use them myself and advise every client I have to use them as well.
Make these easier...
March 20, 2013 at 8:54 am
TheSQLGuru (3/20/2013)
tafountain (3/20/2013)
I did not intend to spark a debate 🙂 but here are my responses.
TheSQLGuru (3/19/2013)
1) if you are worried with space, GUIDs have no place in your system.
This...
March 20, 2013 at 8:52 am
Please post the following:
DDL for the two tables, including the indexes (leave off extended properties if you have those)
Actual execution plans for the good and bad query executions. Save the...
March 20, 2013 at 8:47 am
I would do something like this if it were my table:
select
ds.Item
from
dbo.YourTable yt
cross apply dbo.DelimtitedSplit8K(yt.YourColumn,'|')ds
where
ds.ItemNumber...
March 20, 2013 at 8:41 am
Considering that it says test items on it, how about you show us what you have written and we will provide you with feedback on changes you may want to...
March 19, 2013 at 6:45 pm
try this and see if it helps:
select right('0' + cast(month(getdate()) as varchar),2)
March 19, 2013 at 4:37 pm
Something like this, just off the top of my head:
declare @StartDate datetime,
@EndDate datetime;
select
@StartDate = dateadd(hh,...
March 19, 2013 at 4:16 pm
Viewing 15 posts - 8,386 through 8,400 (of 26,490 total)