Viewing 15 posts - 736 through 750 (of 1,131 total)
RAISERROR with a severity of 16
SQL = Scarcely Qualifies as a Language
June 10, 2006 at 5:37 am
"And I would like to call this function 6 times in the end."
Why ?
There is a very simple set based solution using CASE.
Using the Northwind demo database:
--...
SQL = Scarcely Qualifies as a Language
March 10, 2006 at 4:56 am
See Books onLine topic "query governor cost limit" which will not allow SQL statements that exceed the ESTIMATED run time to start.
Since there may be a time window when long...
SQL = Scarcely Qualifies as a Language
March 8, 2006 at 4:09 am
I missed "NOT" in my statement.
Should be:
System stored procedures do NOT follow the same execution convention as user stored procedures so that the SQL batch "EXEC importeddb.dbo.sp_grantdbaccess 'user'" will actualy...
SQL = Scarcely Qualifies as a Language
February 28, 2006 at 6:10 pm
How very curious. I got the same results and also used the undocumented command "dbcc log (logtest, 1 )" to view the transaction log entries for a database named...
SQL = Scarcely Qualifies as a Language
February 28, 2006 at 1:49 pm
System stored procedures do follow the same execution convention as user stored procedures so that the SQL batch "EXEC importeddb.dbo.sp_grantdbaccess 'user'" will actualy run versus the importeddb not versus the...
SQL = Scarcely Qualifies as a Language
February 28, 2006 at 1:07 pm
Do not if this will work:
1. Shut down the SQL Server instance.
2. Rename the master data and log files.
3. Copy the master data and log files from...
SQL = Scarcely Qualifies as a Language
February 27, 2006 at 6:27 pm
There is no way to report space used by datafile as this information is not in the system tables, only in the space management pages.
One may get object space usage...
SQL = Scarcely Qualifies as a Language
February 24, 2006 at 7:28 pm
Why does it not work for multi-datafiles ?
Please note that it reports by FileGroup, not by File.
Also, everything is rounded to MBs not Kbs.
Here is a test case:
create database SizeTest...
SQL = Scarcely Qualifies as a Language
February 23, 2006 at 2:57 pm
Here is what I run every Sunday evening versus over 100 servers that is at the Database and File group level:
set nocount on
create table #DBSpace
(DbNamesysname
,FileGroupNamesysname
,AllocatedMbinteger
,UsedMbinteger
,FreeMbinteger
,FreePercentinteger
,AutoGrowMbdecimal(12,2)
,AutoGrowMaxSizeinteger
)
exec master.dbo.sp_MSForEachDb @command1 =
'dbcc updateusage([?])...
SQL = Scarcely Qualifies as a Language
February 23, 2006 at 10:53 am
Check constraints cannot include a computed column, See below for the first set of DDL that does not have a computed column and then with a computed column.
This makes sense...
SQL = Scarcely Qualifies as a Language
February 15, 2006 at 6:51 pm
In the future, please provide DDL and sample data
See reasons and instruction at http://www.aspfaq.com/etiquette.asp?id=5006
create table MyTable
(a integer not null
, b integer not null
, c integer not null
)
insert into MyTable
(A,B,C)
select...
SQL = Scarcely Qualifies as a Language
January 6, 2006 at 8:11 am
As brendthess has indicated in detail, the business rules that you have posted are incomplete and the most critical missing rules are the primary keys and foreign keys constraints for...
SQL = Scarcely Qualifies as a Language
December 31, 2005 at 8:22 am
The logic is
For each Order and Discount combination, the count of ordered products qualifying for the discount is equal to the count of products for the same discount.
This assumes...
SQL = Scarcely Qualifies as a Language
December 30, 2005 at 9:58 pm
I will be posting a solution shortly but in the meantime take a look at Joe Celko's Article titled "Relational Division" at http://www.dbazine.com/ofinterest/oi-articles/celko1
SQL = Scarcely Qualifies as a Language
December 30, 2005 at 9:46 pm
Viewing 15 posts - 736 through 750 (of 1,131 total)