Viewing 15 posts - 4,801 through 4,815 (of 6,036 total)
Eric, actually Invoices and Orders must be IN THE SAME TABLE, not to mention database.
Separating it is breaking of relational model, just a little bit.
Placing it into different databases -...
November 13, 2006 at 1:02 pm
Don't ever use anything like this.
They name it "hidden cursor", and performance of such queries is terrible.
November 13, 2006 at 2:49 am
Why don't you just inbuild query to your DB into the spreadsheet?
Check out in Excel: Data -> Get External Data -> New Database Query.
November 12, 2006 at 3:42 pm
What if some computers have more than 2 disks?
November 12, 2006 at 3:14 pm
Note the difference between sequrity environment for your account (running Windows Explorer), account started SQL Server (running Osql) and account started SQL Agent (running Osql if you call it from...
November 12, 2006 at 2:53 pm
Just make sure indexing is OK.
Clustered index on (PupilID, StartDate) + index on StartDate will make this query terribly fast.
November 12, 2006 at 12:26 pm
If you need to reference data in 2 tables by FK that means those tables are parts of the same database.
Separation of them was (is) a mistake and must be...
November 9, 2006 at 5:12 pm
OK, MCDBA suppose to know the difference between UNION and UNION ALL.
UNION inclused implicit DISTINCT keyword.
So, your queries are just not equal.
November 9, 2006 at 1:43 pm
System functions are local to the scope. You need to "get into that database shoes"
USE DBA
GO
CREATE PROC dbo.GetStat @ObjectID int, @IndId smallint
AS
select stats_date(@ObjectID, @IndId )
November 8, 2006 at 5:01 pm
That's probably because of what you are trying to do within that START.
There must be some OSQL or BCP call, right?
November 8, 2006 at 3:00 pm
Much shorter option:
REPLACE(STR(@n*100, 13), ' ', '0')
November 8, 2006 at 2:35 pm
Give it a try.
It works with CREATE/DROP objects, it's OK for temporary objects, but it will fail on compilation time if there is a SELECT from not existing static object.
To...
November 8, 2006 at 2:29 pm
No, it won't work.
You could use dynamic SQL to do this, but I would remind you that shema is an essential part of relational database. And if you at run...
November 8, 2006 at 4:15 am
Viewing 15 posts - 4,801 through 4,815 (of 6,036 total)