Viewing 15 posts - 3,166 through 3,180 (of 3,406 total)
And if you want a pretty good introduction to backup and restore, look on YouTube for ScaryDBA - Grant Fritchey has a video on doing just backups (differential, full, TLog)...
November 23, 2013 at 10:16 pm
You can attach to lower versions, but not higher ones.
November 22, 2013 at 8:56 pm
What is your compatibility level set to on the database?
To figure it out, right-click the database, go to Properties and then Options. I would bet that it's set to...
November 22, 2013 at 2:30 pm
If you absolutely have to get the disk space free, then you can use SHRINKDATABASE or SHRINKFILE, but it does awful things to your databases. You have to reindex...
November 21, 2013 at 8:25 pm
Uncharted territory... so here goes... I attached the RDL as a TXT file. (So just change the extension back to RDL and you should be able to import it...
November 20, 2013 at 2:23 am
See if Grant Fritchey has anything posted about it on YouTube. he might, since he works for them.
November 19, 2013 at 9:13 pm
Gotta get out my book to be sure...
"Execution Context"
... an execution context can be specified for code. Specifying an execution context enables code to be run under a specific...
November 19, 2013 at 9:09 pm
If you're fairly new to SQL, I would do this in SSRS, because you can get SSRS to do pretty much all the hard work for you (sorting, grouping, subtotals,...
November 19, 2013 at 7:46 pm
Okay, read this article and follow the instructions... Not trying to be mean, just trying to teach you how to use this site. Because if you don't follow the...
November 17, 2013 at 9:02 pm
Since you're new, I'll go easy on you... <g>
One thing to keep in mind when posting questions is that you're the only one with access to your database, so if...
November 16, 2013 at 9:12 pm
If you're creating a stored procedure to put your CTE in, just pass @StartRange DATE, @EndRange DATE...
November 14, 2013 at 6:54 pm
Kind of depends where you do the limiting... if you do it in the stored procedure, use something like
SELECT...
FROM ...
[SomeDate] >= DATEDIFF(m,-3,GETDATE())
Trying to subtract from a MONTH() value won't work.
November 12, 2013 at 5:19 pm
Not sure you can show a many-to-many relationship without a child table. That's just the standard way to do it... the standard example is
Invoice--(1,M)--LineItem---(M,1)--Product
where the LineItem table...
November 11, 2013 at 4:01 pm
In the first/inner query, use a DISTINCT.
SELECT DISTINCT [column list]
and then in the outer query, do your sum
SELECT Col1, Col2, SUM([numericColumn])
FROM
(SELECT...
November 6, 2013 at 5:52 pm
Try this:
SELECT DocumentNum, LineNum, CustomerNum, MAX(VersionNum) AS MaxVersion
FROM tempSalesOrder
GROUP BY DocumentNum, LineNum, CustomerNum;
November 3, 2013 at 5:29 pm
Viewing 15 posts - 3,166 through 3,180 (of 3,406 total)