Viewing 15 posts - 1,186 through 1,200 (of 1,315 total)
Direct access to MDF/LDF files while the server is running? Are you thinking about updates, or just read-only? And after you've figured out how to hook in to...
December 15, 2004 at 4:51 pm
The RAND function only executes once per query...no matter how you write it all rows will have the same result.
The common way to randomize in T-SQL is to use the...
December 13, 2004 at 7:51 pm
You could use an INSTEAD OF INSERT trigger to calculate the next sequence number:
CREATE TRIGGER trNextSeqNo ON ARTrans INSTEAD OF INSERT
AS
BEGIN
INSERT INTO ARTrans (RefNo, SeqNo, ...)
SELECT i.RefNo, ISNULL(NewSeq,...
November 5, 2004 at 3:03 pm
INSERT INTO Table1 ( [Application Field], CountOfApplication )
SELECT Application, COUNT(*)
FROM Software
WHERE Application NOT IN (SELECT [Application Field] FROM Table1)
GROUP BY Application
November 5, 2004 at 1:35 pm
You have to define computed columns in a subquery to be able to use the column (by alias) in the GROUP BY clause. The aggregate functions stay in the main...
November 5, 2004 at 1:16 pm
I've got "Visual Basic .NET and SQL Server 2000" from Wrox. Is that specific enough?
Go to Wrox, Microsoft Press, or another technical publisher. Or go to Amazon. Either way, you'll...
November 5, 2004 at 12:38 pm
The NEWID() function gets a new GUID value from the operating system, and on Windows 2000 or later is very random ("very" meaning better than the typical 16-bit RND() function...
November 5, 2004 at 12:21 pm
The profiler graphic interface is very resource-intensive, so you can take some of the load off the server by running profiler on another computer.
Another question would be what you mean...
November 2, 2004 at 9:38 am
I was under the impression that DataEnvironment properties were set at design time. I wouldn't be surprised to find that you can dynamically reconfigure the DataEnvironment at runtime, but my...
November 2, 2004 at 9:20 am
You can also use the INFORMATION_SCHEMA views to get metadata.
select IS_NULLABLE from information_schema.columns
where table_name = 'table' and column_name = 'column'
This returns 'Yes' or 'No'.
This view is simply looking at syscolumns.isnullable, but...
November 1, 2004 at 2:50 pm
I didn't read every linked response, but standard spherical geometry seems to be a popular approach. Unfortunately, this can be inaccurate for short distances (around 10 miles or less) as the...
November 1, 2004 at 2:35 pm
I like to move common subexpressions to subqueries. I find it easier to read, but I don't know that this version would be any faster. Your statistics show that the greatest number...
October 27, 2004 at 7:29 am
I think dBase liked to use .DAT and .NDX for data and index files. The .GLM doesn't ring a bell though.
October 25, 2004 at 6:43 pm
You need multiple joins to look up different rows
SELECT Productions.ProductionID, Productions.ProductionTitle, Productions.ProductionType, Productions.ProductionClass, Productions.Award,
r1.LookName as AwardName,
r2.LookName as ClassName,
r3.LookName as TypeName
FROM Productions p
INNER JOIN Ref_Look r1 ON r1.LookID =...
October 24, 2004 at 1:37 pm
This function is not available in the Beta2 version of Yukon, but it is supposed to be in the release version.
October 24, 2004 at 1:27 pm
Viewing 15 posts - 1,186 through 1,200 (of 1,315 total)